Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-26 Thread Daniel Victoria
Just save this as a .csv or .txt and open in any spreadsheet software, stating that the field delimiter is | Then just do some column copy/paste and you are done. No need for awk black-magic Daniel On Wed, Feb 25, 2009 at 3:51 AM, maning sambale emmanuel.samb...@gmail.com wrote: Thanks! An

Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-26 Thread Nikos Alexandris
On Thu, 2009-02-26 at 09:34 -0300, Daniel Victoria wrote: Just save this as a .csv or .txt and open in any spreadsheet software, stating that the field delimiter is | Then just do some column copy/paste and you are done. No need for awk black-magic Daniel :DD I agree. But implementing

Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-25 Thread Dylan Beaudette
On Wed, Feb 25, 2009 at 1:39 AM, Giovanni Pasini jynx...@gmail.com wrote: maning sambale wrote: Thanks! An example of the r.report output: |-| |              Category Information               |          |     cell|

[GRASS-user] convert r.report output to spreadsheet format

2009-02-24 Thread maning sambale
Hi, Looking for tips in transforming r.report output into a spreadsheet like format. -- cheers, maning -- Freedom is still the most radical idea of all -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/

Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-24 Thread Jonah Duckles
Maning, Depends on what you are doing with r.report, but you can often use r.stats instead, to output a csv file (look at docs for r.stats if you want percent or cell counts, my example assumes area counts). r.stats -an fs=, input=raster1,raster2 If you need to do a unit conversion ie m^2 to

Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-24 Thread Giovanni Pasini
maning sambale ha scritto: Hi, Looking for tips in transforming r.report output into a spreadsheet like format. Hi, I use awk (change NF and the other fields $*): r.report -n map=gri_1000_in,dem2_idw_100_slope_rec units=h,p,c | awk 'BEGIN {FS=|;OFS=|} !/---/ NF==7 {intest=$2} NF==8

Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-24 Thread maning sambale
Thanks! An example of the r.report output: |-| | Category Information | | cell| % | | #|description | hectares|count| cover|

Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-24 Thread Miha Staut
] convert r.report output to spreadsheet format To: grass mailing list grass-user@lists.osgeo.org Date: Wednesday, 25 February, 2009, 7:51 AM Thanks! An example of the r.report output: |-| | Category