Mondaic
This API reference is not for the latest stable Salvus version.

salvus.modules.waveform_db.utils

Utility functions for Salvus’ wavefield databases.

Functions

create_database()

def create_database(
    simulation_output_folder: Union[pathlib.Path, str],
    database_filename: Union[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 Union[pathlib.Path, str] — The outputs of a Salvus simulation.
  • database_filename Union[pathlib.Path, str] — Output filename for the database.
Returns None