Opened 15 years ago

Closed 9 years ago

Last modified 6 years ago

#507 closed enhancement (wontfix)

CSV output option for r.report

Reported by: dylan Owned by: grass-dev@…
Priority: minor Milestone: 6.5.0
Component: Raster Version: svn-develbranch6
Keywords: r.report Cc:
CPU: All Platform: All

Description

It would be convenient to have the option of printing out long reports from r.report in CSV format. A simple flag option could be used to signal CSV output. It looks like modification from here would do the trick. Could be as simple as using a variable for the spacer, and adding a check for printing the '......' between columns.

Change History (4)

in reply to:  description comment:1 by hamish, 15 years ago

Replying to dylan:

It would be convenient to have the option of printing out long reports from r.report in CSV format.

just use r.stats, that's all r.report does & parses into the more dot matrix printer friendly format.

One thing that r.report does that r.stats does not do is to convert the units of measure.

Hamish

comment:2 by hamish, 15 years ago

So does r.stats fill the need, or do you need to convert units of measure?

Hamish

comment:3 by dylan, 9 years ago

Resolution: wontfix
Status: newclosed

Works for me.

comment:4 by Nikos Alexandris, 6 years ago

While r.report sums up to 100%, r.stats approximates percents, thus the "total percent may not be 100%".

The question is: if r.report is a wrapper around r.stats, why aren't percentage outputs, for the same region and queried maps, identical?

I posted about a similar question (with examples) in the mailing list:

Note: See TracTickets for help on using tickets.