Re: [GRASS-user] output r.out.ascii
On 11/12/08 03:20, Hamish wrote: 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 Pure curiosity: Any reason not to use this anymore in newer grass version ? Moritz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] output r.out.ascii
Hamish: 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 Moritz wrote: Pure curiosity: Any reason not to use this anymore in newer grass version ? no reason other than it is harder to remember. r.out.xyz is just a wrapper script around that r.stats call, with a much more obvious name. Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] output r.out.ascii
Hi list, 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). However, If I run something in the lines of: r.out.ascii -h input=patch output=- null=* | sed 's/*//g' patch.values.txt the file still remains a whopping 20mb (the size of the raw data, including all spatial stuff) I also want to do this for small patches of say 10 pixels of information so this really is overhead. Any idea how to trim the fat on this one? Kind regards, Koen ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user