<div dir="ltr">Hi Even, first of all thanks for your fast reply!!<br>I did as you said but, when i do the gdalbuildvrt -separate tmp.vrt in1.tif ... in2.tif ( or similar gdalbuildvrt -separate tmp.vrt <a href="http://in1.nc">in1.nc</a> ... <a href="http://in2.nc">in2.nc</a> ) i got the message "
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">fileName.ext has 100 bands. </span><span style="font-variant-ligatures:no-common-ligatures">Only the first one will be taken into account in the -separate case</span><span style="font-variant-ligatures:no-common-ligatures">".<br><br>In fact i have for each .tiff 100 bands and for each .nc 1 band with 100 levels ... What i'd like to have is that the resulting "<a href="http://OUT.NC">OUT.NC</a>" has N bands (N = number of .nc / tiff) and for each of these bands their associated levels (exactly as the original image was).<br>Any ideas? </span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Thanks!!</span></p>
</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 16 giu 2021 alle ore 17:28 Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Either with gdal_merge.py -separate -o <a href="http://out.nc" target="_blank">out.nc</a> in1.tif ...
in2.tif (<a href="https://gdal.org/programs/gdal_merge.html" target="_blank">https://gdal.org/programs/gdal_merge.html</a>), but it might
be memory hungry</p>
<p>Or use gdalbuildvrt -separate tmp.vrt in1.tif ... in2.tif +
gdal_translate tmp.vrt <a href="http://out.nc" target="_blank">out.nc</a><br>
</p>
<div>Le 16/06/2021 à 17:22, Lorenzo Di
Giacomo a écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi everybody, initially i have 1 NetCDF and for
each band i create 1 GEOTIFF.<br>
Now, i have X ( where X = #bands) TIFF files and i want to come
back to 1 NetCDF file.<br>
How should i do it?<br>
<br>
P.S. i saw that with gdal_translate i can also transform each
GEOTIFF in one NetCDF, but at the end i cant find a way to merge
all this files into 1 single NetCDF.<br>
<br>
If you have any suggestions i'll really appreciate it, thanks</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</blockquote></div>