[FEATURE] add --allBands option to gdal_calc.py, this allows to apply calculation to all bands in one of the input files
|Reported by:||etourigny||Owned by:||warmerdam|
This feature is useful for applying a calculation to all bands in a given file. Example usage which multiplies all band in A.tif with first band in B.tif:
gdal_calc.py -A A.tif -B B.tif --allBands A --calc A*B --NoDataValue?=999 --overwrite --outfile out.tif
Currently it has to be used in conjunction with --overwrite if the destination file exists.
I have created a test suite for gdal_calc.py to test against present and future regressions.
Can someone look at this?