How do I save a GeoTIFF using an obsolete EPSG projection code?

5 次查看(过去 30 天)
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?

回答(1 个)

Sai Sri Pathuri
Sai Sri Pathuri 2019-8-28
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 个评论
Yimin Wei
Yimin Wei 2019-8-28
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!

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by