I am hoping someone can help me with an issue I am having with gdal_calc. I am looking to create NDVI rasters from 4 band 8 bit ortho tiles. I have processed the tiles using the following calculation:
gdal_calc -A DDE1.tif --A_band=4 -B DDE1.tif --B_band=1 --outfile=DDE1_ndvi.tif --type=Float32 --calc="(A-B)/(A+B)"
The results from the calculation produces integer values that are not typical of NDVI. However, when I use the same data in QGIS raster calculator using the expression below a different, more typical result is created.
Is there a different setting or function I need to call in gdal_calc to get values that have decimals? I thought the --type=Float32 would ensure output values as decimals, but they are integers. Below is a graphic with the two results.