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
something changed in interpolate.cross_section for curvilinear grids #1646
Comments
I think it has to do with pyproj replacing cartopy. |
Several changes occurred in MetPy 1.0 that could have caused this difference (using PyProj instead of cartopy, and more correctly handling globes/geods). What are the CF parameters for the grid mapping in your file? Based on the values you obtained both before and after, it looks like your points are rather far from your projection origin, which could result in high sensitivities to how the projection is handled. Using the geodesic constructor directly ( |
The geod differs in versions: 1.0.0
0.12.2
|
I don't think the Geod is initialized properly. It's missing the proper standard parallels and central lons.
|
Hmm...so in the 1.0 verison, what is |
Description: PROJ-based coordinate operation Area of Use: - undefined - |
Maybe my attrs are defined incorrectly compared to the example NARR:
Mine:
Nevermind, it looks like it's properly named... |
It does look properly named...but now that you point it out, those values with the example NARR look suspiciously like the ones in #1646 (comment). Would you be able to verify that your script is not mistakenly associating the wrong dataset or wrong dataset's CRS? |
You're right, my bad; I am jumping around in my notebook; I updated my comment and lat_0 seems to be off.
|
Okay I manually added
Is there a difference betwteen The only differences I see now are:
|
Yes, there is indeed a difference between the two, as WGS84 non-spherical (it has a flattening, meaning major and minor axes are different). How different are your x and y coordinates now (or the geodesic path constructed by |
I added a few more attrs, but still off
1.0.0
|
Is there a way to force |
I think the default radius for |
Awesome thanks for helping me debug this! Apparently it's just my attributes too dependent on cartopy's defaults! |
Hmm, if I set
|
Eh maybe I just have to pop the added kwarg if == mercator |
Now it's returning all NaNs compared to metpy==0.12.2. Unfortunately I do not have a minimal reproducible example at the moment, but any ideas what might have changed since I don't think the release notes mentioned anything about that being changed? I suspect something to do with metpy.parse_cf() which now is yields a coordinate metpy_crs in my xr.Dataset but still testing.
**curvilinear grid as in 2D lon/lat, 1D x/y
example code
The text was updated successfully, but these errors were encountered: