Mondaic

salvus.modules.waveform_db.utils

salvus.modules.waveform_db.utils salvus modules waveform_db utils

Utility functions for Salvus’ wavefield databases.

Functions

create_database()

def create_database(
    simulation_output_folder: pathlib.Path | str,
    database_filename: pathlib.Path | str,
) -> None: ...

Create a Salvus compatible waveform database from the output of a Salvus simulation.

It will convert everything in the volumetric outputs of the simulation output folder to a Salvus compatible database. The folder must at least contain the meta.json output file as well as volumetric output.

Parameters
  • simulation_output_folder pathlib.Path | str — The outputs of a Salvus simulation.
  • database_filename pathlib.Path | str — Output filename for the database.
Returns None