# obspy.io.gse2.libgse2.parse_sta2

`parse_sta2`(line)

  Parses a string with a GSE2 STA2 header line.

  Official Definition:

      Position Name     Format    Description
         1-4   "STA2"   a4        Must be "STA2"
        6-14   Network  a9        Network identifier
       16-34   Lat      f9.5      Latitude (degrees, S is negative)
       36-45   Lon      f10.5     Longitude (degrees, W is negative)
       47-58   Coordsys a12       Reference coordinate system (e.g., WGS-84)
       60-64   Elev     f5.3      Elevation (km)
       66-70   Edepth   f5.3      Emplacement depth (km)

  Corrected Definition (end column of “Lat” field wrong):

      Position Name     Format    Description
         1-4   "STA2"   a4        Must be "STA2"
        6-14   Network  a9        Network identifier
       16-24   Lat      f9.5      Latitude (degrees, S is negative)
       26-35   Lon      f10.5     Longitude (degrees, W is negative)
       37-48   Coordsys a12       Reference coordinate system (e.g., WGS-84)
       50-54   Elev     f5.3      Elevation (km)
       56-60   Edepth   f5.3      Emplacement depth (km)

  However, many files in practice do not adhere to these defined fixed positions. Here are some real-world examples:

      >>> l = "STA2           -999.0000 -999.00000              -.999 -.999"
      >>> for k, v in sorted(parse_sta2(l).items()):
      ...     print(k, v)
      coordsys
      edepth -0.999
      elev -0.999
      lat -999.0
      lon -999.0
      network
      >>> l = "STA2 ABCD       12.34567   1.234567 WGS-84       -123.456 1.234"
      >>> for k, v in sorted(parse_sta2(l).items()):
      ...     print(k, v)
      coordsys WGS-84
      edepth 1.234
      elev -123.456
      lat 12.34567
      lon 1.234567
      network ABCD

### 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)