Opened 7 years ago

Closed 7 years ago

Last modified 7 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 Changed 7 years ago by hamish

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 Changed 7 years ago by hamish

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

comment:3 in reply to:  1 ; Changed 7 years ago by timmie

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.

comment:4 in reply to:  3 Changed 7 years ago by hamish

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.