Clip bathymetry raster to land polygon

3005
4
09-28-2011 06:26 AM
JulianeStruve
New Contributor
Hello,

I have a bathymetry raster that contains values for land areas. I would like to clip the raster so that all land values are NA. However, when I clip it to the land polygon, it retains ONLY the land values.
How do I clip it so that the values OUTSIDE the land areas are retained ?

Thank you !

Juliane
0 Kudos
4 Replies
Robert_LeClair
Esri Notable Contributor
Juliane,

A few ways to do this:

One way to do this is if you have a polygon feature class for water, set this as a Mask in the Raster Analysis Environment Settings.  From there, open the Raster Calculator and set the map algebra statement to be bathymetry raster as the only input and define the output raster.  The mask will "clip" the raster for those areas that the water and bathymetry raster intersect.

Another way is to use the Extract by Mask geoprocessing tool - even easier!  Define the bathymetry as the input raster, the water as the mask, and define the output raster.

Good luck!

Robert LeClair
Esri-Denver
0 Kudos
EricRice
Esri Regular Contributor
Juliane,
One more way, if you don't want to take the time to build the water polygon or don't already have one...  You must have ArcGIS 10.0 minimum so you can access the Image Analysis Window.  There is a mask function button on the window that performs the type of masking your looking for.  i.e. Keep what is outside the mask. 

See Using the Mask button on the Image Analysis window

Terminology differences:
Clip GP tool  - performs clip.  Keeps what is inside the polygon
Extract by Mask GP tool - peforms clip. Keeps what is inside the polygon
Clip Function (Image Analysis Window) - performs clip. Keeps what is inside the polygon
Mask Function (Image Analysis Window) - performs mask. Deletes what is inside the polygon.

Regards,
Eric
0 Kudos
JulianeStruve1
New Contributor
Hello,

thank you very muh for replying, I would like to create the water polygon, but how ? And also, could I use the extract by attribute function to achieve the same outcome, by extracting non-land values ?

Regards and apologies that these questions are rather basic.

Juliane 



Juliane,
One more way, if you don't want to take the time to build the water polygon or don't already have one...  You must have ArcGIS 10.0 minimum so you can access the Image Analysis Window.  There is a mask function button on the window that performs the type of masking your looking for.  i.e. Keep what is outside the mask. 

See Using the Mask button on the Image Analysis window

Terminology differences:
Clip GP tool  - performs clip.  Keeps what is inside the polygon
Extract by Mask GP tool - peforms clip. Keeps what is inside the polygon
Clip Function (Image Analysis Window) - performs clip. Keeps what is inside the polygon
Mask Function (Image Analysis Window) - performs mask. Deletes what is inside the polygon.

Regards,
Eric
0 Kudos
EricRice
Esri Regular Contributor
Juliane

I don't think your data is likely to be integer and hence have an attribute table which is required for Extract by Attribute.  If I'm wrong you could definetly do that though.  For the most part, land masses don't go below sea level.  Sometimes they do though....If your area has all positive values for land and negative for bathymetry you could do a Con statement to get everything less than 0.

If you want to do the water feature, you need to create it by using the editing tools. Since you have the land mask already, the Mask button from the Image Analysis Window is your best bet, or the Inside/Outside options in Data > Export data.  (see blog)  If you don't have ArcGIS 10, there is no way to do masking like this; where you get rid of what is under the mask.  Set Null (not a traditional clip tool) may be an alternative where you could set the land pixels to nodata and keep the bathymetry though.  Pre 10, you could only clip and retain what is under the polygon.  If you aren't on 10, you need to manually edit the water boundary in polygon form and use that polygon to clip out the data you want. Let me know your version and I can make some recommendations for earlier versions if needed.

Because of this thread and many others, we just posted a blog about the various ways to clip and mask in ArcGIS.  It's not long, but probably worth reading.

Cliping an image or raster in ArcGIS.

Regards,
Eric
0 Kudos