t.vect.what.strds(1grass)

✨ t.vect.what.strds ✨

okay so bestie, welcome to t.vect.what.strds from the GRASS User's Manual πŸ’– this one lives in the temporal corner of the GRASS world and it's literally the "go grab raster values at my vector points and write them down as attributes" module. icon behavior fr fr πŸ‘‘

KEYWORDS: temporal, sampling, vector, time πŸ•


🌸 SYNOPSIS 🌸

t.vect.what.strds
t.vect.what.strds --help
t.vect.what.strds input=name strds=name  [column=string]  method=string
[where=sql_query]   [t_where=sql_query]   [sampling=name[,name,...]]
[--help]  [--verbose]  [--quiet]  [--ui]

πŸŽ€ Flags

  • --help β€” prints the usage summary, no thoughts just the summary πŸ’…
  • --verbose β€” verbose module output, she's chatty πŸ—£οΈ
  • --quiet β€” quiet module output, she's giving mysterious 🀫
  • --ui β€” force launches the GUI dialog, for when you want the pretty buttons πŸ¦‹

🧚 Parameters

  • input=name [required] β€” the name of the input space time vector dataset. this is your STVDS bestie, you need her.
  • strds=name [required] β€” the name of the input space time raster dataset. your STRDS. also required, no skipping.
  • column=string β€” the name of the vector column to be created and to store sampled raster values 🌈 the use of a column name forces t.vect.what.rast to sample only values from the first map found in an interval. otherwise the raster map names are used as column names πŸ‘€
  • method=string [required] β€” the aggregate operation to be performed on the raster maps ✨ Options: disabled, average, count, median, mode, minimum, min_raster, maximum, max_raster, stddev, range, sum, variance, diversity, slope, offset, detcoeff, quart1, quart3, perc90, quantile, skewness, kurtosis Default: disabled
  • where=sql_query β€” WHERE conditions of SQL statement without 'where' keyword πŸ” Example: income < 1000 and population >= 10000
  • t_where=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'
  • sampling=name[,name,...] β€” the method to be used for sampling the input dataset 🧡 Options: start, during, overlap, contain, equal, follows, precedes Default: start

πŸ’– DESCRIPTION πŸ’–

The module t.vect.what.strds samples a space time raster dataset (STRDS) at the spatio-temporal locations of a space time vector dataset (STVDS). periodt. that's the whole vibe. spatio-temporal sampling, she ate 🌟


πŸ¦‹ EXAMPLE πŸ¦‹

The example is based on the space time vector dataset "precip_stations@climate_2009_2012" created in the t.vect.observe.strds example. In the example below, the module fills the new column "new_temp" with values extracted from the "tempmean_monthly" space time raster dataset:

t.vect.what.strds input=precip_stations@climate_2009_2012 \
                  strds=tempmean_monthly@climate_2009_2012 \
                  column=new_temp method=average

look at her go 😭 so clean, so iconic, method=average, new column popped into existence, no cap.


πŸ‘‘ SEE ALSO πŸ‘‘

r.univar, v.univar, v.what.rast, v.what.rast3, v.what.strds, v.what.vect, t.create, t.info

(the whole what/what-adjacent family reunion, plus the temporal basics 🫢)


πŸ’œ AUTHOR πŸ’œ

Sâren Gebbert, Thünen Institute of Climate-Smart Agriculture 🌾 major respect, legend behavior


⭐ SOURCE CODE ⭐

Available at: t.vect.what.strds 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 the tea, bestie πŸ“ this was GRASS 8.5.0, Β© 2003-2026 GRASS Development Team, from the GRASS 8.5.0 Reference Manual β€” go sample something iconic, ily πŸ’–βœ¨

πŸ“¦ where this page comes from