[gdal-dev] gdal_translate into netCDF file will lose some important metadata items such as scale_factor and add_offset

Even Rouault even.rouault at spatialys.com
Mon Aug 31 02:06:32 PDT 2020


On lundi 31 août 2020 00:11:54 CEST Zhan Li wrote:
> Hi, when I use gdal_translate to convert a raster file (e.g., either GTiff
> or VRT) into netCDF format, it always loses some important metadata items
> such as scale_factor, add_offset and etc. What am I doing it wrong? Can
> anyone help me to solve this problem?

As scale_factor=1 and add_offset=0 in that dataset, they have no effect, and are 
thus not stored when converted to GeoTIFF.

valid_range is explicitly discarded from source metadata when converting into 
netCDF. I'm not completely sure of the rationale for that.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200831/ed22c8dc/attachment.html>


More information about the gdal-dev mailing list