DOKK / manpages / debian 10 / pktools / pkstatogr.1.en
pkstatogr(1) pkstatogr(1)

pkstatogr - program to calculate basic statistics from vector file


pkstatogr
-i input [options]

pkstatogr calculates basic statistics on attributes of a vector file. Examples of the basic statistics include: minimum, maximum, median, mean and standard deviation. Histograms (in percentage or absolute values) can also be calculated. The attribute of interest can be selected using the option -n|--fname. Values defined by the -nodata option, or not within the limits set by the options -src_min and -src_max are ignored for the statistics.

Input image file(s). If input contains multiple images, a multi-band output is created
Layer name(s) in sample (leave empty to select all)
Fields on which to calculate statistics
Set nodata value(s)
Set minimum value for histogram
Set maximum value for histogram
Sample size (number of points)
Calculate minimum and maximum value
Calculate minimum value
Calculate maximum value
Calculate mean
Calculate median
Calculate standard deviation
Calculate histogram
Number of bins to calculate histogram
Use percentiles for histogram to calculate histogram
Use Kernel ⟨http://pktools.nongnu.org/html/classKernel.html⟩ density estimation when producing histogram. The standard deviation is estimated based on Silverman's rule of thumb
Verbose level

report histogram of values in FIELDID (to standard output)

pkstatogr -i input.shp -f FIELDID -n 100

report min, max, mean and standard deviation of values in FIELDID (to standard output)

pkstatogr -i input.shp -f FIELDID -min -max -mean -stdev

02 January 2019