[GRASSLIST:7290] Re: transform rasters

Glynn Clements glynn at gclements.plus.com
Thu Jun 23 12:41:12 EDT 2005


Bernhard Reimar Hoefle wrote:

> Has someone written a function like r.shift or r.transform ?
> 
> I just want to move a raster file in x and/or y direction (in map
> units or cell sizes).

Shifting a map by a fixed number of cells is easy enough with
r.mapcalc, e.g.:

	r.mapcalc 'outmap = inmap[10,5]'

will result in outmap being shifted 10 cells up and 5 cells left
relative to inmap.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list