Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1929 closed enhancement (fixed)

make r.report CSV/spreadsheet ready

Reported by: timmie Owned by: grass-dev@…
Priority: normal Milestone: 6.4.3
Component: Raster Version: unspecified
Keywords: r.report, r.stats Cc:
CPU: Unspecified Platform: All

Description

r.report shall have an option to be reformated in a way that it could be easy further processed:

  • separators such as ";" or ","
  • remove all header & footer
  • remove all unnecessary "|" and "."

Change History (4)

comment:1 by hamish, 11 years ago

Keywords: r.report r.stats added
Type: defectenhancement

Hi,

Perhaps r.stats has what you want? (r.report is largely a wrapper which prints the computer-friendly results of r.stats in a human-friendly way)

Hamish

comment:2 by hamish, 11 years ago

Milestone: 7.0.06.4.3
Resolution: fixed
Status: newclosed

Paulo wrote:

Hi Hamish, Just a suggestion, but I think it would be useful if this is added to the description section of r.report; something like: "If you want a computer-friendly output, e.g., for use with calc, use r.stasts"

done in all branches.

Hamish

in reply to:  1 ; comment:3 by timmie, 11 years ago

Replying to hamish:

Perhaps r.stats has what you want? (r.report is largely a wrapper which prints the computer-friendly results of r.stats in a human-friendly way)

Thanks for the pointer. In r.stats I miss:

  • header for fields (columns)
  • units

And its really difficult to get a similar output as in r.report.

in reply to:  3 comment:4 by hamish, 11 years ago

Replying to timmie:

In r.stats I miss:

  • header for fields (columns)
  • units

And its really difficult to get a similar output as in r.report.

feel free to rename the ticket and reopen it against r.stats for those if you like.

Luckily area in sq-m like r.stats gives is very easy to convert to hectare or sq-km.

my only concern about unit conversions is that r.stats is already quite complicated for a low-level tool.

Hamish

Note: See TracTickets for help on using tickets.