When specifying bands from a raster, say:

gdal raster pipeline ! ... ! select -b "1,2,3,4,12,13,14,15,20,21" ! ...

It would be *nice* to be able to use a range of bands, perhaps with individual bands mixed in. Something like:

-b "1-4,12-15,20,21" ...

This would be hugely useful for calc and pixel functions in mosaic with the forthcoming --flatten switch in 3.12. Calc might look like:

-i A=input.tif --calc="max(A[1-4,12-15,20,21])"

Often you need to pull a large number of bands out of a netcdf or tif and it's always been a pain.

Also, nit-picky doc issue. The following --nodata paragraph is missing the magic words, "Added in version 3.12":

https://gdal.org/en/latest/programs/gdal_raster_calc.html#cmdoption-nodata

Thanks!
Scott
--
www.postholer.com

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to