salvus.project.tools.processing.processing_templates
salvus.project.tools.processing.processing_templates salvus project tools processing processing_templates Contains a few function generates to create function that are suitable for processing data.
Functions
get_bandpass_filter_processing_function()
get_bandpass_filter_processing_function()def get_bandpass_filter_processing_function(
min_frequency_in_hertz: float,
max_frequency_in_hertz: float,
highpass_corners: int = 3,
lowpass_corners: int = 3,
zerophase: bool = False,
) -> typing.Callable[
[
obspy.Stream,
simple_config.receiver._BaseReceiver,
list[simple_config.source._BaseSource],
],
obspy.Stream,
]: ...Generate a processing function for use in SalvusProject.
The generated function here applies a simple Butterworth highpass filter
followed by a lowpass filter. The steps performed here are compatible
with Salvus’ FilteredHeaviside source time function.
Parameters
min_frequency_in_hertzfloat — Minimum frequency in Hertz.max_frequency_in_hertzfloat — Maximum frequency in Hertz.highpass_cornersint — Corners for the highpass filter.lowpass_cornersint — Corners for the lowpass filter.zerophasebool — Zerophase filters on/off.
Returns typing.Callable[[obspy.Stream, simple_config.receiver._BaseReceiver, list[simple_config.source._BaseSource]], obspy.Stream]