This is a similar question to Deleting polygon defined area from raster layer in ArcGIS Desktop?, but I need the answer to be able to apply to multi bands since I am working with a RGB file. I have a Landsat 8 file and have used SAGA to classify the clouds (wasn't to fond with ArcMaps). I I want to use arcmap to remove the polygon clouds from my original landsat image (SAGA is too slow and crashes constantly). From the post linked above, I have converted the shape file to a raster.

I was thinking may changing all the cloud raster values to zero (not sure how to do this) and then multiplying with the original landsat 8 raster.

Any suggestions?

  1. Created/had a shapefile of the area proposed

  2. Erased the Cloud/Shadow polygons with the above shapefile

  3. Clipped the RGB raster with the new erased shapefile

enter image description here

enter image description here

  • Glad you found a solution yourself ;) – umbe1987 Jul 17 '19 at 9:10
  • Thank you and thank you for posting as well. – Zman3 Jul 17 '19 at 9:13

Here is how I would do that, with the Basic license:

  1. Import yout RGB image in your mxd.
  2. Convert your cloud polygons (shapefile format, no need to have a arster here) to graphics.

enter image description here

  1. Make sure the graphic is/are selected using the selection tool in the Draw toolbar and right click your RGB raster layer in the Table Of Contents and choose Data -> Export Data

enter image description here enter image description here

  1. Export with the Extent parameter set to Selected Graphics (Clipping) and the option Clip inside flagged (this does the magic)

enter image description here

enter image description here

  • For some reason the "convert features to graphics" is grayed out for me. The file is actually a .sprm.shp. Not sure if that matters? – Zman3 Jul 17 '19 at 8:32
  • My apologies, I didn't realize you were converting the raster file. I actually just solved the problem. I will post my answer below and try yours out. – Zman3 Jul 17 '19 at 8:36
  • No, in step 2 I said to ceonvert the Shapefile to Graphics, and in step 4 use this graphic to clip your RGB image. – umbe1987 Jul 17 '19 at 8:38
  • Yes you are correct. Okay I changed my .sprm to a shapefile in SAGA. I copied your steps above, however now the "Selected Graphics (Clipping)" in step 3 is grayed out. Does my RGB need to be in a specific format. Mine is a 32 bit floating point. – Zman3 Jul 17 '19 at 8:44
  • interestingly, it seems that if you don't have your graphic selected, ArcMap won't recognize that you can use it to clip the raster. I'll update my answer to reflect this, gimme one sec please... – umbe1987 Jul 17 '19 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.