[GRASS-dev] [GRASS GIS] #2269: r.univar silent instead of NaN
GRASS GIS
trac at osgeo.org
Tue Apr 29 11:34:51 PDT 2014
#2269: r.univar silent instead of NaN
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.4
Component: Raster | Version: svn-releasebranch64
Keywords: r.univar | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
r.univar should not remain silent when the computational
region is only containing NULL cells. Instead "NaN" should be
printed as result for the individual min, max, etc values.
{{{
GRASS 6.4.4svn (nc_spm_08):~ > g.region n=1 s=0 w=0 e=1 res=0.5 -p
projection: 99 (Lambert Conformal Conic)
zone: 0
datum: nad83
ellipsoid: a=6378137 es=0.006694380022900787
north: 1
south: 0
west: 0
east: 1
nsres: 0.5
ewres: 0.5
rows: 2
cols: 2
cells: 4
GRASS 6.4.4svn (nc_spm_08):~ > r.univar elevation
100%
GRASS 6.4.4svn (nc_spm_08):~ > r.univar elevation -g
GRASS 6.4.4svn (nc_spm_08):~ >
}}}
The issue is in r.univar, stats.c line 123. However, not
that easy to fix since sometimes zones are considered,
sometimes not.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2269>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list