Opened 6 years ago
Last modified 6 years ago
#3793 new defect
r.info non - numeric result for Total cell count on large raster
Reported by: | dnewcomb | Owned by: | |
---|---|---|---|
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 by , 6 years ago
comment:2 by , 6 years ago
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
Unfortunately this is not reproducible (on Linux). What do you get with shell-style output, i.e.
The only explanation seems to be local modifications to raster/r.info/main.c:L200.