[GRASSLIST:3481] Re: How to crop an area of intrest from large image

James Cameron quozl at us.netrek.org
Wed Apr 10 01:49:50 EDT 2002


On Wed, Apr 10, 2002 at 10:49:39AM +0530, Anil Kumar Bhagat wrote:
> I want some guidelines about croping an area of
> interest (with the help of a vector outline) from a large image 

Wild suggestions from someone who doesn't know enough about GRASS yet
... so I can be very wrong ...

a) if the vector was a rectangle, I'd use g.region instead,

b) convert the vector into a raster with value 1 for where you want to
keep the image, and value zero where you do not, and then use r.mapcalc
to multiply the mask by the image,

c) export the image to an image manipulation utility like The Gimp.

-- 
James Cameron    mailto:quozl at us.netrek.org     http://quozl.netrek.org/



More information about the grass-user mailing list