pkstat(1)
π pkstat(1) π
okay bestie, welcome to pkstat β it's the Unix utility that pulls basic statistics out of a raster dataset, and yes it's giving calculator energy but make it spatial β¨
β¨ NAME β¨
pkstat β calculate basic statistics from raster dataset π¦
πΈ SYNOPSIS πΈ
pkstat [options]
π DESCRIPTION π
so basically, pkstat is a utility to calculate basic statistics from a raster dataset. that's it, that's the whole vibe. it reads your raster, it does math, it hands you numbers. iconic behavior honestly π
π OPTIONS π
-i filename,--input filenameβ name of the input raster dataset π-b band,--band bandβ band(s) on which to calculate statistics-f,--filenameβ shows image filename-stats,--statisticsβ shows basic statistics (calculate in memory) β that's min, max, mean and stdDev of the raster datasets β¨-fstats,--fstatisticsβ shows basic statistics using GDALcomputeStatistics(min, max, mean and stdDev of the raster datasets)-ulx value,--ulx valueβ Upper left x value bounding box-uly value,--uly valueβ Upper left y value bounding box-lrx value,--lrx valueβ Lower right x value bounding box-lry value,--lry valueβ Lower right y value bounding box-nodata value,--nodata valueβ Set nodata value(s)-down value,--down valueβ Down sampling factor (for raster sample datasets only). Can be used to create grid points.-rnd number,--rnd numberβ generate random numbers π²-mean,--meanβ calculate mean-median,--medianβ calculate median-var,--varβ calculate variance-skew,--skewnessβ calculate skewness-kurt,--kurtosisβ calculate kurtosis-stdev,--stdevβ calculate standard deviation-sum,--sumβ calculate sum of column-mm,--minmaxβ calculate minimum and maximum value-min,--minβ calculate minimum value-max,--maxβ calculate maximum value-src_min value,--src_min valueβ start reading source from this minimum value-src_max value,--src_max valueβ stop reading source from this maximum value-hist,--histβ calculate histogram π-hist2d,--hist2dβ (the original page literally gives no description here, so we're all just living in mystery together π)-nbin value,--nbin valueβ number of bins to calculate histogram-rel,--relativeβ use percentiles for histogram to calculate histogram-kde,--kdeβ Use Kernel density estimation when producing histogram. The standard deviation is estimated based on Silverman's rule of thumb.-cor,--correlationβ calculate Pearson produc-moment correlation coefficient between two raster datasets (defined by-c col1 -c col2)-rmse,--rmseβ calculate root mean square error between two raster datasets-reg,--regressionβ calculate linear regression between two raster datasets and get correlation coefficient-regerr,--regerrβ calculate linear regression between two raster datasets and get root mean square error-preg,--pregβ calculate perpendicular regression between two raster datasets and get correlation coefficient-pregerr,--pregerrβ calculate perpendicular regression between two raster datasets and get root mean square error-v level,--verbose levelβ verbose mode when positive π£οΈ
and that's the whole page bestie, no cap, every single flag accounted for π«Ά
so this lil manual is dated 01 January 2025 and it lives in the pkstat(1) section of the manual β that's the source/version and date situation, folded into this cute lil sign-off so you never forget where it came from π
go forth and compute those stats, you absolute main character π§ββοΈβ¨
π¦ 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