Opened 2 months ago

Last modified 7 weeks ago

#3793 new defect

r.info non - numeric result for Total cell count on large raster

Reported by: dnewcomb Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: Raster Version: svn-releasebranch76
Keywords: r.info non - numeric result for Total cell count Cc:
CPU: x86-64 Platform: MSWindows

Description

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

Change History (5)

comment:1 Changed 2 months ago 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.

comment:2 Changed 2 months ago 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

comment:3 Changed 2 months ago by mmetz

In 74265:

r.info: sync formatting of total cells, see #3793

comment:4 Changed 2 months ago by mmetz

In 74266:

r.info: sync formatting of total cells, see #3793 (backport trunk r74265)

comment:5 Changed 7 weeks ago by martinl

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.