[GRASS-user] Re: GRASS script to export raster
Martin Landa
landa.martin at gmail.com
Wed Mar 9 08:14:42 EST 2011
2011/3/9 Hamish <hamish_b at yahoo.com>:
[...]
> so just flipping all the rows in the file you can get now?
>
> don't know how to do that in python, but if unix shell powertools are
> available:
> r.out.ascii | tac
import os
import grass.script as grass
print os.linesep.join(reversed(grass.read_command('r.out.ascii',
quiet = True,
input =
'elevation').splitlines()))
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
More information about the grass-user
mailing list