ENH: Add potentialVorticity coordinate metadata#426
Open
DWesl wants to merge 2 commits intoecmwf:masterfrom
Open
ENH: Add potentialVorticity coordinate metadata#426DWesl wants to merge 2 commits intoecmwf:masterfrom
DWesl wants to merge 2 commits intoecmwf:masterfrom
Conversation
Units copied from https://codes.ecmwf.int/grib/param-db/60 https://codes.ecmwf.int/grib/format/grib2/ctables/4/5/ agrees NCEP has slightly different units for the GRIB2 vertical coordinate: https://www.nco.ncep.noaa.gov/pmb/docs/on388/table3.html I had variables with typeOfLevel=potentialVorticity and noticed I couldn't convert the vertical coordinate to PVU
DWesl
commented
Aug 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add metadata for the potential vorticity vertical coordinate/typeOfLevel=potentialVorticity
Units copied from https://codes.ecmwf.int/grib/param-db/60 https://codes.ecmwf.int/grib/format/grib2/ctables/4/5/ agrees
NCEP has slightly different units for the GRIB2 vertical coordinate: https://www.nco.ncep.noaa.gov/pmb/docs/on388/table3.html
I had variables with typeOfLevel=potentialVorticity and noticed I couldn't convert the vertical coordinate to PVU using pint_xarray without setting the units. This PR should allow such a use-case.
Contributor Declaration
By opening this pull request, I affirm the following: