To obtain the data to run this tutorial, download the tar.gz file from https://zenodo.org/records/10668525 and unzip it. Then set example_simulation to be the path to the resulting directory.

Creating a Mayawaves h5 File

[1]:
from mayawaves.utils.postprocessingutils import create_h5_from_simulation

Point to the root of the desired simulation directory

[2]:
example_simulation = "D11_q5_a1_-0.362_-0.0548_-0.64_a2_-0.0013_0.001_-0.0838_m533.33"
output_directory = ""

Create an h5 file with all the stitched data for the simulation

[3]:
h5_path = create_h5_from_simulation(example_simulation, output_directory)
storing parameter file
storing radiative information
storing compact object information
storing metadata
[4]:
print(h5_path)
D11_q5_a1_-0.362_-0.0548_-0.64_a2_-0.0013_0.001_-0.0838_m533.33.h5
[ ]: