[GRASS-user] v.univar error in sum stats (windows, 6.4.3RC2)

Markus Neteler neteler at osgeo.org
Fri Mar 7 06:50:11 PST 2014


On Fri, Mar 7, 2014 at 3:18 AM, Milton Ribeiro
<miltinho.astronauta at gmail.com> wrote:
> Dear all,
>
> I have vector maps with just one line each.
> When I run v.univar setting a numeric collumn, de MIN and MAX value looks
> fine (the same value) but SUM stats looks very strange.
>
> Anyone have idea what is happening?

I tried with "North Carolina", generating a single point (using SQLite backend):

GRASS 6.4.3 (nc_spm_08):~ > echo "593493.1|4914730.2|123.1|well" |
v.in.ascii out=point column='x double precision, y double precision,
mynum double precision, mytext varchar(50)'
Scanning input for column types...
Maximum input row length: 30
Maximum number of columns: 4
Minimum number of columns: 4
Column: 1 type: double
Column: 2 type: double
Column: 3 type: double
Column: 4 type: string length: 4
Importing points...
...
Number of nodes: 1
Number of primitives: 1
Number of points: 1
...
v.in.ascii complete.


GRASS 6.4.3 (nc_spm_08):~ > v.db.select point
cat|x|y|mynum|mytext
1|593493.1|4914730.2|123.1|well

GRASS 6.4.3 (nc_spm_08):~ > v.univar point col=mynum type=point
number of features with non NULL attribute: 1
number of missing attributes: 0
number of NULL attributes: 0
minimum: 123.1
maximum: 123.1
range: 0
sum: 123.1
mean: 123.1
mean of absolute values: 123.1
population standard deviation: 0
population variance: 0
population coefficient of variation: 0
sample standard deviation: -nan
sample variance: -nan
kurtosis: -nan
skewness: -nan


"sum" looks ok. Can you please try this example?

Markus


More information about the grass-user mailing list