create_file¶
- pysac.io.gdf_writer.create_file(f, simulation_parameters, grid_dimensions, data_author=None, data_comment=None)[source] [edit on github]¶
Do all the structral creation of a gdf file.
gdf files should be written in a x,y,z order, please swap them before calling this function!!
Parameters: gdf_path: string or h5py instance
Filename to save out
simulation_parameters: dict
Key value pairs for attributes to be written to the simulation_parameters group.
grid_dimensions
data_author: (optional) string
Author to write to file
data_comment: (optional) string
A comment to write to file
Returns: h5py.File instance
Notes
GDF is defined here: https://bitbucket.org/yt_analysis/grid_data_format/