Raster addition where some rasters are null and some have values

585
4
Jump to solution
05-19-2014 09:23 AM
RobJaecks
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!
0 Kudos
1 Solution

Accepted Solutions
SteveLynch
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

0 Kudos
4 Replies
SteveLynch
Esri Regular Contributor
Use the CellStatistics tool
0 Kudos
RobJaecks
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.
0 Kudos
SteveLynch
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
0 Kudos
RobJaecks
New Contributor
That did it, thank you!
0 Kudos