I'm still a newbie to this, so I have taken a longer approach to finding this answer - note that it only applies to clipping N rasters to a single simple ploygon. In my case, clipping 270 US precipitation .asc rasters to the state of Colorado.
- place all the rasters to be clipped in one directory
- note the location of your clip polygon
in QGIS: Raster Menu > Extraction > Clipper -- load your first raster, output and clip polygon. Then copy the full gdalwarp command from the box in the bottom of the clip GUI. Should look like this:
gdalwarp -q -cutline D:/PeakGIS2/DATA/Colorado/STATE_WGS84.shp -crop_to_cutline -of GTiff D:/TEMP/US_PPT_4km/us_ppt_1980.10.asc D:/TEMP/CO_PPT_4km/PPT_CO_PRISM_1980_10.tif
Then, I created a spreadsheet with fields that break this command above into repeatable sections. In one of the fields, I list just the raster names, in the other fields i list my output names. Using excel helps to easily create numeric endings to your output raster name, like *Grid_1*, *Grid_2* etc... just drag the cell down and it will automatically enumerate the ending.
The fields may look like this:
then I use excel's (or OpenOffice Calc) concatenate functions to generate the gdalwarp full command for each of my input rasters.
- copy the output cells to a text file
- save the text file to .bat (will look something like this):
I then use the OSGeo4W command line in QGIS and run this .bat file which contains the 'gdalwarp' commands. This will run each command in the text file until it has exhausted the batch.
Like I said, it's a long-winded way of doing the job and I am positive there are several steps that could be saved here - but at least its a beginner's start.