[GRASS-user] Help needed to spatially translate a raster map
tea3rd at gmail.com
Sun Jul 16 20:46:26 PDT 2017
Dear Moritz & Helmut,
Thank you so much! This works perfectly -- I had not even thought of using
On Sun, Jul 16, 2017 at 1:39 PM, Moritz Lennert <moritzlennert at posteo.net>
> Le 16 juillet 2017 18:36:42 GMT+02:00, Thomas Adams <tea3rd at gmail.com> a
> écrit :
> >Hi All:
> >Can someone suggest an efficient method to spatially translate a raster
> >map? This is what I want to do is:
> >(1) within a specified map region, using v.random, randomly generate
> >500-1000 vector point locations.
> >(2) from each point in (1) reposition a raster map (center) from a
> >x,y to the new center
> >(3) perform some statistics between each of the new re-positioned
> >maps and the original map
> >I just need help with (2). I think I could work this out on my own with
> >some brute force, but maybe someone has an elegant approach??
> r.region ? Using original map's r.info output to get nrows and ncols and
> then something like this (needs fine-tuning):
> g.copy original,newmap
> r.region newmap n=y+nrows/2 w=x-ncols/2 etc...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the grass-user