-
Notifications
You must be signed in to change notification settings - Fork 416
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
parse_cf issues with NCEP precip data #1459
Comments
The "Meter" issue is indeed just a manifestation #1362 (our general issue for tracking unit support for UDUNITS/CF conventions versus what Pint provides out-of-the-box). I'll add a note there. The second is definitely an interesting one. It overlaps with #965, and seems to come down to avoiding a name conflict with the CRS coordinate (where we rely exclusively on the Just to confirm, does the following workaround also fix it? ds = ds.metpy.parse_cf([var for var in ds.data_vars if var != 'crs']) |
Yep! Using the list of non- |
I wonder if the way to handle the |
That should definitely fix the issue here, but doesn't on its own help with #965. |
Sure. I don't have a good way to fix #965 off the top of my head. |
Yeah, and that being said my idea for it (adding a sequential postfix for unique CRSs from the dataset if multiple identified when looping through the data vars before merging) doesn't really change whether the base name is |
In supporting users, I came across two roadblocks trying to parse some NCEP precip mosaic data. Initially, it can not be parsed as the
x, y
coordinates have a units attribute of 'Meter' (capital 'M') which is not in the unit registry (#1362). Once modified, you can successfully parse individual data variable DataArrays. However, if you try to parse the entire DataSet, it will fail with aMergeError
. The precip data variables havegrid_mapping
attributes pointing to an existingcrs
data variable (non-coordinate.)parse_cf
will look for this providedcrs
data variable but then try to assign its owncrs
. Do we want to seek some sort of naming or organization solution here? It does behave as expected if I set the originalcrs
data variable as a coordinate.The text was updated successfully, but these errors were encountered: