[gdal-dev] gdalbuildvrt different bands

Jose Gomez-Dans jgomezdans at gmail.com
Mon Oct 1 05:49:48 PDT 2012


Hi,
I want to produce a set of VRTs that comprise a re-arrangement of bands of
a number of individual GeoTIFF files. Say I have
file_01: band_01...band_04
file_02: band_01...band_04
file_03: band_01...band_04
file_04: band_01...band_04

And what I want to have is
vrt_01: file_01:band_01 file_02:band_01 file_03:band_01 file_04:band_01
vrt_02: file_01:band_02 file_02:band_02 file_03:band_02 file_04:band_02
vrt_03: file_01:band_03 file_03:band_03 file_03:band_04 file_04:band_03
vrt_03: file_01:band_04 file_04:band_04 file_03:band_04 file_04:band_04

I thought about using gdalbuildvrt, creating an "file of files", but I
don't think you can specify a particular band. Another idea would be to use
gdal_translate to create VRTs of the individual bands for each file, but
that looks like far too much effort. I'd like to avoid creating the XML
file myself because I find that that is quite error prone and requires
quite a bit of debugging.

Any ideas appreciated!
Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121001/d3fdabae/attachment.html>


More information about the gdal-dev mailing list