salvus.modules.waveform_db.waveform_db
salvus.modules.waveform_db.waveform_db salvus modules waveform_db waveform_db Waveform databases for Salvus.
Classes
WaveformDB
WaveformDBclass WaveformDB(builtins.object):
def __init__(self, filename: pathlib.Path | str): ...Initialize a waveform database object from a database on disk.
Parameters
filenamepathlib.Path | str — Path of the database.
Attributes
database_sampling_rate float
database_sampling_rate floatThe sampling rate in Hertz for all waveforms in the database.
database_start_time obspy.UTCDateTime
database_start_time obspy.UTCDateTimeTime of the first sample for all waveforms in the database.
gll_points_per_element int
gll_points_per_element intThe number of GLL points per element.
meta_json dict
meta_json dictReturn a copy of the meta.json dictionary of the Salvus run creating the original volume data.
ndim int
ndim intThe dimensionality of the database.
polynomial_order int
polynomial_order intThe polynomial order of the wavefield.
receiver_fields set[str]
receiver_fields set[str]The receiver fields available in the database.
Methods
get_waveform_data()
get_waveform_data()def get_waveform_data(
self,
receiver: simple_config.receiver._Base,
receiver_field: str | None = None,
sampling_rate: float | None = None,
) -> obspy.Stream: ...Get waveforms from the database.
Parameters
receiversimple_config.receiver._Base — Salvus receiver object.receiver_fieldstr | None — The receiver field to extract. If the receiver object only contains a single receiver field this does not have to be specified.sampling_ratefloat | None — Optionally resample to a chosen sampling rate. Cannot downsample.
Returns obspy.Stream