[GRASS-user] Clip/Extract Rasters using a vector

Mark Seibel mseibel at gmail.com
Thu Sep 16 11:41:19 EDT 2010


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
<andrew.lewin at sympatico.ca> 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
> andrew.lewin at sympatico.ca
>
> 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
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>


More information about the grass-user mailing list