t.vect.univar(1grass)
π t.vect.univar β the manual, but make it cute π
okay bestie, gather round, because this is t.vect.univar from the GRASS User's Manual and she is that girl. Quick vibe: she crunches univariate statistics on attributes, and she does it for every single registered vector map inside a space time vector dataset. Every one. No skipping. Periodt. π
β¨ NAME β¨
t.vect.univar β calculates univariate statistics of attributes for each registered vector map of a space time vector dataset π¦
πΈ KEYWORDS πΈ
temporal, statistics, vector, time
π SYNOPSIS π
t.vect.univar
t.vect.univar --help
t.vect.univar [-eu] input=name [output=name] [layer=string]
column=name [twhere=sql_query] [where=sql_query] [type=string]
[separator=character] [--overwrite] [--help] [--verbose] [--quiet]
[--ui]
π© Flags π©
-eβ calculate extended statistics (yes she goes deeper, we love a thorough queen)-uβ suppress printing of column names (just the numbers, no labels, mysterious β¨)--overwriteβ allow output files to overwrite existing files (she will absolutely replace your old file, so be aware π)--helpβ print usage summary--verboseβ verbose module output (she talks more)--quietβ quiet module output (she talks less π€«)--uiβ force launching GUI dialog
π§ Parameters π§
input=name[required] β name of the input space time vector datasetoutput=nameβ name for output filelayer=stringβ layer number or name. Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name. Default:1column=name[required] β name of attribute columntwhere=sql_queryβ WHERE conditions of SQL statement without 'where' keyword, used in the temporal GIS framework. Example:start_time > '2001-01-01 12:30:00'where=sql_queryβ WHERE conditions of SQL statement without 'where' keyword. Example:income < 1000 and population >= 10000type=stringβ input feature type. Options:point,line,boundary,centroid,area. Default:pointseparator=characterβ field separator character between the output columns. Special characters: pipe, comma, space, tab, newline. Default:pipe
π DESCRIPTION π
The module t.vect.univar computes univariate statistics of a space time vector dataset based on a single attribute row. That's the whole thing, bestie. She reads one column, she gives you the stats. Lowkey iconic. π
π₯ EXAMPLE π₯
This example is based on the t.vect.observe.strds example β so first you create the precip_stations space time vector dataset, and then, after that, you run this command:
t.vect.univar input=precip_stations col=month
id|start|end|n|nmissing|nnull|min|max|range|mean|mean_abs|population_stddev|population_variance|population_coeff_variation|sample_stddev|sample_variance|kurtosis|skewness
precip_stations_monthly@climate_2009_2012|2009-01-01 00:00:00|2009-02-01 00:00:00|132|0|4|-2.31832|7.27494|9.59326|3.44624|3.5316|1.79322|3.21564|0.520341|1.80005|3.24019|0.484515|-0.338519
precip_stations_monthly@climate_2009_2012|2009-02-01 00:00:00|2009-03-01 00:00:00|132|0|4|-0.654152|7.90613|8.56028|5.47853|5.48844|1.73697|3.01708|0.317051|1.74359|3.04011|0.875252|-1.0632
....
precip_stations_monthly@climate_2009_2012|2012-10-01 00:00:00|2012-11-01 00:00:00|132|0|4|9.67596|18.4654|8.78945|14.945|14.945|1.90659|3.6351|0.127574|1.91386|3.66285|-0.0848967|-0.700833
precip_stations_monthly@climate_2009_2012|2012-11-01 00:00:00|2012-12-01 00:00:00|132|0|4|3.56755|10.6211|7.05357|7.72153|7.72153|1.33684|1.78715|0.173132|1.34194|1.8008|0.90434|-0.863935
precip_stations_monthly@climate_2009_2012|2012-12-01 00:00:00|2013-01-01 00:00:00|132|0|4|3.04325|11.6368|8.5935|8.20147|8.20147|1.78122|3.17275|0.217183|1.78801|3.19697|-0.177991|-0.501295
like look at all those columns go π she ate and left no crumbs.
ngl,col=monthup there is you passing thecolumnparameter, because the manual's example keeps it short. Same parameter. Fr fr.
π«Ά SEE ALSO π«Ά
t.createt.info
π AUTHOR π
SΓΆren Gebbert, ThΓΌnen Institute of Climate-Smart Agriculture
β SOURCE CODE β
Available at: t.vect.univar source code (history)
Latest change: Friday Feb 07 19:16:09 2025 in commit: a82a39f673b97fafcfce1604dc3e6015cb96487a
Main index | Temporal index | Topics index | Keywords index | Graphical index | Full index
and that's a wrap, bestie π this page is from GRASS 8.5.0, part of the GRASS Development Team's reference manual, Β© 2003-2026, with the latest change landing Friday Feb 07 19:16:09 2025 in commit a82a39f673b97fafcfce1604dc3e6015cb96487a. go forth and compute those stats, you absolute main character π¦β¨π
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms