obspy.io.xseed.parser.Parser¶
-
class
Parser
(data=None, debug=False, strict=False, compact=False)[source]¶ Bases:
object
Class parsing dataless and full SEED, X-SEED, and RESP files.
See also
The SEED file format description can be found at https://www.fdsn.org/seed_manual/SEEDManual_V2.4.pdf .
The XML-SEED format was proposed in [Tsuboi2004].
The IRIS RESP format can be found at http://ds.iris.edu/ds/nodes/dmc/data/formats/resp/
Attributes
__dict__
__doc__
__module__
__weakref__
list of weak references to the object (if defined)
Public Methods
Return coordinates (from blockette 52) of a channel.
Function returning a dictionary about whats actually in the Parser object.
Return PAZ.
Returns a RESP representation of the current Parser object.
Create an ObsPy response object from all blockettes of a channel.
Returns a SEED representation of the current Parser object.
Returns a XSEED representation of the current Parser object.
General parser method for XML-SEED, Dataless SEED, and RESP files.
Rotates the three components of a Stream to ZNE.
Writes for each channel a RESP file within a given folder.
Writes a dataless SEED file with given name.
Writes a XML-SEED file with given name.
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
Checks if all blockettes necessary for creating a SEED String are available.
Compares two blockettes.
Creates blockettes 11 and 12 for SEED writing and XSEED version 1.1 writing.
Takes all blockettes of a record and return a list of finished records.
Deletes blockette 11 and 12.
Helper function returning the abbreviation for the given identifier code.
Takes a file like object and a list of blockettes containing all blockettes for one channel and writes them RESP like to the BytesIO.
This method takes any merged SEED record and writes its blockettes in the corresponding dictionary entry of self.temp.
Reads RESP files.
Parses through a whole SEED volume.
Takes the lxml tree of any blockette and returns a blockette object.
Parse a XML-SEED string.
Selects all blockettes related to given SEED id and datetime.
Takes everything in the self.temp dictionary and writes it into the volume, abbreviations and stations attributes of the class.
Loops over all stations, finds the corresponding blockettes and changes all abbreviation lookup codes.
Special Methods
Default dir() implementation.
Default object formatter.
Initializes the SEED parser.
This method is called when a class is subclassed.
Create and return a new object.
Helper for pickle.
Helper for pickle.
Size of object in memory, in bytes.
Abstract classes can override this to customize issubclass().