Batch clip multiple rasters using one shp file???

9044
3
10-19-2011 12:30 PM
AndrewRevill1
New Contributor
Hi, I am looking for an efficient way of clipping around 60 MODIS scenes (or general raster cutting) using one polygon without having to do it on a singular basis which will take a while. I will also need to automatically name the subset images sequentially.

Any ideas would be appreciated,

Thanks,

Andrew
0 Kudos
3 Replies
EricRice
Esri Regular Contributor
Andrew,

Put the Clip tool in a model, and use the Iterate Rasters tool to loop through the input scenes and have them all clipped to the same shapefile geometry.  The Iterate Rasters tool has two outputs: Output Raster and Name, which could be used as in-line variable %Name% in other tools (mainly Clip for your case).  This is how you get the sequentially named outputs you desire.

Regards,
Eric
0 Kudos
AndrewRevill1
New Contributor
Hi Eric,

Many thanks for your reply. Your instructions sound straight-forward, however I am using ArcGIS 9.3 and don't have the Iterative Raster tool. I am new to the ModelBuilder, is there anything else that you can suggest?

Cheers,

Andrew
0 Kudos
EricRice
Esri Regular Contributor
Iterators are only available in ArcGIS 10.0.  Pre 10.0, you can right click on the tool and select Batch.  The other option is to write a loop in Python.

A quick tour of batch processing

Regards,
Eric
0 Kudos