I'm sorry. I should have said that gdalbuildvrt does not support creation of the lookup table.
On Fri, Oct 28, 2011 at 12:22 PM, Hermann Peifer <pei...@gmx.eu> wrote: > On 27/10/2011 14:48, Chaitanya kumar CH wrote: > >> However it [gdalbuildvrt] doesn't support complex sources.. >> > > Chaitanya, could you perhaps elaborate on the above statement? > > > joolek, > > About the batch-processing of 3000 files: in my Linux/Bash/GDAL-from-trunk > environment, I would do something like indicated below. > > Hope this helps, Hermann > > for f in path/to/mytiffs/*.tif; do > gdal_translate -of vrt $f /dev/stdout | > awk ' > BEGIN { lut = "<LUT>0:0,253:253,254:255</**LUT>" } > { gsub(/SimpleSource>/, "ComplexSource>") } > $1 == "</ComplexSource>" { $0 = lut ORS $0 } > { print }' > tmp.vrt > gdal_translate tmp.vrt ${f%.tif}_modified.tif > done > -- Best regards, Chaitanya kumar CH. +91-9494447584 17.2416N 80.1426E
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev