I have 5 large point datasets (shapefiles) and I'm interested in getting a heatmap on the combination of all 5 point layers.
I use the QGIS heatmap tool to create a heatmap on each layer. This is the tool:
Here's the parameters for the tool:
I run this tool for all 5 point layers to have 5 different heat maps, which have some pixels overlapping and other pixels on their own.
I.e. the rasters do not cover the same extent.
I need to add these values together (as in addition '+').
But, when I use Raster Calculator to 'add' them together, the pixels on their own disappear. I tried many different calculations, such as Raster1 + Raster2
; Raster1 OR Raster2
; (Raster1 + Raster1) /2 + (Raster1 + Raster1) /2
but still the same issue with data vanishing where the two layers don't overlap.
I also tried to make a large raster that covers the whole point layers area, with each pixel valued 0, but the size of the pixels were not the same! This larger raster was used to attempt to add all the other Heat Map rasters so I wouldn't be performing arithmetic on empty space. I'm not sure if the different sized raster pixels would be an issue. Making that huge raster with the same (tiny) size of the pixels in the heatmap layer is a bit impractical because it would be too big to process.
I tried nan_to_num()
but still the same result.
Before (i.e. multiple Heat Maps). You can see 3 areas:
After (i.e. one combined Heat Map). You can see 2 slightly smaller areas:
How do I stop these pixels from disappearing, particularly where the layers don't overlap?