How to clip image...

Luis Blanco lblanco at anaya.es
Fri Oct 2 03:48:04 EDT 1998


Hi, taravudh...

I got the same problem when i began to use grass. The solution is as follow:

Set the region (your geographic window) to the desired area

        g.region n=<value> s=<value> e=<value> w=<value> res=<value>

check the resolution parameters, in general don´t use it for making clops,
the image (raster file)
get resampled; but it is ok for testing.

         r.mapcalc file.dst=file.src

this command make the crop, other way is:

        r.patch out=file.dst in=file.src,file.src

that is make a patch of a raster with it self.

Hope this help you.

#========================================
#Luis Blanco
#Grupo Anaya
#Juan Ignacio Luca de Tena, 15
#28027 Madrid,  SPAIN
#
#tel.: 34 91 393 88 39
#fax.: 34 91 742 66 31
#
#e-mail: lblanco at anaya.es
#========================================




More information about the grass-user mailing list