# obspy.io.xseed.parser.Parser

class `Parser`(data=None, debug=False, strict=False, compact=False)

  Bases: `builtins.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__` | str(object=’‘) -> str
  `__module__` | str(object=’‘) -> str
  `__weakref__` | list of weak references to the object (if defined)

  Public Methods

  `get_coordinates` | Return coordinates (from blockette 52) of a channel.
  `get_inventory` | Function returning a dictionary about whats actually in the Parser
  `get_paz` | Return PAZ.
  `get_resp` | Returns a RESP representation of the current Parser object.
  `get_response_for_channel` | Create an ObsPy response object from all blockettes of a channel.
  `get_seed` | Returns a SEED representation of the current Parser object.
  `get_xseed` | Returns a XSEED representation of the current Parser object.
  `read` | General parser method for XML-SEED, Dataless SEED, and RESP files.
  `resolve_abbreviation` |
  `rotate_to_zne` | Rotates the three components of a Stream to ZNE.
  `write_resp` | Writes for each channel a RESP file within a given folder.
  `write_seed` | Writes a dataless SEED file with given name.
  `write_xseed` | 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.

  `_check_blockettes` | Checks if all blockettes necessary for creating a SEED String are
  `_compare_blockettes` | Compares two blockettes.
  `_create_blockettes_11_and_12` | Creates blockettes 11 and 12 for SEED writing and XSEED version 1.1
  `_create_cut_and_flush_record` | Takes all blockettes of a record and return a list of finished records.
  `_delete_blockettes_11_and_12` | Deletes blockette 11 and 12.
  `_get_abbreviation` | Helper function returning the abbreviation for the given identifier
  `_get_resp_string` | Takes a file like object and a list of blockettes containing all
  `_parse_merged_data` | This method takes any merged SEED record and writes its blockettes
  `_parse_resp` | Reads RESP files.
  `_parse_seed` | Parses through a whole SEED volume.
  `_parse_xml_blockette` | Takes the lxml tree of any blockette and returns a blockette object.
  `_parse_xseed` | Parse a XML-SEED string.
  `_repr_pretty_` |
  `_select` | Selects all blockettes related to given SEED id and datetime.
  `_update_internal_seed_structure` | Takes everything in the self.temp dictionary and writes it into the volume, abbreviations and stations attributes of the class.
  `_update_temporary_stations` | Loops over all stations, finds the corresponding blockettes and changes

  Special Methods

  `__dir__` | default dir() implementation
  `__format__` | default object formatter
  `__init__` | Initializes the SEED parser.
  `__new__` | Create and return a new object.
  `__reduce__` | helper for pickle
  `__reduce_ex__` | helper for pickle
  `__sizeof__` | size of object in memory, in bytes
  `__str__` |
  `__subclasshook__` | Abstract classes can override this to customize issubclass().

### Thank you!

We would like to thank our contributors, whose efforts make this software what it is. These people have helped by writing code and documentation, and by testing. They have created and maintained this product, its associated libraries and applications, our build tools and our web sites.

#### Contributors

- Ackerley, Nick
- Allgeyer, Sebastien
- Ammon, Charles J.
- Antunes, Emanuel
- Arnarsson, Ólafur St.
- Bank, Markus
- Barsch, Robert
- Behr, Yannik
- Bernardi, Fabrizio
- Bernauer, Felix
- Bes de Berc, Maxime
- Beyreuther, Moritz
- Boltz, Shawn
- Bonaimé, Sébastien
- Carothers, Lloyd
- Chamberlain, Calum
- Chambers, Derrick
- Chen, Zhao
- Clark, Adam
- Danecek, Peter
- Egdorf, Sven
- Engels, Fabian
- Ermert, Laura
- Eulenfeld, Tom

- Fabbri, Tommaso
- Falco, Nicholas
- Fee, Jeremy
- Grellier, Clément
- Grunberg, Marc
- Hammer, Conny
- Heimann, Sebastian
- Heiniger, Lukas
- Hope, Gaute
- Igel, Heiner
- Inza, Adolfo
- Isken, Marius
- Ketchum, David
- Koymans, Mathijs
- Kremers, Simon
- Kress, Victor
- Krieger, Lars
- Krischer, Lion
- Kula, Damian
- Käufl, Paul
- Köhler, Andreas
- Lecocq, Thomas
- Leeman, John
- Legovini, Paride

- Lesage, Philippe
- Li, Yulin
- Lomax, Anthony
- Lopes, Rui L.
- MacCarthy, Jonathan
- Maggi, Alessia
- Martin, Henri
- Medlin, Andrew
- Megies, Tobias
- Meschede, Matthias
- Michelini, Alberto
- Miller, Nathaniel C.
- Morgenstern, Bernhard
- Nof, Ran Novitsky
- Panning, Mark P.
- Parker, Tom
- Pestourie, Romain
- Rapagnani, Giovanni
- Reyes, Celso
- Ringler, Adam
- Rothenhäusler, Nicolas
- Russo, Emiliano
- Sales de Andrade, Elliott

- Satriano, Claudio
- Saul, Joachim
- Scheingraber, Chris
- Schneider, Simon
- Sippl, Christian
- Snoke, Arthur
- Stange, Stefan
- Stähler, Simon C.
- Sullivan, Benjamin
- Tian, Dongdong
- Trabant, Chad
- Trani, Luca
- Uieda, Leonardo
- Walker, Andrew
- Walther, Marcus
- Wassermann, Joachim
- Williams, Mark C.
- Winkelman, Andrew
- Zaccarelli, Riccardo
- Zad, Seyed Kasra Hosseini
- Zhu, Lijun
- van Driel, Martin
- van Wijk, Kasper

#### Funds

ObsPy was partially funded by the

- German Science Foundation (DFG) via grant DFG IG 16/9-1
- German Ministry for Education and Research (BMBF), GEOTECHNOLOGIEN grant 03G0646H.
- NERA project (Network of European Research Infrastructures for Earthquake Risk Assessment and Mitigation) under the European Community's Seventh Framework Programme (FP7/2007-2013) grant agreement n° 262330
- Leibniz Institute for Applied Geophysics (LIAG)
- VERCE EU-FP7 project (no. 283543)