[gdal-dev] gdal.open won't read short format

Even Rouault even.rouault at spatialys.com
Sun Aug 30 08:40:07 PDT 2020


Tom,

> I'm trying to remap a layer from a NETCDF file (Cloud top height) from its
> native geostationary projection to a simple lat-lon projection, using gdal
> through python. I was successful so far, until the data format was changed
> from "Byte" to "short". Now the gdal.open command combined with
> .ReadAsArray returns the data only filled with the fill value.
> 
> I can't seem to convert the NETCFD file from short to byte, and would
> appreciate any help on how to tackle this issue. ** I tried to use
> gdal_translate in the command line, but I guess I didn't get the right
> syntax.

Please provide a link to such a dataset, the version number of the GDAL you use and from 
which binary distribution it comes from.

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/20200830/ac4d51f1/attachment.html>


More information about the gdal-dev mailing list