logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pkstatogr - program to calculate basic statistics from vector file

Description

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.

Example

       report histogram of values in FIELDID (to standard output)

       pkstatogr-iinput.shp-fFIELDID-n100

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

       pkstatogr-iinput.shp-fFIELDID-min-max-mean-stdev

                                                 01 January 2025                                    pkstatogr(1)

Name

       pkstatogr - program to calculate basic statistics from vector file

Options

-ifilename, --inputfilename
              Input image file(s).  If input contains multiple images, a multi-band output is created

       -lnlayer, --lnamelayer
              Layer name(s) in sample (leave empty to select all)

       -nattribute, --fnameattribute
              Fields on which to calculate statistics

       -nodatavalue, --nodatavalue
              Set nodata value(s)

       -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

       -min, --min
              Calculate minimum value

       -max, --max
              Calculate maximum value

       -mean, --mean
              Calculate mean

       -median, --median
              Calculate median

       -stdev, --stdev
              Calculate standard deviation

       -hist, --hist
              Calculate histogram

       -nbinvalue, --nbinvalue
              Number of bins to calculate histogram

       -rel, --relative
              Use percentiles for histogram to calculate histogram

       -kde, --kde
              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

       -vlevel, --verboselevel
              Verbose level

Synopsis

pkstatogr-iinput [options]

See Also