i7aof.config¶
Configuration loader and helpers.
- i7aof.config.load_config(model: str | None = None, clim_name: str | None = None, inputdir: str | None = None, workdir: str | None = None, user_config_filename: str | None = None) MpasConfigParser¶
Convert thetao/so monthly files to ct/sa for a CMIP model.
Conversion is performed per thetao/so pair. Outputs store only ct & sa plus coordinate variables; bounds variables for depth/lat/lon are injected only in the final merged file to avoid acquiring a spurious time dimension.
- Parameters:
model (str) – Name of the CMIP model (used to select the model config and to construct output paths).
clim_name (str) – The name of the reference climatology (e.g. “zhou_annual_30_sep.cfg”).
inputdir (str, optional) – Base directory where the relative input file paths are resolved. If not provided, uses
[inputdir] base_dirfrom the config.workdir (str, optional) – Base working directory where outputs will be written. If not provided, uses
[workdir] base_dirfrom the config.user_config_filename (str, optional) – Optional user config that overrides defaults (paths, variable names, chunk sizes, etc.).