slv.inversion#

Bayesian CH4 flux inversion for the SLV, built on fips and PYSTILT footprints.

Exported from submodules

InversionConfig

Settings for one inversion (run()).

build_problem

The fips problem for config: every component loaded or built, then put together.

run

Build the problem, solve it, summarize and plot.

Sweep

Object-oriented interface for parameter sweeps.

run_sweep_job

Run a single config from a pre-serialised sweep grid (SLURM job arrays).

SweepResults

Wraps sweep_results.csv for post-sweep analysis.

Modules

background

Background (upwind) CH4 for the inversion: rolling baseline, NOAA GML or CT-STILT.

cache

Content-addressed cache for the inversion pipeline's components.

config

Configuration for an SLV methane inversion (InversionConfig).

covariances

Prior error and model-data mismatch covariances for the SLV inversion.

coverage

State cells: the prior/Jacobian agreement check and the Jacobian coverage filter.

data

Observations for the inversion: tower and TRAX CH4, and the per-obs within-hour std.

mdm

The model-data mismatch (S_z) of the SLV inversion: the sum of config.mdm_components.

pipelines

The SLV methane inversion: functions that build the fips Problem and solve it.

priors

Prior flux fields for the SLV inversion (EPA, EDGAR or constant) on the state grid.

report

Domain totals, the printed summary, Desroziers diagnostics and the plots of an SLV inversion.

sweep

Parameter sweep harness for SLV methane inversions.

viz

Plots of an SLV inversion: the domain, inputs, fluxes, domain totals and error diagnostics.