pkstatogr(1)
π pkstatogr β the manual page, but make it make sense π
okay bestie, sit down, hydrate, because we're talking about pkstatogr(1) β that's the section 1 manual page for pkstatogr, and no cap, it's about to be your new fave little stats gremlin. π«Ά
β¨ NAME β¨
pkstatogr β a program to calculate basic statistics from a vector file. that's it, that's the job. π
πΈ SYNOPSIS πΈ
pkstatogr -i input [options]
like. give it an input, sprinkle some options, done. iconic.
π¦ DESCRIPTION π¦
so pkstatogr calculates basic statistics on attributes of a vector file. literally what it says on the tin. π
examples of the basic statistics include:
- minimum
- maximum
- median
- mean
- standard deviation
and you can also get histograms β either in percentage or in absolute values, your choice, main character energy either way. β¨
the attribute you're actually interested in? you pick it with the option -n|--fname. π
and here's the important bit, so listen up: values that are defined by the -nodata option, or that aren't within the limits set by the options -src_min and -src_max, are ignored for the statistics. gone. not invited to the party. π«
π OPTIONS π
-ifilename,--inputfilename β Input image file(s). If input contains multiple images, a multiband output is created. (yes babe, multiband. we're building a whole ensemble here. π)-lnlayer,--lnamelayer β Layer name(s) in sample (leave empty to select all). if you can't choose, honestly same β just leave it empty and take everything. π-nattribute,--fnameattribute β Fields on which to calculate statistics. this is THE one. the field. the moment. π―-nodatavalue,--nodatavalue β Set nodata value(s). these get ignored in the stats, fr fr.-src_minvalue,--src_minvalue β Set minimum value for histogram. π-src_maxvalue,--src_maxvalue β Set maximum value for histogram. π-s,--sizeβ Sample size (number of points). π«-mm,--minmaxβ Calculate minimum and maximum value. two birds, one flag. π¦-min,--minβ Calculate minimum value. the smallest little guy. π-max,--maxβ Calculate maximum value. the biggest. π-mean,--meanβ Calculate mean. average queen. π-median,--medianβ Calculate median. the middle child. π-stdev,--stdevβ Calculate standard deviation. how spread out are we feeling today. π-hist,--histβ Calculate histogram. bars! π-nbinvalue,--nbinvalue β Number of bins to calculate histogram. how many lil buckets do you want. π§Ί-rel,--relativeβ Use percentiles for histogram to calculate histogram. relative era. β¨-kde,--kdeβ Use Kernel density estimation when producing histogram. the Kernel class lives athttp://pktools.nongnu.org/html/classKernel.htmlif you wanna peek π«£ β and heads up: the standard deviation is estimated based on Silverman's rule of thumb. iykyk. π-vlevel,--verboselevel β Verbose level. turn the yapping up or down, your call. π£οΈ
π EXAMPLE π
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
and that's the whole page, bestie, you ate that. π β¨
this was pkstatogr(1) β dated 01 January 2025. go forth and compute, and remember: not me being obsessed with your statistics. ππ¦π
π¦ where this page comes from
- ubuntu questing: pktools 2.6.7.6+ds-6build4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms