obspy.clients.nrl.client.NRL

class NRL(root=None)[source]

Bases: object

NRL client base class for accessing the Nominal Response Library.

https://ds.iris.edu/NRL/

Created with a URL for remote access or filesystem accessing a local copy.

Warning

Remote access to online NRL is deprecated as it will stop working in Spring 2023 due to server side changes.

Public Methods

get_datalogger_response

Get the datalogger response.

get_integrated_response

Get an integrated response.

get_response

Get Response from NRL tree structure

get_sensor_response

Get the sensor response.

get_soh_response

Get a SOH response.

Private Methods

Warning

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

static NRL._assert_units_ok(response)[source]

Checks the units in the stage chain and overall sensitivity

Raises an AssertionError if units are set but do not match throughout all stages and the instrument sensitivity. Raises other exceptions like IndexError if the assumptions that response stages are present and that there is an instrument sensitivity object are not met. Currently works case insensitive on unit name strings.

NRL._choose(choice, path)[source]
NRL._clean_str(string)[source]
NRL._combine_sensor_datalogger(sensor, datalogger, sensor_resp_type, datalogger_resp_type)[source]
Parameters:
  • sensor_resp_type (str) – file format the sensor response was read from

  • datalogger_resp_type (str) – file format the datalogger response was read from

Return type:

Response

NRL._get_response(base, keys)[source]

Internal helper method to fetch a response

This circumvents the warning message that is shown for NRL v2 when a datalogger-only response is fetched

Parameters:
  • base (str) – either “sensors” or “dataloggers”

  • keys (list of str) – list of lookup keys

NRL._parse_ini(path)[source]
NRL._repr_pretty_(p, cycle)[source]

Special Methods

NRL.__delattr__(name, /)

Implement delattr(self, name).

NRL.__dir__()

Default dir() implementation.

NRL.__eq__(value, /)

Return self==value.

NRL.__format__(format_spec, /)

Default object formatter.

NRL.__ge__(value, /)

Return self>=value.

NRL.__getattribute__(name, /)

Return getattr(self, name).

NRL.__gt__(value, /)

Return self>value.

NRL.__hash__()

Return hash(self).

NRL.__init__()[source]
NRL.__init_subclass__()

This method is called when a class is subclassed.

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

NRL.__le__(value, /)

Return self<=value.

NRL.__lt__(value, /)

Return self<value.

NRL.__ne__(value, /)

Return self!=value.

static NRL.__new__(cls, root=None)[source]
NRL.__reduce__()

Helper for pickle.

NRL.__reduce_ex__(protocol, /)

Helper for pickle.

NRL.__repr__()

Return repr(self).

NRL.__setattr__(name, value, /)

Implement setattr(self, name, value).

NRL.__sizeof__()

Size of object in memory, in bytes.

NRL.__str__()[source]
NRL.__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).