Select to view content in your preferred language

adding two rasters together

1657
3
12-21-2010 09:05 AM
JoshuaGage
New Contributor
Good afternoon.  I know this is simple but am missing something obvious. 

I have two raster datasets that have cost-surface values.  They both have the same extent (i.e. county boundary).  The difference between the two is that one raster is a grid of land use and is continuous across the whole county.  The other raster only represents public lands.  Although it has the same extent as the whole county, there are some areas where there are no values (i.e. private lands). 

I am creating a cost surface and want to add the two together.  When I do this using raster calculator, the resulting grid only occurs where both datasets overlap.  Am I taking the wrong approach to adding the two grids together?  Any suggestions?

thanks in advance,

Josh
0 Kudos
3 Replies
RobertBerger
Occasional Contributor
Hi Josh,

One thing you could try is to do a mosaic and use the mosaic method to specify what values come through. I'm not sure if this will work for you or not but it might.
Question: the private lands: what is the pixel value for all other values (not private)? I it NoData or 0 or something else?

Robert
0 Kudos
JoshuaGage
New Contributor
Robert,

Other lands (i.e. private) have a not data value.

update... 

i reclassified no-data value equal to zero.  when i then added using raster calculator, i got all the values i needed. 

any other suggestions using raster calculator?

cheers,

josh
0 Kudos
RobertBerger
Occasional Contributor
Josh,

You could also try using the spatial analysis CON tool. This is very similar to a programmatic "if" statement.

Robert
0 Kudos