obspy.clients.nrl.client.LocalNRL

class LocalNRL(root=None)[source]

Bases: NRL

Subclass of NRL for accessing local copy NRL.

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 LocalNRL._assert_units_ok(response)

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.

LocalNRL._choose(choice, path)
LocalNRL._clean_str(string)
LocalNRL._combine_sensor_datalogger(sensor, datalogger, sensor_resp_type, datalogger_resp_type)
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

LocalNRL._get_cp_from_ini(path)[source]

Returns a configparser from a path to an index.txt

LocalNRL._get_response(base, keys)

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

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

Special Methods

LocalNRL.__delattr__(name, /)

Implement delattr(self, name).

LocalNRL.__dir__()

Default dir() implementation.

LocalNRL.__eq__(value, /)

Return self==value.

LocalNRL.__format__(format_spec, /)

Default object formatter.

LocalNRL.__ge__(value, /)

Return self>=value.

LocalNRL.__getattribute__(name, /)

Return getattr(self, name).

LocalNRL.__gt__(value, /)

Return self>value.

LocalNRL.__hash__()

Return hash(self).

LocalNRL.__init__(root)[source]
LocalNRL.__init_subclass__()

This method is called when a class is subclassed.

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

LocalNRL.__le__(value, /)

Return self<=value.

LocalNRL.__lt__(value, /)

Return self<value.

LocalNRL.__ne__(value, /)

Return self!=value.

static LocalNRL.__new__(cls, root=None)
LocalNRL.__reduce__()

Helper for pickle.

LocalNRL.__reduce_ex__(protocol, /)

Helper for pickle.

LocalNRL.__repr__()

Return repr(self).

LocalNRL.__setattr__(name, value, /)

Implement setattr(self, name, value).

LocalNRL.__sizeof__()

Size of object in memory, in bytes.

LocalNRL.__str__()
LocalNRL.__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).