[GRASS-dev] [GRASS GIS] #3793: r.info non - numeric result for Total cell count on large raster

#3793: r.info non - numeric result for Total cell count on large raster
-------------------------------------------------+-------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.6.1
Component: Raster | Version: svn-
Keywords: r.info non - numeric result for | releasebranch76
  Total cell count | CPU: x86-64
Platform: MSWindows |
-------------------------------------------------+-------------------------
I have a raster that is 110000 cells by 124723 cells. When I run r.info
on the raster, the result Total cell value is a non-numeric result ( see
below )

r.info map=Capefear_basin_CFS_area_dem05@capefearsh
+----------------------------------------------------------------------------+
  | Map: Capefear_basin_CFS_area_dem05 Date: Thu Mar 14 13:12:37 2019
|
  | Mapset: capefearsh Login of Creator: dnewcomb
|
  | Location: nc_stpft2011
|
  | DataBase: C:\Users\dnewcomb\Desktop\grass
|
  | Title: Capefear_basin_CFS_area_dem05
|
  | Timestamp: none
|
|----------------------------------------------------------------------------|
  |
|
  | Type of Map: raster Number of Categories: 0
|
  | Data Type: FCELL
|
  | Rows: 110000
|
  | Columns: 124723
|
  | Total Cells: ju
|
  | Projection: NAD83(2011) / North Carolina (ftUS)
|
  | N: 1020000 S: 470000 Res: 5
|
  | E: 2220000 W: 1596385 Res: 5
|
  | Range of data: min = -134.404 max = 1101.429
|
  |
|
  | Data Description:
|
  | generated by r.mapcalc
|
  |
|
  | Comments:
|
  | all_capefearsh_05_counties@capefearsh * 1
|
  |
|
+----------------------------------------------------------------------------+

Possibly related to https://trac.osgeo.org/grass/ticket/2676 ?

PS: Did not see a 7.6.0 option in version selection

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

#3793: r.info non - numeric result for Total cell count on large raster
-------------------------+-------------------------------------------------
  Reporter: dnewcomb | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.6.1
Component: Raster | Version: svn-releasebranch76
Resolution: | Keywords: r.info non - numeric result for
                         | Total cell count
       CPU: x86-64 | Platform: MSWindows
-------------------------+-------------------------------------------------

Comment (by mmetz):

Unfortunately this is not reproducible (on Linux). What do you get with
shell-style output, i.e.

{{{
r.info map=Capefear_basin_CFS_area_dem05@capefearsh -g
}}}

The only explanation seems to be local modifications to
raster/r.info/main.c:L200.

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

#3793: r.info non - numeric result for Total cell count on large raster
-------------------------+-------------------------------------------------
  Reporter: dnewcomb | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.6.1
Component: Raster | Version: svn-releasebranch76
Resolution: | Keywords: r.info non - numeric result for
                         | Total cell count
       CPU: x86-64 | Platform: MSWindows
-------------------------+-------------------------------------------------

Comment (by dnewcomb):

Running with shell style output gives the correct answer.

C:\Users\dnewcomb>r.info map=Capefear_basin_CFS_area_dem05@capefearsh -g
north=1020000
south=470000
east=2220000
west=1596385
nsres=5
ewres=5
rows=110000
cols=124723
cells=13719530000
datatype=FCELL
ncats=0

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

#3793: r.info non - numeric result for Total cell count on large raster
-------------------------+-------------------------------------------------
  Reporter: dnewcomb | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.6.1
Component: Raster | Version: svn-releasebranch76
Resolution: | Keywords: r.info non - numeric result for
                         | Total cell count
       CPU: x86-64 | Platform: MSWindows
-------------------------+-------------------------------------------------

Comment (by mmetz):

In [changeset:"74265" 74265]:
{{{
#!CommitTicketReference repository="" revision="74265"
r.info: sync formatting of total cells, see #3793
}}}

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

#3793: r.info non - numeric result for Total cell count on large raster
-------------------------+-------------------------------------------------
  Reporter: dnewcomb | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.6.1
Component: Raster | Version: svn-releasebranch76
Resolution: | Keywords: r.info non - numeric result for
                         | Total cell count
       CPU: x86-64 | Platform: MSWindows
-------------------------+-------------------------------------------------

Comment (by mmetz):

In [changeset:"74266" 74266]:
{{{
#!CommitTicketReference repository="" revision="74266"
r.info: sync formatting of total cells, see #3793 (backport trunk r74265)
}}}

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