|
@@ -5,15 +5,12 @@ a raster map only for the parts covered by the specified vector map.
|
|
The vector map will be rasterized according to the raster map resolution.
|
|
The vector map will be rasterized according to the raster map resolution.
|
|
Then univariate statistics are calculated per vector category (cat) from
|
|
Then univariate statistics are calculated per vector category (cat) from
|
|
the raster map and the results uploaded to the vector map attribute table.
|
|
the raster map and the results uploaded to the vector map attribute table.
|
|
-New columns are generated in the attribute table if not already present.
|
|
|
|
-<p>Nine columns are generated (n, min, max, range, mean, stddev, variance,
|
|
|
|
-coeff_var, sum) according to the output of <em>r.univar</em>.
|
|
|
|
-If the <b>-e</b> extended statistics flag is given the 1st quartile,
|
|
|
|
-median, 3rd quartile, and given percentile are also calculated.
|
|
|
|
-
|
|
|
|
|
|
+A new column is generated in the attribute table for each statistic requested
|
|
|
|
+in <b>method</b> (if not already present).
|
|
|
|
|
|
<h2>NOTES</h2>
|
|
<h2>NOTES</h2>
|
|
-
|
|
|
|
|
|
+<em>v.rast.stats</em> is only meaningful for lines or polygons.
|
|
|
|
+<p>
|
|
The module may take a long time to run if the raster region contains a large
|
|
The module may take a long time to run if the raster region contains a large
|
|
number of cells. In this case the <b>--verbose</b> flag may be used to track
|
|
number of cells. In this case the <b>--verbose</b> flag may be used to track
|
|
progress.
|
|
progress.
|
|
@@ -29,11 +26,11 @@ will be chopped off.
|
|
<p>If a MASK is present, it will be restored after the script finished.
|
|
<p>If a MASK is present, it will be restored after the script finished.
|
|
The script changes temporarily to the resolution of the given raster map.
|
|
The script changes temporarily to the resolution of the given raster map.
|
|
<p><!-- r.univar limitation -->
|
|
<p><!-- r.univar limitation -->
|
|
-Large amounts of system memory can be used when the <b>-e</b> extended
|
|
|
|
-statistics flag is used with a very large region setting. If the region
|
|
|
|
-is too large the module should display memory allocation errors.
|
|
|
|
-Basic statistics can be calculated using any size input region.
|
|
|
|
-
|
|
|
|
|
|
+Large amounts of system memory can be used when extended statistics
|
|
|
|
+(<em>first_quartile,median,third_quartile,percentile </em>) are being requested
|
|
|
|
+with a very large region setting. If the region is too large the module
|
|
|
|
+should display memory allocation errors. Basic statistics can be calculated
|
|
|
|
+using any size input region.
|
|
|
|
|
|
<h2>EXAMPLES</h2>
|
|
<h2>EXAMPLES</h2>
|
|
|
|
|
|
@@ -45,14 +42,15 @@ g.copy vect=zipcodes_wake,myzipcodes_wake
|
|
# set computational region to DEM:
|
|
# set computational region to DEM:
|
|
g.region rast=elevation -p
|
|
g.region rast=elevation -p
|
|
# calculate DEM statistics, upload to vector map table:
|
|
# calculate DEM statistics, upload to vector map table:
|
|
-v.rast.stats myzipcodes_wake raster=elevation colprefix=elev
|
|
|
|
|
|
+v.rast.stats myzipcodes_wake raster=elevation \
|
|
|
|
+ column_prefix=elev method=minimum,maximum,average,stddev,percentile \
|
|
|
|
+ percentile=95
|
|
# verify results:
|
|
# verify results:
|
|
v.info -c myzipcodes_wake
|
|
v.info -c myzipcodes_wake
|
|
v.db.select myzipcodes_wake
|
|
v.db.select myzipcodes_wake
|
|
v.univar myzipcodes_wake column=elev_range type=centroid
|
|
v.univar myzipcodes_wake column=elev_range type=centroid
|
|
</pre></div>
|
|
</pre></div>
|
|
|
|
|
|
-
|
|
|
|
<h2>SEE ALSO</h2>
|
|
<h2>SEE ALSO</h2>
|
|
|
|
|
|
<em>
|
|
<em>
|