[GRASS-user] Clip/Extract Rasters using a vector
Andrew Lewin
andrew.lewin at sympatico.ca
Mon Sep 20 11:20:03 EDT 2010
Hi John and Mark,
I am getting a syntax error when I type in either of your statements. To be clear, I am using Mac Snow Leopard in the Terminal program (bash).
Cheers,
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
On 2010-09-16, at 12:22 PM, John C. Tull wrote:
> Correct me if I am wrong, but for step 3, you can simply use an equality statement, i.e., echo clippedRaster=NA_temperature | r.mapcalc'. This shortens things a little further.
>
> Regards,
> John
>
> On Sep 16, 2010, at 8:41 AM, Mark Seibel wrote:
>
>> 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
>>>
>>>
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100920/33805bea/attachment.html
More information about the grass-user
mailing list