obspy.xseed.parser.Parser

class Parser(data=None, debug=False, strict=False, compact=False)[source]

Bases: object

The XML-SEED parser class parses dataless or full SEED volumes.

Attributes

__dict__
__doc__ str(object=’‘) -> string
__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.
read General parser method for XML-SEED and Dataless SEED files.
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.
_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.
__str__

This Page