[GRASS-user] output r.out.ascii

Hamish hamish_b at yahoo.com
Wed Dec 10 21:20:38 EST 2008


Hufkens Koen wrote:
> I'm trying to use r.out.ascii to dump a map (or better
> a masked part of it) to stdout. I would then use sed to
> clean up the data so I'm only left with the pixel values
> and no spatial information (don't need it).

in newer versions of grass try r.out.xyz, e.g.

  r.out.xyz fields | cut -f3 -d'|'

for older grass versions use "r.stats -1gn"


Hamish



      



More information about the grass-user mailing list