[GRASS-user] Rotate Raster (DEM) 90 degrees
Hamish
hamish_b at yahoo.com
Sat Jan 24 19:22:19 EST 2009
pierluigi de rosa wrote:
> In order to use a cellular automata model to simulate a landscape
> evolution I should use (because the code require it) a DEM where the
> main water flow goes from left to right. I want to use this code to
> simulate an area where the water comes from north to south so I have to
> rotate the DEM of 90 degrees.
> Does anyone know how can I do it?
No way I know of within GRASS, but it is quite easy if you export the map
to Matlab (or GNU Octave) and then reimport the result to GRASS.
GRASS: r.out.mat, r.in.mat
Matlab/Octave:
>> map_data = map_data'; % (transpose)
>> % and also change map n,s,e,w bounds as needed before resaving .mat file
probably a similarly simple task if you use the R-statistics/GRASS
integration.
Hamish
More information about the grass-user
mailing list