[GRASSLIST:639] how to turn raster

Hello list,
  
is it possible to turn a raster-file (or only the display) clockwise or
counterclockwise in grass5.0?

Thanks

Irena Dörge

--

+++ GMX - Mail, Messaging & more http://www.gmx.net +++

Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern!

is it possible to turn a raster-file (or only the display) clockwise
or counterclockwise in grass5.0?

g.region rast=RasterName
r.out.png in=RasterName out=raster.png
pngtopnm raster.png | pnmflip -ccw | pnmtopng > raster_rotated.png
rm raster.png

Hamish

You could export the raster as an ascii file and use scripts to reorder the raster, i.e. use a new scanline format , and easily implement 90 and 180 degree rotations

H Bowman wrote:

is it possible to turn a raster-file (or only the display) clockwise
or counterclockwise in grass5.0?

g.region rast=RasterName
r.out.png in=RasterName out=raster.png
pngtopnm raster.png | pnmflip -ccw | pnmtopng > raster_rotated.png
rm raster.png

Hamish