-
Notifications
You must be signed in to change notification settings - Fork 807
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
Question: Geostationary projection and lat_0 #1930
Comments
It does not seem to exist in the definition here either: https://spatialreference.org/ref/sr-org/geostationary-satellite-view/ |
(spatialreference.org should not be considered at all. It has not been updated in > 10 years) The WKT definition here is based on what GDAL 2 did, and it ignored the Latitude of origin (the netCDF driver ignores the latitude_of_projection_origin CF parameters). (the fact that lat_0=1 is preserved in the PROJ.4 CRS string is due to the magic you've probably experienced a bit lately when hacking in those areas. The fact that it is lost when using the Conversion object is because the original PROJ.4 string is a hidden property of the CRS object, not the Conversion one) |
@rouault, thanks for the response! That makes sense and helps me towards a sensible default of 0 when the latitude of origin is not included.
Interesting, so it gets dropped in the coordinate operation, even though it is a valid PROJ string option? >>> from pyproj import CRS
>>> crs = CRS("+proj=geos +sweep=x +lat_0=0 +lon_0=0 +h=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs")
>>> crs.to_proj4()
'+proj=geos +sweep=x +lat_0=0 +lon_0=0 +h=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs'
>>> crs.coordinate_operation.to_proj4()
'+proj=pipeline +step +proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=geos +sweep=x +lon_0=0 +h=1 +x_0=0 +y_0=0 +ellps=WGS84'
@djhoese, do you have an example where this is the case?
Would it make sense to add support for it in to be explicit? Another option, if it is included, would it be to create a PROJ-based coordinate operation:
|
No. I think this is one of those where it should never not be 0 until someone goes and does it. I don't think it is needed but if the math in the projection code is there to handle it it could be nice for future-proofing. |
The first part is true, the second isn't really. It is correct that There may be a tiny bug hidden here though, since setting
Ideally both |
Ah you're right of course. I was confused with lam0 ... |
The same goes for |
Insightful comment here: cf-convention/cf-conventions#246 (comment)
|
Thanks for all the insights! Going to close now. |
Based on: pyproj4/pyproj#515
I don't see
lat_0
in the options for the geostationary projection: https://proj.org/operations/projections/geos.htmlAnd when I do
projinfo
it is not there in the WKT form even though it persists in the PROJ form:However, it is mentioned for the geostationary projection for CF as
latitude_of_projection_origin
:http://cfconventions.org/cf-conventions/cf-conventions#_geostationary_projection
And it currently works in the WKT with how I have it setup if you use the CF form:
But, it gets lost in the coordinate operation:
I am definitely not an expert on this, so any insight into the matter would be helpful.
Thanks!
The text was updated successfully, but these errors were encountered: