How do I save a GeoTIFF using an obsolete EPSG projection code?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to convert a NetCDF file into a GeoTIFF, but the only projection code corresponding to the 'CoordRefSysCode' I need (specified for geotiffwrite) is obsolete. The NetCDF file is in equidistant cylindrincal (or equirectangular) projection, and the projection code under Appendix 6 (http://geotiff.maptools.org/spec/geotiff6.html) is 17.
When I try to use 17, I receive an error message that says: "The 'CoordRefSysCode' parameter must indicate a geographic or projected coordinate reference system."
How do I save the NetCDF file as a GeoTIFF with the proper projection using geotiffwrite?
0 comentarios
Respuestas (1)
Sai Sri Pathuri
el 28 de Ag. de 2019
The error may be because of using Coordinate Transformation Code for CoordRefSysCode parameter. According to the tips given in the documentation of geotiffwrite function, the following values can be used for projected coordinate systems.
1 comentario
Yimin Wei
el 28 de Ag. de 2019
I see, thank you! The projected coordinate systems don't appear to include the equidistant cylindrical projection I need, so I ended up saving the LAT/LON and data from the NetCDF file in MATLAB using ncread and interpolating the LAT/LON grid to that of my target projection. I appreciate your advice!
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!