-
Notifications
You must be signed in to change notification settings - Fork 12
Description
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?