[GRASS-dev] [GRASS GIS] #1929: make r.report CSV/spreadsheet ready

#1929: make r.report CSV/spreadsheet ready
-------------------------+--------------------------------------------------
Reporter: timmie | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: unspecified
Keywords: | Platform: All
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
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 "."

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1929&gt;
GRASS GIS <http://grass.osgeo.org>

#1929: make r.report CSV/spreadsheet ready
-------------------------------+--------------------------------------------
Reporter: timmie | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: unspecified
Keywords: r.report, r.stats | Platform: All
      Cpu: Unspecified |
-------------------------------+--------------------------------------------
Changes (by hamish):

  * keywords: => r.report, r.stats
  * type: defect => enhancement

Comment:

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1929#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

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”

···

On Wed, Apr 17, 2013 at 3:48 PM, GRASS GIS <trac@osgeo.org> wrote:

#1929: make r.report CSV/spreadsheet ready
-------------------------------±-------------------------------------------
Reporter: timmie | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: unspecified
Keywords: r.report, r.stats | Platform: All
Cpu: Unspecified |
-------------------------------±-------------------------------------------
Changes (by hamish):

  • keywords: => r.report, r.stats
  • type: defect => enhancement

Comment:

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


Ticket URL: <https://trac.osgeo.org/grass/ticket/1929#comment:1>
GRASS GIS <http://grass.osgeo.org>


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

#1929: make r.report CSV/spreadsheet ready
--------------------------+-------------------------------------------------
  Reporter: timmie | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 6.4.3
Component: Raster | Version: unspecified
Resolution: fixed | Keywords: r.report, r.stats
  Platform: All | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by hamish):

  * status: new => closed
  * resolution: => fixed
  * milestone: 7.0.0 => 6.4.3

Comment:

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1929#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1929: make r.report CSV/spreadsheet ready
--------------------------+-------------------------------------------------
  Reporter: timmie | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 6.4.3
Component: Raster | Version: unspecified
Resolution: fixed | Keywords: r.report, r.stats
  Platform: All | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by timmie):

Replying to [comment:1 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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1929#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1929: make r.report CSV/spreadsheet ready
--------------------------+-------------------------------------------------
  Reporter: timmie | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 6.4.3
Component: Raster | Version: unspecified
Resolution: fixed | Keywords: r.report, r.stats
  Platform: All | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by hamish):

Replying to [comment:3 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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1929#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>