[gdal-dev] Metadata exceeding 32000 bytes cannot be written into GeoTIFF....
Even Rouault
even.rouault at spatialys.com
Wed Jul 14 13:24:05 PDT 2021
Yes, there's this limitation to 32kb for the metadata stored in the
GDAL_METADATA TIFF tag. I'm not sure where this comes from. I think this
could probably be raised. Could you open a ticket about that ?
In the meantime, you could do
gdal_translate -a_srs EPSG:4326 -strict
NETCDF:MITO_20210713_20210713T00.nc:V temp.vrt
then with a text editor edit temp.vrt to remove metadata items you don't
need
and then
gdal_translate temp.vrt /Users/lollo/Desktop/TESTMITO/V.tiff
Le 14/07/2021 à 21:37, Lorenzo Di Giacomo a écrit :
> Hi i'm having a NetCDF (.nc) file, with N bands each of those have N
> levels.
>
> My final goal would be have a single GEOTIFF with all the bands and
> levels (since Geotiff dont support levels, all the levels will be a
> BAND)....
>
> So my workflow would be: extract each band and its levels to 1 single
> tiff each -> merge all tiffs in 1 final GeoTiff
>
> But the problem, now, seems that i cant extract a band multi-level to
> a single geotiff.
> Using the command:
>
> gdal_translate -a_srs EPSG:4326 -strict
> NETCDF:MITO_20210713_20210713T00.nc:V -of GTiff
> /Users/lollo/Desktop/TESTMITO/V.tiff
>
> I actually have a GeoTiff with all the levels of the band "V" (in the
> netcdf) as bands in the tiff... But there are not metadata, because i
> got a WARNING:
>
> Metadata exceeding 32000 bytes cannot be written into GeoTIFF.
> Transferred to PAM instead.
>
> How can i have 1 single tiff with all the metadata coming from the
> band in netcdf? Thank you!!
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210714/a9f20bf3/attachment.html>
More information about the gdal-dev
mailing list