good morning, I’m using the latest version of Grass (8.4.1) and I create the database, the location and I al currently work ing in PERMANENT mapset. I want to calcolate the NDVI index for my purpose, but when I use r.mapcalc to combine different radiometric bends the output is one map of only one color. I already set the computational region so the region is not the issue… Can someone help me ? Thank you
I suspect you are dividing two integers, try making one of them float like:
r.mapcalc expression="ndvi = float(nir - red) / (nir + red)"