[GRASS-user] Rotate Raster (DEM) 90 degrees

Hamish hamish_b at yahoo.com
Sat Jan 24 19:59:26 EST 2009


> > so I have to rotate the DEM of 90 degrees.

Hamish:
> 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)

or perhaps: (90 vs 270 rotation; see also flipud())

 map_data = fliplr(map_data');


> >>  % and also change map n,s,e,w bounds as needed before resaving .mat


Hamish



      



More information about the grass-user mailing list