[GRASSLIST:1345] r.in.ascii reflection

I'm using grass5b10 and r.in.ascii to read an raster image generated by another package.

Unfortunately, this package seems to have written lines in the reverse order from grass so that the northern end of the image appears at the southern end in grass and vice-versa.

Is there any program in grass to perform raster transformations, such as reflection? or can anyone point to any unix utilities that reverses the line order of an ASCII file?

Thanks in advance

Gordon

Gordon Keith
Programmer/Data Analyst
Marine Acoustics
Division of Marine Research
CSIRO

On Mon, Jan 08, 2001 at 09:18:24AM +1100, Gordon Keith wrote:

I'm using grass5b10 and r.in.ascii to read an raster image generated by
another package.

Unfortunately, this package seems to have written lines in the reverse
order from grass so that the northern end of the image appears at the
southern end in grass and vice-versa.

Is there any program in grass to perform raster transformations, such as
reflection? or can anyone point to any unix utilities that reverses the
line order of an ASCII file?

Thanks in advance

Hi Gordon,

I think m.flip should do the job:
http://www.geog.uni-hannover.de/grass/gdp/html_grass5/html/m.flip.html

Hope this helps

Markus