Define NoData areas in a raster using a mask

4927
6
03-20-2018 02:31 AM
FredericBrieger
New Contributor

Hello,

I have multiple overlapping rasters (DEM) that I want to merge together using "Mosaic to new Raster". One raster has some noisy spots that I want to set to NoData, to be ignored in the final DEM. 

How can I do that using polygons that mask the areas i want to delete? 

The SetNull function is always setting everything BUT the area to NoData when i use an extracted raster as the condition...

Cheers

0 Kudos
6 Replies
DanPatterson_Retired
MVP Emeritus

Are you following this procedure?

http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/setting-cell-values-to-nodata-with-s...

If it is masking everything but what you want, then you have to reverse the condition.

Perhaps you might want to show your steps and perhaps a sample image of where the problem lies.

0 Kudos
FredericBrieger
New Contributor

- I created a polygon with the area i want to setNull

- extract by mask to these areas

The output is everywhere NoData exept for the area I want to setNull. If I use this raster as a condition the NoData areas will always be true and result in NoData...

0 Kudos
FredericBrieger
New Contributor

I solved the problem.

0 Kudos
SanjayRana
New Contributor III

Hi, Can you please share your solution? Thanks, Sanjay.

0 Kudos
DanPatterson_Retired
MVP Emeritus

check my links... especially the second one

0 Kudos