obspy.clients.nrl.client.NRL
- class NRL(root=None)[source]
Bases:
object
NRL client base class for accessing the Nominal Response Library.
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 the datalogger response. |
|
Get an integrated response. |
|
Get Response from NRL tree structure |
|
Get the sensor 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._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
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_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.
- 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.__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).