[gdal-dev] Merge multiple TIFF / NC in single NC
Lorenzo Di Giacomo
loridigia at gmail.com
Wed Jun 16 10:49:45 PDT 2021
Hi Even, first of all thanks for your fast reply!!
I did as you said but, when i do the gdalbuildvrt -separate tmp.vrt in1.tif
... in2.tif ( or similar gdalbuildvrt -separate tmp.vrt in1.nc ... in2.nc )
i got the message "
fileName.ext has 100 bands. Only the first one will be taken into account
in the -separate case".
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 "OUT.NC" has N bands
(N = number of .nc / tiff) and for each of these bands their associated
levels (exactly as the original image was).
Any ideas?
Thanks!!
Il giorno mer 16 giu 2021 alle ore 17:28 Even Rouault <
even.rouault at spatialys.com> ha scritto:
> Either with gdal_merge.py -separate -o out.nc in1.tif ... in2.tif (
> https://gdal.org/programs/gdal_merge.html), but it might be memory hungry
>
> Or use gdalbuildvrt -separate tmp.vrt in1.tif ... in2.tif + gdal_translate
> tmp.vrt out.nc
> Le 16/06/2021 à 17:22, Lorenzo Di Giacomo a écrit :
>
> Hi everybody, initially i have 1 NetCDF and for each band i create 1
> GEOTIFF.
> Now, i have X ( where X = #bands) TIFF files and i want to come back to 1
> NetCDF file.
> How should i do it?
>
> 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.
>
> If you have any suggestions i'll really appreciate it, thanks
>
> _______________________________________________
> gdal-dev mailing listgdal-dev at lists.osgeo.orghttps://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/20210616/4217f07e/attachment.html>
More information about the gdal-dev
mailing list