Adding and Subtracting Rasters not working

226
4
Jump to solution
12-16-2021 11:41 PM
jamosheim25
New Contributor II

Hi All:

I am having a tizzy with what I thought would be a simple raster operation. Here's the thing:

I have a relatively small raster call it Map1 300 MB

I have a shapefiles mask that I used to clip parts of MAP1 - worked ok, call it Clip1

I need to "zero" the clipped areas (Clip1) in MAP1

When I do

Map1 minus Clip1 I get only the "zero" areas of Clip1 in Map1, the rest of Map1 does not show, Result1

Fork checking I did Map1 plus (-Clip1) got same result as above

Also I did Map1 plus Clip1 and got a few scattered points only which was kind of strange

I am able to multiply and divide by a constant in MAP1

I checked the projections, elevation settings, datum, and other and they "seem" ok.

I have no clue why this is happening.

Any thoughts? See attached pics.Map1Map1Clip1Clip1ResultsResults

Thank you,

John Mosheim

 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
JayantaPoddar
MVP Esteemed Contributor

Try out the following expression using Raster Calculator

 

Con(IsNull("CLIP1"), "MAP1",0)

 



Think Location

View solution in original post

4 Replies
JayantaPoddar
MVP Esteemed Contributor

Try out the following expression using Raster Calculator

 

Con(IsNull("CLIP1"), "MAP1",0)

 



Think Location
jamosheim25
New Contributor II

Dear Jayanta:

Thank you a ton for the suggestion. I tried it and puff! It worked.

Sincerely.

John

0 Kudos
DanPatterson
MVP Esteemed Contributor

In the Environments parameter of the tool, what did you set the Extent too?  That will control what area on the raster is returned.  You can set the extent to include the larger or smaller or intersection of the two inputs


... sort of retired...
jamosheim25
New Contributor II

Dan:

Thank you for your suggesting.

I modified the environment but still got non forested areas as a result. Thank you very much for responding to my request. 

Best wishes

John

 

0 Kudos