Skip to content
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 proj_create_conversion_pole_rotation_netcdf_cf_convention() to address netCDF datasets using a pole rotation method #2835

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

rouault
Copy link
Member

@rouault rouault commented Sep 2, 2021

No description provided.

…dress netCDF datasets using a pole rotation method
@rouault rouault added this to the 8.2.0 milestone Sep 2, 2021
@snowman2
Copy link
Contributor

snowman2 commented Sep 2, 2021

Is there an upstream issue/discussion about this?

@rouault
Copy link
Member Author

rouault commented Sep 2, 2021

Is there an upstream issue/discussion about this?

This has certainly been discussed a number of times with different people, but not necessarily on public forums. Here's the objective is to support in a cleaner way the way the netCDF CF conventions encode rotated pole CRS. A similar work has been done in the past for the convention used in the GRIB format, which is another way of encoding the parameters.

@rouault
Copy link
Member Author

rouault commented Sep 2, 2021

There will be follow-up work in GDAL to plug the netCDF driver to that new projection method

@snowman2
Copy link
Contributor

snowman2 commented Sep 2, 2021

Good to know. I ask because pyproj has a RotatedLatitudeLongitudeConversion for CF conventions. However, what you have seems to be different by adding 180 to lon_0. I would be interested in knowing why it is implemented this way in PROJ.

@rouault
Copy link
Member Author

rouault commented Sep 2, 2021

I would be interested in knowing why it is implemented this way in PROJ.

I'm not sure of the origin of the convention used by PROJ. The current formulas for this new netCDF CF convention rotated pole projection is based on experiments with netCDF products. There are several ways of expressing the rotated pole, GRIB and netCDF CF using different convention. For some formats for planetary maps (non Earth), there's even a third convention... (but having different conventions for the same mathematical reality is not really specific to rotated pole. This is the case for Mercator, Polar stereographic or LCC)

@snowman2
Copy link
Contributor

snowman2 commented Sep 2, 2021

Thanks for the explanation @rouault 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants