[gdal-dev] HDF5 output
Even Rouault
even.rouault at spatialys.com
Thu Dec 24 03:15:10 PST 2020
On mercredi 23 décembre 2020 23:49:45 CET hosein imani wrote:
> Hello
> Does gdal_translate have capability to convert a format to HDF5?
> I tried to convert “tiff”format to “HDF5” bud I got an error message
> ERROR 1: HDF5 driver has no creation capabilities
> If gdal doesn’t convert to HDF5, how could i convert to HDF5
> Please advise
If you use the netCDF driver with the FORMAT=NC4 creation option, this will
generate a netCDF 4 file, which is technically a HDF5 file
gdal_translate your.tif dest.h5 -of netCDF -co FORMAT=NC4
See https://gdal.org/drivers/raster/netcdf.html
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list