openghg_inversions.postprocessing.legacy_outputs#
Legacy-format output adapters built on top of postprocessing helpers.
- openghg_inversions.postprocessing.legacy_outputs.make_legacy_hbmcmc_output(inv_out: InversionOutput, country_file: str | Path | None = None, use_bc: bool = False) Dataset#
Create a legacy-format hbmcmc output dataset from modern inversion output.
TODO: needs to handle offsets
- Parameters:
inv_out – Inversion outputs container.
country_file – Optional path to country definition file.
use_bc – Whether BC variables should be included.
- Returns:
Legacy-style
xr.Datasetmatching key variable names/attrs frominferpymc_postprocessouts.