stilt.observations.read_coccon#

stilt.observations.read_coccon(path, species)[source]#

Read a COCCON GEOMS file of EM27/SUN retrievals into a table of soundings.

Reads the GEOMS HDF5 files (groundbased_ftir.coccon_*.h5) that COCCON releases and that PROFFASTpylot writes, one site-day each.

Parameters:
  • path (str | Path) – The GEOMS file.

  • species (str) – Column to read: xco2, xch4, xco, or xh2o.

Returns:

One row per measurement. value and uncertainty are the column and its random error, in ppm (xco2, xch4, xh2o) or ppb (xco), as the file gives them. good is True for every row: the file holds only the measurements that passed COCCON’s quality filter. ak is the column sensitivity at the measurement’s solar zenith angle, on ak_pressure (hPa), which is also pressure_levels, with altitude_levels their heights (m above sea level), all from the surface up. apriori is the prior profile, converted to the units of value. surface_altitude is the instrument’s altitude and surface_pressure the pressure at the instrument. zenith and azimuth are the solar angles, the direction the instrument looks, with the azimuth clockwise from north. sounding_id is the site and time, since the file names no spectra.

Return type:

DataFrame

Notes

Tested on files written by PROFFASTpylot’s GEOMS writer (PROFFAST 2.4) for KIT’s example data. A file’s times are DATETIME, days since 2000-01-01 UTC (MJD2K) to five decimals; time rounds them to the second.