[gdal-dev] parsing of netcdf4 no-data values in hdf5 reader
Even Rouault
even.rouault at spatialys.com
Wed Oct 10 10:36:12 PDT 2018
On mercredi 10 octobre 2018 17:28:59 CEST Bekaert, David (334H) wrote:
> Dear GDAL developers,
>
> I generated a netcdf4 file using python netCDF4 module.
> As indicated in the documentation, GDAL opens this file with the HDF5 reader
> without problem.
I am also able to properly display the geocoded file with
> QGIS (no-data not applied) and panoply (no-data applied).
> From reading through the code I believe the GDAL hdf5 reader does not parse
> a “no-data” attribute of the dataset.
For the GDAL netcdf reader I found
> this is being tracked among other attributes. Do you have any advice on
> what I need to do for GDAL to capture e.g. “missing_value” , “_FillValue”
> or even a “nodata” attribute from the netcdf4 datasets using the hdf5
> reader?
My main question would be: why not to use the netCDF driver ? It is supposed
to deal with that already.
Otherwise I guess you could use the GH5_FetchAttribute() convenience function
to retrieve those attributes and expose them as nodata in the HDF5 driver.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list