obspy.xseed.parser.Parser¶
- class Parser(data=None, debug=False, strict=False, compact=False)[source]¶
Bases: future.types.newobject.newobject
The XML-SEED parser class parses dataless or full SEED volumes.
See also
The SEED file format description can be found at http://www.fdsn.org/seed_manual/SEEDManual_V2.4.pdf .
The XML-SEED format was proposed in [Tsuboi2004].
Attributes
__dict__ __doc__ unicode(string [, encoding[, errors]]) -> object __module__ str(object) -> string __weakref__ list of weak references to the object (if defined) Public Methods
getCoordinates Return Coordinates (from blockette 52) getInventory Function returning a dictionary about whats actually in the Parser getPAZ Return PAZ. getRESP Returns a RESP representation of the current Parser object. getSEED Returns a SEED representation of the current Parser object. getXSEED Returns a XSEED representation of the current Parser object. next read General parser method for XML-SEED and Dataless SEED files. rotateToZNE Rotates the three components of a Stream to ZNE. writeRESP Writes for each channel a RESP file within a given folder. writeSEED Writes a dataless SEED file with given name. writeXSEED Writes a XML-SEED file with given name. Private Methods
_checkBlockettes Checks if all blockettes necessary for creating a SEED String are _compareBlockettes Compares two blockettes. _createBlockettes11and12 Creates blockettes 11 and 12 for SEED writing and XSEED version 1.1 _createCutAndFlushRecord Takes all blockettes of a record and return a list of finished records. _deleteBlockettes11and12 Deletes blockette 11 and 12. _getRESPString Takes a file like object and a list of blockettes containing all _get_abbreviation Helper function returning the abbreviation for the given identifier _parseMergedData This method takes any merged SEED record and writes its blockettes _parseSEED Parses through a whole SEED volume. _parseXMLBlockette Takes the lxml tree of any blockette and returns a blockette object. _parseXSEED Parse a XML-SEED string. _repr_pretty_ _select Selects all blockettes related to given SEED id and datetime. _updateInternalSEEDStructure Takes everything in the self.temp dictionary and writes it into the volume, abbreviations and stations attributes of the class. _updateTemporaryStations Loops over all stations, finds the corresponding blockettes and changes Special Methods
__init__ Initializes the SEED parser. __long__ __native__ Hook for the future.utils.native() function __nonzero__ __str__ __unicode__