openghg_inversions.postprocessing.merge_paris_outputs#

Merge sequential PARIS NetCDF outputs without losing template coordinates.

openghg_inversions.postprocessing.merge_paris_outputs.merge_paris_outputs(input_files: Sequence[str | Path], output_file: str | Path, *, output_type: Literal['flux', 'concentration'] | None = None) Path#

Merge PARIS files from one template version along their observation time axis.

The template version is detected from the dataset schema. When output_type is supplied, inputs of the other type are ignored so broad shell globs can be reused. Selected inputs must share one template version; legacy and latest files cannot be mixed in one output because their variable contracts differ.