Removing/ erasing a defined area from a multiband raster image

1880
8
11-15-2020 06:12 PM
MaxAmaya
New Contributor II

I am trying to refine the results of a supervised landscape classification analysis by removing large bodies of water whose reflection overlaps with the signature of an impervious class. I am working with a multiband raster (RBG) and have tried a few workflows but have yet to achieve the desired results.

Workflow 1: Create a polygon around the desired areas --> clip raster --> extract by mask

Workflow 2: Create a polygon around the desired areas --> Polygon to raster --> Reclassify --> Set Null

Workflow 1 yields the opposite of what I want, while Workflow 2 creates a raster that lacks the RBG bands and is blank. I suspect it is an error in the reclassification step, but I am not sure.

Any suggestions/ ideas would be greatly appreciated.

Desired areaDesired area

Workflow 2 issuesWorkflow 2 issues

0 Kudos
8 Replies
DanPatterson
MVP Esteemed Contributor

Perhaps

Clip function 

with the "outside" option


... sort of retired...
MaxAmaya
New Contributor II

Is this function available on the desktop version, or is this a ArcGIS Pro exclusive?

 

0 Kudos
DanPatterson
MVP Esteemed Contributor

Sorry, didn't notice AGOL.

This is for ArcGIS Pro, I don't use online for editing/modifying data


... sort of retired...
MaxAmaya
New Contributor II

Got it, I am a graduate student at CSULB and I have access to ArcMap. I will see if I can get access to ArcGIS Pro so that I can run the simple function. In the meantime, do you have any suggestions on how to do this on ArcMap?

I appreciate your help and your time

Best,

Max

0 Kudos
JohannesBierer
Occasional Contributor III

Would it be possible to create a polygon of your total investigation area, erase the digitized polygons of the lakes and then use the raster clip tool?

MaxAmaya
New Contributor II

I thought about it, and I am will try on a smaller raster to see if it works. But my analysis deals with a large part of Orange County, so drawing a polygon around the entire raster seems cumbersome. Unless there is an option to instantly create a polygon that matches the area of the raster.

 

 

0 Kudos
DanPatterson
MVP Esteemed Contributor

Make a big rectangle perhaps 

If you just want to make a rectangle, use the "square" option, specify/select the extent you want, do a bit of multiplication to specify the area as being the same as the extent (length * width .... hoping you have projected data) and you should have a big square


... sort of retired...
MaxAmaya
New Contributor II

I found an alternative that yields the desired results, the workflow is as follows: 1st. Using the Draw Menu create two polygons (one of the total extent of the raster), the second for the area that needs to be excluded. 2nd. Use "Graphics Operations" from the drawing menu and select "Remove Overlap". 3rd. Convert them to features (.shp) using the "convert graphics to features" and lastly 4th. "extract by mask"

0 Kudos