t.rast.out.vtk(1)
β¨ t.rast.out.vtk β the GRASS GIS manual, but make it cute β¨
okay bestie, gather round π«Ά this is t.rast.out.vtk(1) from the GRASS GIS User's Manual, and it's genuinely iconic. Let's get into it π
π NAME
t.rast.out.vtk β exports a space time raster dataset as a VTK time series. no cap, that's literally the whole job π
π KEYWORDS
temporal, export, output, raster, VTK, time β¨
π¦ SYNOPSIS
t.rast.out.vtk
t.rast.out.vtk --help
t.rast.out.vtk [-pcg] input=name directory=string [elevation=name]
[where=sql_query] [null=float] [--help] [--verbose] [--quiet]
[--ui]
πΈ Flags
-pβ create VTK point data instead of VTK cell data (only when you're not giving it an elevation map)-cβ correct the coordinates so they actually fit inside VTK-OpenGL precision-gβ export the files using the space time dataset granularity, so the maps get equidistant time between them β and heads up, thewherestatement gets ignored when you do this π--helpβ print the usage summary--verboseβ verbose module output (it will yap, affectionately)--quietβ quiet module output--uiβ force launching the GUI dialog
π Parameters
input=name[required] β name of the input space time raster datasetdirectory=string[required] β path to the export directoryelevation=nameβ name of the input elevation raster mapwhere=sql_queryβ WHERE conditions of an SQL statement, written without the 'where' keyword, used in the temporal GIS framework- Example:
start_time > '2001-01-01 12:30:00'
- Example:
null=floatβ the value used to represent a no-data cell- Default:
-99999.99
- Default:
π DESCRIPTION
t.rast.out.vtk exports all maps registered in a space time raster dataset as VTK legacy files, and it numbers them using a numerical numbering scheme π’β¨
Those VTK files can be visualized with any VTK-based visualizer. Our preferred tool? ParaView, periodt π
And the VTK legacy files themselves are created using r.out.vtk π«Ά
π₯ EXAMPLE
okay so in this simple example we create several raster maps with random values plus one elevation map. The random value raster maps get registered in a space time raster dataset, and then every map in that space time raster dataset gets exported with t.rast.out.vtk into the directory /tmp/export π
mkdir /tmp/export
t.rast.out.vtk input=precip_abs directory=/tmp/export/ elevation=elevation
ls -1 /tmp/export
000000_tempmean_monthly.vtk
000001_tempmean_monthly.vtk
000002_tempmean_monthly.vtk
000003_tempmean_monthly.vtk
000004_tempmean_monthly.vtk
000005_tempmean_monthly.vtk
000006_tempmean_monthly.vtk
000007_tempmean_monthly.vtk
000008_tempmean_monthly.vtk
000009_tempmean_monthly.vtk
000010_tempmean_monthly.vtk
000011_tempmean_monthly.vtk
look at that numbering, so satisfying, chef's kiss ππ
π SEE ALSO
r.out.vtkParaView
π AUTHOR
SΓΆren Gebbert, ThΓΌnen Institute of Climate-Smart Agriculture π«Ά
β SOURCE CODE
Available at: t.rast.out.vtk source code (history)
Accessed: Saturday Jan 17 05:41:53 2026
Main index | Temporal index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's the whole page, bestie β GRASS 8.4.2, t.rast.out.vtk(1), accessed Saturday Jan 17 05:41:53 2026 πβ¨ go export something gorgeous π¦
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· 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