-
Notifications
You must be signed in to change notification settings - Fork 41
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
add DataArray.cf.get_pyproj_crs()
#395
Comments
For the cartopy case, this seems to have been an issue for some time now. I am unsure, why this seems to be complicated (also it should not?)... A possible workaround before going upstream: we could use a couple of mappings that simply map cf |
Those of us developing Iris are equally frustrated around this topic:
Apologies for my incomplete understanding of this area, I believe the two links I have provided are relevant, although there may be others. |
@dcherian I have some code that i now use regularly to do transformations based on grid mappings using I also use that to compute boundaries by transforming the linear x, y boundaries according to the grid mapping info. I was wondering if that could have a place here in a kind of mapping class, e.g., as an option in |
I think the transformations should be in rioxarray already? cc @snowman2 |
Ahh, nice! Yes, you mentioned that in the roadmap. I'll check it out. |
FWIW I'd be happy to add |
I started something here for ccrs some time ago (it's the naive approach). Would be happy to move something to cf_xarray! |
Pyproj already has almost everything here https://github.com/pyproj4/pyproj/blob/69fb46f2c007f71a3534a7c935b6f8813a45dfa6/pyproj/crs/_cf1x8.py When I last looked at this, fixing SciTools/cartopy#2099 really looked like the most elegant way forward... Also, if a naive and explicit mapping from CF to Cartopy is the solution, maybe it would be most useful in |
Woud be nice to have a
cf
function that generates CRS from grid_mappings that cartopy can understand for plotting. Would be nice to simply work without having to know which mapping is present, e.g., no need to pick the required cartopy CRS by hand.Continue the dicussions started here:
cf.grid_mapping_names
#391 (comment)Related issues:
from_cf
constructor inherited frompyproj
is broken. SciTools/cartopy#2099The text was updated successfully, but these errors were encountered: