Surely there is a more elegant way... 1) Convert the vector you wish to use as a clipper to a raster. 2) Set the raster mask to be the raster clipper (the converted vector). 3) Use map calculator to perform some non-data altering operation, but get the mask to do its thing (eg. echo 'clippedRaster=NA_temperature + 0 | r.mapcalc').
Mark On Thu, Sep 16, 2010 at 10:52 AM, Andrew Lewin <[email protected]> wrote: > Dear Listers, > I would like to clip or extract a raster using a vector file; however, I > can't seem to find the command to do this in GRASS 6.4 ORC6. The raster > file is an interpolated file of temperature for North America. The raster > file extends beyond the North America boundaries. I would like to clip the > raster file to the North American boundaries, but I cannot find the command > to do so. > I would appreciate any help possible. > Thank You, > Andrew > Andrew Lewin > [email protected] > > President > Coastal/Marine Spatial Ecologist > Spatial-Conserve Incorporated > Associate > C-FOAM (Canadian Fisheries, Oceans and Aquaculture Management Group) > Telfer School of Management, University of Ottawa > > > > > > > _______________________________________________ > grass-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-user > > _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
