obspy.core.inventory.response.Response.get_sampling_rates
- Response.get_sampling_rates()[source]
Computes the input and output sampling rates of each stage.
For well defined files this will just read the decimation attributes of each stage. For others it will attempt to infer missing values from the surrounding stages.
- Returns:
A nested dictionary detailing the sampling rates of each response stage.
- Return type:
>>> import obspy >>> inv = obspy.read_inventory("AU.MEEK.xml") >>> inv[0][0][0].response.get_sampling_rates() {1: {'decimation_factor': 1, 'input_sampling_rate': 600.0, 'output_sampling_rate': 600.0}, 2: {'decimation_factor': 1, 'input_sampling_rate': 600.0, 'output_sampling_rate': 600.0}, 3: {'decimation_factor': 1, 'input_sampling_rate': 600.0, 'output_sampling_rate': 600.0}, 4: {'decimation_factor': 3, 'input_sampling_rate': 600.0, 'output_sampling_rate': 200.0}, 5: {'decimation_factor': 10, 'input_sampling_rate': 200.0, 'output_sampling_rate': 20.0}}