TransWikia.com

GDAL raster calculator

Geographic Information Systems Asked by Hardau on January 23, 2021

I have a series of raster data (GeoTIFF) with 5 bands (B / G / R / rededge / NIR).

I would like to calculate different indices by using the gdal raster calculator. I would like to use the batch process at the end.

I don’t know what to do, because I can’t set the GDAL raster calculator to produce reasonable results.

What’s wrong with the following syntax settings: enter image description here

One Answer

You can try to write the code like below: gdal_calc.py -A input.tif --A_band=1 -B input.tif --B_band=2 -C input.tif --C_band=3 -D input.tif --D_band=4 --outfile=output.tif --calc="((A-B)/(C+D))"

Answered by user97103 on January 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP