8000 SnowSplitter output cube names are now the same as their StaGE couterparts by MoseleyS · Pull Request #1975 · metoppv/improver · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SnowSplitter output cube names are now the same as their StaGE couterparts #1975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 25, 2024

Conversation

MoseleyS
Copy link
Contributor
@MoseleyS MoseleyS commented Jan 5, 2024

Addresses https://metoffice.atlassian.net/browse/EPPT-650

While testing the EPP Precipitation Type workflows, I have found that the output cube names for rain/snow rate/accum data are not the same as the same data found on StaGE. For accumulation data, the rain and snow outputs had the names of the precipitation cube. This PR modifies the new cube name generation, which is generated from a precipitation cube name, so that:

  • "precipitation" is replaced with either "rainfall" or "snowfall" (not "rain" or "snow")
  • "lwe_", which means liquid water equivalent, is removed if the output is rain.

Testing:

@MoseleyS MoseleyS self-assigned this Jan 5, 2024
@MoseleyS MoseleyS requested a review from mspelman07 January 5, 2024 17:04
@MoseleyS MoseleyS assigned mspelman07 and unassigned MoseleyS Jan 5, 2024
Copy link
codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c43ec0a) 97.15% compared to head (0e3cdc2) 98.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1975      +/-   ##
==========================================
+ Coverage   97.15%   98.40%   +1.24%     
==========================================
  Files         124      124              
  Lines       12065    12069       +4     
==========================================
+ Hits        11722    11876     +154     
+ Misses        343      193     -150     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor
@mspelman07 mspelman07 left a comment

Choose a reason for hiding this comment

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

One minor comment but otherwise I'm happy with this.

precip_cube = set_up_variable_cube(
data,
name="lwe_thickness_of_precipitation_amount",
units="m/s",
Copy link
Contributor

Choose a reason for hiding this comment

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

The units for precip accumulation would typically be "m". This would also need an update in the tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@mspelman07 mspelman07 assigned MoseleyS and unassigned mspelman07 Jan 8, 2024
@mspelman07 mspelman07 added the EPP PR's related to Enhancing Post Processing team label Jan 9, 2024
* master:
  Bump actions/stale from 8 to 9 (metoppv#1972)
  Bump codecov/codecov-action from 3 to 4 (metoppv#1942)
  Bump actions/cache from 3 to 4 (metoppv#1977)
  Adds CLI to copy attributes from one NetCDF file to another. (metoppv#1976)
* master:
  Revert "Bump codecov/codecov-action from 3 to 4" (metoppv#1978)
mspelman07
mspelman07 previously approved these changes Jan 22, 2024
@brhooper brhooper self-assigned this Jan 22, 2024
Copy link
Contributor
@brhooper brhooper left a comment

Choose a reason for hiding this comment

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

These changes look fine, however I think additional changes are required to the acceptance test data to accommodate them. At the moment this PR causes the snow_splitter CLI acceptance tests to fail as the kgo cubes have incorrect cube names.

@brhooper brhooper assigned MoseleyS and unassigned brhooper Jan 22, 2024
@MoseleyS
Copy link
Contributor Author

These changes look fine, however I think additional changes are required to the acceptance test data to accommodate them. At the moment this PR causes the snow_splitter CLI acceptance tests to fail as the kgo cubes have incorrect cube names.

Oh dear. I must have been falling asleep to miss this. Acceptance Test PR added: metoppv/improver_test_data#42

@MoseleyS MoseleyS assigned brhooper and unassigned MoseleyS Jan 23, 2024
Copy link
Contributor
@brhooper brhooper left a comment

Choose a reason for hiding this comment

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

Thanks @MoseleyS, this all looks good now.

@brhooper brhooper assigned mspelman07 and unassigned brhooper Jan 23, 2024
@mspelman07 mspelman07 merged commit 14723f3 into metoppv:master Jan 25, 2024
@MoseleyS MoseleyS deleted the snow_splitter_names branch July 19, 2024 10:29
MoseleyS added a commit to MoseleyS/improver that referenced this pull request Aug 22, 2024
…parts (metoppv#1975)

* SnowSplitter output cube names are now the same as their StaGE couterparts.

* Corrects failing test by inserting new fixture name.

* Updates doc-strings

* Sphinx error fix

* Flake8 error fix caused by Sphinx error fix

* Corrects units of accumulation data in snow splitter test

* Updates checksums
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EPP PR's related to Enhancing Post Processing team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0