I want to use "raster calculator" within graphical modeler (QGIS). My input rasters are sentinel 2 bands, let's call them "A" and "B". The expression I want to calculate is (A-B)/(A+B). My problem is that the resulting output is not correct. In particular, DN of the resulting raster output should range between -1 and +1, while in my case I can't get to that result. Instead, when I use raster calculator alone (not within graphical modeler), it works right. Could someone explain how to properly use the "raster calculator" in a model?
put on hold as off-topic by Jochen Schwarze, Erik, whyzar, csk, Dan C 22 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Jochen Schwarze, Erik, whyzar