Skip to content

PMP double ITCZ metric#557

Merged
lewisjared merged 6 commits intomainfrom
pmp-double-ITCZ
Feb 25, 2026
Merged

PMP double ITCZ metric#557
lewisjared merged 6 commits intomainfrom
pmp-double-ITCZ

Conversation

@lee1043
Copy link
Contributor

@lee1043 lee1043 commented Feb 22, 2026

Description

Checklist

Please confirm that this pull request has done the following:

  • Tests added
  • Documentation added (where applicable)
  • Changelog item added to changelog/

@lee1043
Copy link
Contributor Author

lee1043 commented Feb 22, 2026

Hi @minxu74, would you be able to help running the workflow for this PR? I am adding some more metrics but struggling to set up REF workflow on my end with the latest version of the source code -- I might have missed something. While I work on it, if you could help confirming this change produces output that is expected, that would be a huge help!

@codecov
Copy link

codecov bot commented Feb 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
core 93.15% <ø> (ø)
providers 89.93% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...mp/src/climate_ref_pmp/diagnostics/annual_cycle.py 63.90% <ø> (ø)
..._ref_pmp/params/pmp_param_annualcycle_2-metrics.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lewisjared
Copy link
Contributor

Add an entry in AnnualCycle.test_data_spec with data you need to test and then run:

uv run ref test-cases run --provider pmp --fetch --diagnostic annual-cycle --test-case {{name_of_test_case}}

That will also fetch the data required for the test case.

Output will go to packages/climate-ref-pmp/tests/test-data/annual-cycle/{{name_of_test_case}}

It would be super useful if you were able to run the test cases because they should be able to run everywhere

https://climate-ref.readthedocs.io/en/latest/how-to-guides/testing-diagnostics/

@minxu74
Copy link
Contributor

minxu74 commented Feb 23, 2026

@lee1043 can you run the test now? I could try it on NERSC today. Thanks.

@minxu74
Copy link
Contributor

minxu74 commented Feb 25, 2026

@lee1043 I ran the two tests of the annual cycle and both them passed and generated results.

@lewisjared
Copy link
Contributor

I've also added a new test-case which for precip data.

This can be run via:

uv run ref test-cases run --fetch --force-regen --clean --provider pmp --diagnostic annual-cycle --test-case cmip6-pr

I see some images like this. Did you expect any other outputs?

pr_ACCESS-ESM1-5_r1i1p1f1_interpolated_regrid2_double_ITCZ_AC_basicTest

Full regression output:
pmp_annual-cycle_cmip6-pr.zip

Copy link
Contributor

@lewisjared lewisjared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just needs a changelog and approval of the results

@lee1043
Copy link
Contributor Author

lee1043 commented Feb 25, 2026

Hi @lewisjared thanks for sharing the image file which looks consistent to my expectation. Do you happen to have DJF image as well just for checking? The suggested Double ITCZ metrics is DJF pr pattern correlation over the box area.

@lewisjared
Copy link
Contributor

Its in the zip above

@lee1043 lee1043 changed the title initial commit PMP double ITCZ metric Feb 25, 2026
@lee1043
Copy link
Contributor Author

lee1043 commented Feb 25, 2026

A minor fix (rename "Double_ITCZ" to "doubleITCZ" for consistent naming template for output files) and the change log added. Thank you @minxu74 for running the code and thank you @lewisjared for adding the test!

@lewisjared
Copy link
Contributor

Can you run make virtual-environment locally to install pre-commit. That way your commits will always pass the pre-commit checks as it fixes any formatting during the commit

@lewisjared lewisjared merged commit cf05fe9 into main Feb 25, 2026
18 checks passed
@lewisjared lewisjared deleted the pmp-double-ITCZ branch February 25, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants