Raster addition where some rasters are null and some have values

138
4
Jump to solution
05-19-2014 09:23 AM
Highlighted
New Contributor
I have five rasters with values between 0.1-1 and null values everywhere else.  The values on the rasters overlap in some areas, but not everywhere (i.e. two rasters may have a value while the other three are null at a given xy).  I want to be able to sum all of the rasters together without ending up with a null value.  For example, at a given xy location three of the rasters have a 1 and the other two rasters are null.  When I add them together I want a resulting raster with a value of 3 and not null.  I think I need to convert the null values to zeroes, but maybe there is an easier way.  What's the best way to do this?

Thanks!
Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Regular Contributor
I guess you did not set the processing extent in the environment.

The default is the intersection of the inputs and you would want to use the union.

-Steve

View solution in original post

Reply
0 Kudos
4 Replies
Highlighted
Esri Regular Contributor
Use the CellStatistics tool
Reply
0 Kudos
Highlighted
New Contributor
Thanks that was really easy.  For some reason it clipped the output raster to some random small extent, but then I included a zero raster that covered the entire area and that fixed the clipping problem.
Reply
0 Kudos
Highlighted
Esri Regular Contributor
I guess you did not set the processing extent in the environment.

The default is the intersection of the inputs and you would want to use the union.

-Steve

View solution in original post

Reply
0 Kudos
Highlighted
New Contributor
That did it, thank you!
Reply
0 Kudos