Extract by Mask doesn't obey mask extent

4764
4
07-13-2012 07:33 AM
JamesBrown1
New Contributor
When attempting to extract part of a raster using a separate feature class as the mask the output is not reliably restricted to the mask area. Sometimes the output is confined to a similar shape of the mask, sometimes not at all (i.e. not changing from input raster whatsoever), and sometimes creates an empty raster (but still states it has been succesful). The randomness of output is what's very strange.

I am using ArcMap 10 and both the input raster and mask are in the same coordinate system.

I am also experiencing similar problems with Raster Creation whereby the tool seems not to obey the output extent.

Any ideas as to why this might be happening? Any work-around solutions also appreciated.

Cheers,
James
0 Kudos
4 Replies
ChristopherBlinn1
Occasional Contributor III
James,

I too have had trouble in the past with the Extract by Mask tool.  Have you tried using the new Image Analysis window in ArcGIS 10 to extract your new raster?  The Image Analysis window is also very handy for setting the output parameters of your new raster.  If you are just needing the raster for map-making or temporary purposes, the Image Analysis window is great to use because it does not need to run any geoprocesses.  You can select what what layer you would like to mask, the shape of the mask and very quickly it will process a temporary output to use.  If you need that new raster for additional analysis, you can then export the raster to a raster dataset.

ArcMap --> Windows --> Image Analysis

Hope this helps!

Best,
Chris B.
0 Kudos
BrentEdwards
New Contributor III
I am having the same problem with the Extract By Mask tool:

http://gis.stackexchange.com/questions/30963/output-raster-extents-when-using-the-spatial-analyst-ex...

As a work around for my use case, I ended up exporting each record in my polygon mask fc to a separate fc to use as the in_mask_data parameter in the Extract By Mask call. This works, but it is frustrating to have to add an intermediate process to workaround the shortcomings (bug?) of the Extract By Mask tool.
0 Kudos
curtvprice
MVP Esteemed Contributor
Another straightforward workaround to try is the Clip_management tool. Since it's outside the Spatial Analyst toolbox, it's going to probably work better with a wider collection of raster input types.

Clip_management has a nice feature: it is set up to snap by default to avoid resampling.
0 Kudos
BrentEdwards
New Contributor III
Another straightforward workaround to try is the Clip_management tool. Since it's outside the Spatial Analyst toolbox, it's going to probably work better with a wider collection of raster input types.

Clip_management has a nice feature: it is set up to snap by default to avoid resampling.


This is definitely the simplest, most straight forward solution. Hopefully some day ESRI will consolidate redundant tools. Unfortunately, in my case, the Clip_management tool at version 9.2 doesn't have the clipping_geometry parameter.
0 Kudos