<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>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 ?</p>
<font face="Menlo">In the meantime, you could do<br>
<br>
gdal_translate -a_srs EPSG:4326 -strict
NETCDF:MITO_20210713_20210713T00.nc:V temp.vrt<br>
<br>
then with a text editor edit temp.vrt to remove metadata items you
don't need<br>
<br>
and then<br>
<br>
</font>
<p><font face="Menlo">gdal_translate temp.vrt
/Users/lollo/Desktop/TESTMITO/V.tiff</font></p>
<p><font face="Menlo"><br>
</font></p>
<div class="moz-cite-prefix">Le 14/07/2021 à 21:37, Lorenzo Di
Giacomo a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAERmyNTmb884u0gaVRf+mhDw17Ba=vDQ+KEGTYwXCWDwt6WYLQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi i'm having a NetCDF (.nc) file, with N bands
each of those have N levels.<br>
<br>
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).... <br>
<br>
So my workflow would be: extract each band and its levels to 1
single tiff each -> merge all tiffs in 1 final GeoTiff<br>
<br>
But the problem, now, seems that i cant extract a band
multi-level to a single geotiff.<br>
Using the command:<br>
<br>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span
class="gmail-s1" style=""><font face="Menlo" color="#000000"><span
style="font-size:11px;font-variant-ligatures:no-common-ligatures">gdal_translate
-a_srs EPSG:4326 -strict
NETCDF:MITO_20210713_20210713T00.nc:V -of GTiff
/Users/lollo/Desktop/TESTMITO/V.tiff</span></font><br>
<br>
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:<br>
<br>
</span></p>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span
class="gmail-s1" style=""><font face="Menlo" color="#000000"><span
style="font-size:11px;font-variant-ligatures:no-common-ligatures">Metadata
exceeding 32000 bytes cannot be written into GeoTIFF.
Transferred to PAM instead.</span></font><br>
<br>
How can i have 1 single tiff with all the metadata coming
from the band in netcdf? Thank you!!</span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>