<div dir="ltr">Hi GDAL Developers,<br><br>I have one GeoTIFF file with 2 bands. The data type is Byte. I want to calculate (Band2-Band1)/(Band2+Band1).<br><br>But the following command provided a dark image:<br><br>gdal_calc.py -A infile --A_band 1 -B infile, --B_band 0 --outfile outfile --calc "(A-B)/(A+B)" <br>
<br>Does gdal_calc.py not calculate arithmetic with in the same file?<br><br>Thanks for your time.<br><br>cleo<br></div>