Summary
The PMP extratropical modes of variability diagnostics systematically fail when model data is split across multiple files (e.g. one file per year), raising NotImplementedError("Only one model file is supported at this time.").
This affects all extratropical modes of variability diagnostics (NPO, NAO, SAM, PNA, PDO, etc.) from the pmp provider.
Error
File "packages/climate-ref-pmp/src/climate_ref_pmp/diagnostics/variability_modes.py", line 252, in build_cmd
raise NotImplementedError("Only one model file is supported at this time.")
NotImplementedError: Only one model file is supported at this time.
Reproduction
Edit the CMIP6 test case to use source_id=AWI-ESM-1-1-LR
Then run via:
uv run ref test-cases run --fetch --force-regen --clean --provider pmp --diagnostic extratropical-modes-of-variability-npo --test-case cmip6
Root Cause
In packages/climate-ref-pmp/src/climate_ref_pmp/diagnostics/variability_modes.py:248-252, the build_cmd method collects model file paths via input_datasets.path.to_list() and then raises NotImplementedError if there is more than one file.
Other PMP diagnostics handle this already with a glob. Does this driver support that?
Summary
The PMP extratropical modes of variability diagnostics systematically fail when model data is split across multiple files (e.g. one file per year), raising
NotImplementedError("Only one model file is supported at this time.").This affects all extratropical modes of variability diagnostics (NPO, NAO, SAM, PNA, PDO, etc.) from the
pmpprovider.Error
Reproduction
Edit the CMIP6 test case to use
source_id=AWI-ESM-1-1-LRThen run via:
uv run ref test-cases run --fetch --force-regen --clean --provider pmp --diagnostic extratropical-modes-of-variability-npo --test-case cmip6Root Cause
In
packages/climate-ref-pmp/src/climate_ref_pmp/diagnostics/variability_modes.py:248-252, thebuild_cmdmethod collects model file paths viainput_datasets.path.to_list()and then raisesNotImplementedErrorif there is more than one file.Other PMP diagnostics handle this already with a glob. Does this driver support that?