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,
) -> Callable[
[
obspy.core.stream.Stream,
salvus.flow.simple_config.receiver._BaseReceiver,
List[salvus.flow.simple_config.source._BaseSource],
],
obspy.core.stream.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 Callable[[obspy.core.stream.Stream, salvus.flow.simple_config.receiver._BaseReceiver, List[salvus.flow.simple_config.source._BaseSource]], obspy.core.stream.Stream]