[GRASS-user] Re: GRASS script to export raster

Hamish hamish_b at yahoo.com
Wed Mar 9 02:32:23 EST 2011


Kim wrote:
> I want to build a GRASS Python script to export raster data but instead
> of XYZ (from top-left corner to lower-right corner) I want the opposite.
> Is there a way to do this as a python scriipt? or I can only do this as
> C-module?
...
> Uhm I guess I wasn't clear :) I want to write a XYZ starting from low left
> corner goes to the end of row then goes to above row and so on...I mean to
> go from low row to top row.Thanks

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


?
Hamish



      


More information about the grass-user mailing list