~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to scripts/v.rast.stats/description.html

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<h2>DESCRIPTION</h2>
2
 
 
3
 
<em>v.rast.stats</em> calculates basic univariate statistics from
4
 
a raster map only for the parts covered by the specified vector map.
5
 
The vector map will be rasterized according to the raster map resolution.
6
 
Then univariate statistics are calculated per vector category (cat) from
7
 
the raster map and the results uploaded to the vector map attribute table.
8
 
New columns are generated in the attribute table if not already present.
9
 
<p>
10
 
Nine columns are generated (n, min, max, range, mean, stddev, variance, 
11
 
coeff_var, sum) according to the output of <em>r.univar</em>.
12
 
If the <b>-e</b> extended statistics flag is given the 1st quartile,
13
 
median, 3rd quartile, and given percentile are also calculated.
14
 
 
15
 
 
16
 
<h2>NOTES</h2>
17
 
 
18
 
The module may take a long time to run if the raster region contains a large
19
 
number of cells. In this case the <b>--verbose</b> flag may be used to track
20
 
progress.
21
 
<p>
22
 
The script stops if a (prefixed) upload column is already present in the
23
 
vector map attribute table, unless otherwise instructed with the <b>-c</b>
24
 
continue flag. The column prefix will be separated from the statistic name
25
 
with an underscore. For example with a prefix of "<tt>elev</tt>" the sum
26
 
column will be named <tt>elev_sum</tt>.
27
 
<p>
28
 
If a DBF database is being used, note that column names are restricted by the
29
 
DBF specification to 10 characters. Therefore it is advised to be economical
30
 
in the use of the column prefix when using DBF as any additional characters
31
 
will be chopped off.
32
 
<p>
33
 
If a MASK is present, it will be restored after the script finished.
34
 
The script changes temporarily to the resolution of the given raster map.
35
 
<p>
36
 
<!-- r.univar limitation -->
37
 
Large amounts of system memory can be used when the <b>-e</b> extended
38
 
statistics flag is used with a very large region setting. If the region
39
 
is too large the module should display memory allocation errors.
40
 
Basic statistics can be calculated using any size input region.
41
 
 
42
 
 
43
 
<h2>EXAMPLES</h2>
44
 
 
45
 
Example to upload DEM statistics to ZIP codes vector map
46
 
(North Carolina sample dataset):
47
 
 
48
 
<div class="code"><pre>
49
 
g.copy vect=zipcodes_wake,myzipcodes_wake
50
 
# set computational region to DEM:
51
 
g.region rast=elevation -p
52
 
# calculate DEM statistics, upload to vector map table:
53
 
v.rast.stats myzipcodes_wake raster=elevation colprefix=elev
54
 
# verify results:
55
 
v.info -c myzipcodes_wake
56
 
v.db.select myzipcodes_wake
57
 
v.univar myzipcodes_wake column=elev_range type=centroid
58
 
</pre></div>
59
 
 
60
 
 
61
 
<h2>SEE ALSO</h2>
62
 
 
63
 
<em>
64
 
<a href="r.univar.html">r.univar</a>, 
65
 
<a href="v.univar.html">v.univar</a>,
66
 
<a href="v.what.rast.html">v.what.rast</a>,
67
 
<a href="v.what.vect.html">v.what.vect</a>
68
 
</em>
69
 
 
70
 
<h2>AUTHOR</h2>
71
 
 
72
 
Markus Neteler, CEA (for the <a href="http://www.eden-fp6project.net/">EDEN EU/FP6 Project</a>)
73
 
 
74
 
<p>
75
 
<i>Last changed: $Date: 2011-11-08 10:42:51 +0100 (Tue, 08 Nov 2011) $</i>