Observations#

Functions for column and satellite workflows, and for mobile measurements (below). They group soundings into overpasses, choose which soundings to run, spread releases across a pixel, lay out slant lines of sight, and turn a retrieval’s pressure levels into altitudes (Tutorial: A Satellite Column, Start To Finish, Slant Columns). They take plain arrays and tables and return the inputs for Release objects. Particle weighting, including per-release averaging-kernel tables, is in Transforms.

stilt.observations.releases_from_soundings

Return a release for each sounding, and their averaging-kernel table.

stilt.observations.group_by_overpass

Label each time with the overpass it belongs to.

stilt.observations.select_observations_spatial

Select soundings densely near a site and sparsely across the domain.

stilt.observations.jitter_points

Return (longitude, latitude) points spread over one pixel.

stilt.observations.slant_points

Return (longitude, latitude, altitude) points along a line of sight.

stilt.observations.pressure_altitudes

Return the altitudes above sea level of a retrieval's pressure levels.

Product readers#

Each reader returns a table of soundings with the columns in SOUNDING_SCHEMA, which Reading Retrieval Products describes.

stilt.observations.SOUNDING_SCHEMA#

Every column of a table of soundings, as {name: (when, meaning)}. when is always; kernel, for every product with an averaging kernel (all but GGG .oof files); or optional, when the product has it. Vertical arrays run from the surface upward, pressures are in hPa, altitudes in meters above sea level, and azimuths in degrees clockwise from north toward the instrument or the sun.

stilt.observations.check_soundings

Raise unless a table of soundings has the columns every reader returns.

stilt.observations.read_tropomi_ch4

Read a TROPOMI (Sentinel-5P) L2 methane file into a table of soundings.

stilt.observations.read_oco2

Read an OCO-2 or OCO-3 L2 Lite XCO2 file into a table of soundings.

stilt.observations.read_tccon

TCCON's public *.public.nc and *.public.qc.nc site files from CaltechDATA are GGG2020 netCDF files, so they are read the same way.

stilt.observations.read_ggg_oof

Read a GGG2020 .oof file into a table of soundings.

stilt.observations.read_ggg_netcdf

Read a GGG2020 netCDF file, private or public, into a table of soundings.

stilt.observations.read_coccon

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

stilt.observations.read_proffast

Read a PROFFASTpylot run's results into a table of soundings.

Tracks#

Releases along the track of a moving platform, and the link from each measurement to its release (Mobile Measurements). A track has the columns in TRACK_SCHEMA.

stilt.observations.releases_from_track

Return a release for each group of measurements along a track, and their table.

stilt.observations.check_track

Raise unless a track has the columns in TRACK_SCHEMA.

stilt.observations.TRACK_SCHEMA#

The columns a track needs, as {name: meaning}. A track may have any other columns, such as the measured mole fractions, and releases_from_track() keeps them in its table.

Plume background#

The outline of a forward-run plume over a satellite swath, and the background from the soundings beside it (A background from a satellite swath).

stilt.observations.plume_polygon

Return the plume outline from forward-run particle positions at overpass time.

stilt.observations.Plume

Plume outline returned by plume_polygon().

stilt.observations.plume_background

Return the background from the soundings beside a plume.

stilt.observations.PlumeBackground

Background from soundings beside a plume, returned by plume_background().

stilt.observations.plumes.kernel_density

Return the Gaussian kernel density of points on an n by n grid.

stilt.observations.plumes.density_polygon

Return the largest connected region where density >= threshold.

The modeled column#

The column a retrieval would report for the modeled air: the enhancement, the background, and the retrieval’s prior where it is not sensitive.

stilt.observations.modelled_column

Return the column-average mole fraction a retrieval would report for the modeled air.