obspy.core.inventory.response.PolynomialResponseStage

class PolynomialResponseStage(stage_sequence_number, stage_gain, stage_gain_frequency, input_units, output_units, frequency_lower_bound, frequency_upper_bound, approximation_lower_bound, approximation_upper_bound, maximum_error, coefficients, approximation_type='MACLAURIN', resource_id=None, resource_id2=None, name=None, input_units_description=None, output_units_description=None, description=None, decimation_input_sample_rate=None, decimation_factor=None, decimation_offset=None, decimation_delay=None, decimation_correction=None)[source]

Bases: ResponseStage

From the StationXML Definition:

Response: expressed as a polynomial (allows non-linear sensors to be described). Corresponds to SEED blockette 62. Can be used to describe a stage of acquisition or a complete system.

Has all the arguments of the parent class ResponseStage and the following:

Parameters:
  • approximation_type (str) – Approximation type. Currently restricted to ‘MACLAURIN’ by StationXML definition.

  • frequency_lower_bound (float) – Lower frequency bound.

  • frequency_upper_bound (float) – Upper frequency bound.

  • approximation_lower_bound (float) – Lower bound of approximation.

  • approximation_upper_bound (float) – Upper bound of approximation.

  • maximum_error (float) – Maximum error.

  • coefficients (list[float]) – List of polynomial coefficients.

Attributes

approximation_type

coefficients

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

PolynomialResponseStage._repr_pretty_(p, cycle)

Special Methods

PolynomialResponseStage.__delattr__(name, /)

Implement delattr(self, name).

PolynomialResponseStage.__dir__()

Default dir() implementation.

PolynomialResponseStage.__eq__(other)
PolynomialResponseStage.__format__(format_spec, /)

Default object formatter.

PolynomialResponseStage.__ge__(value, /)

Return self>=value.

PolynomialResponseStage.__getattribute__(name, /)

Return getattr(self, name).

PolynomialResponseStage.__gt__(value, /)

Return self>value.

PolynomialResponseStage.__init__(stage_sequence_number, stage_gain, stage_gain_frequency, input_units, output_units, frequency_lower_bound, frequency_upper_bound, approximation_lower_bound, approximation_upper_bound, maximum_error, coefficients, approximation_type='MACLAURIN', resource_id=None, resource_id2=None, name=None, input_units_description=None, output_units_description=None, description=None, decimation_input_sample_rate=None, decimation_factor=None, decimation_offset=None, decimation_delay=None, decimation_correction=None)[source]
PolynomialResponseStage.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

PolynomialResponseStage.__le__(value, /)

Return self<=value.

PolynomialResponseStage.__lt__(value, /)

Return self<value.

PolynomialResponseStage.__ne__(other)
PolynomialResponseStage.__new__(**kwargs)
PolynomialResponseStage.__reduce__()

Helper for pickle.

PolynomialResponseStage.__reduce_ex__(protocol, /)

Helper for pickle.

PolynomialResponseStage.__repr__()

Return repr(self).

PolynomialResponseStage.__setattr__(name, value, /)

Implement setattr(self, name, value).

PolynomialResponseStage.__sizeof__()

Size of object in memory, in bytes.

PolynomialResponseStage.__str__()[source]
PolynomialResponseStage.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).