I am attempting to add two rasters using the QGIS raster calculator and every output ends up as 'nan'. There were no problems with the raster calculator before trying to add these rasters, so I am stumped as to why it is not working with these rasters.
The code is:
"ForType@1" + "LandType@1"
Both rasters have the same projection and the pixel size are the same. It is a simple addition but any sort of calculation with these two rasters, whether addition or multiplication etc, ends up as no data.
Does anyone have suggestions as to why the raster calculator is not working? I am using QGIS 2.6.1, and other users have suggested updating the version to 2.10
Best Answer
The Copy Raster tool in ArcGIS was used to convert the Pixel Type of one raster (8 bit unsigned) so that it matched the Pixel Type of the other raster (32 bit unsigned).
The Raster Calculator then worked perfectly to add the two rasters together.