t.rast.export1grass
Exports space time raster dataset.
Usage
t.rast.export
t.rast.export --help
t.rast.export input=name
output=name
[directory=name]
[compression=string]
[format=string]
[type=string]
[createopt=string
[,string, ...]]
[metaopt=string
[,string, ...]]
[nodata=float]
[where=sql_query]
[--overwrite]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
temporal, export, raster, time
Overview
t.rast.export exports a space time raster dataset (strds) as a tar archive. The archive contains the raster maps either as GeoTIFF files or as GRASS binary files exported using r.pack. The map specific color tables are exported in case of GeoTIFF files. In addition several metadata files are created in the archive that describe the temporal layout. All time stamps are stored in the file "list.txt", for each map one row. The name of the map, the start time and the end time are written. In case of a time instance, the start time is equal to the end time. The "init.txt" file stores the temporal type, the number of maps, the chosen export format and some other metadata. The "proj.txt" file stores the coordinate reference system information as a proj4 string of the project the space time raster dataset was exported from. The file "readme.txt" describes the file format. The output of r.info for each raster map in the space time dataset is stored in "metadata.txt".
The tar archive can be compressed using the compress option. Gzip and bzip2 (default) are available. A where option can be specified, to export only a subset of the space time dataset. Archives exported with t.rast.export can be imported with t.rast.import.
Notes
The name of output file has to carry the suffix of the archive type, the following suffix can be used:
•
|
|
|---|---|
•
|
|
•
|
|
Examples
In this example, all the raster maps of 2012 of "tempmean_monthly" will be exported:
t.rast.export input=tempmean_monthly output=tempmean_monthly.tar.bzip2 \where="start_time >= ’2012-01-01’ and start_time < ’2013-01-01’"tar xvjf precipitation_daily.tar.bzip22012_01_tempmean.tif2012_01_tempmean.color2012_02_tempmean.tif2012_02_tempmean.color2012_03_tempmean.tif2012_03_tempmean.color2012_04_tempmean.tif2012_04_tempmean.color2012_05_tempmean.tif2012_05_tempmean.color2012_06_tempmean.tif2012_06_tempmean.color2012_07_tempmean.tif2012_07_tempmean.color2012_08_tempmean.tif2012_08_tempmean.color2012_09_tempmean.tif2012_09_tempmean.color2012_10_tempmean.tif2012_10_tempmean.color2012_11_tempmean.tif2012_11_tempmean.color2012_12_tempmean.tif2012_12_tempmean.colorlist.txtproj.txtinit.txtreadme.txtmetadata.txtcat init.txtstds_type=strdsformat=GTifftemporal_type=absolutesemantic_type=meannumber_of_maps=48north=320000.0south=10000.0east=935000.0west=120000.0cat proj.txt+proj=lcc+lat_1=36.16666666666666+lat_2=34.33333333333334+lat_0=33.75+lon_0=-79+x_0=609601.22+y_0=0+no_defs+a=6378137+rf=298.257222101+towgs84=0.000,0.000,0.000+to_meter=1cat list.txt2012_01_tempmean|2012-01-01 00:00:00|2012-02-01 00:00:002012_02_tempmean|2012-02-01 00:00:00|2012-03-01 00:00:002012_03_tempmean|2012-03-01 00:00:00|2012-04-01 00:00:002012_04_tempmean|2012-04-01 00:00:00|2012-05-01 00:00:002012_05_tempmean|2012-05-01 00:00:00|2012-06-01 00:00:002012_06_tempmean|2012-06-01 00:00:00|2012-07-01 00:00:002012_07_tempmean|2012-07-01 00:00:00|2012-08-01 00:00:002012_08_tempmean|2012-08-01 00:00:00|2012-09-01 00:00:002012_09_tempmean|2012-09-01 00:00:00|2012-10-01 00:00:002012_10_tempmean|2012-10-01 00:00:00|2012-11-01 00:00:002012_11_tempmean|2012-11-01 00:00:00|2012-12-01 00:00:002012_12_tempmean|2012-12-01 00:00:00|2013-01-01 00:00:00cat readme.txtThis space time raster dataset was exported with t.rast.export of GRASS GIS 7Files:*.tif -- GeoTIFF raster files*.color -- GRASS GIS raster color rulesproj.txt -- Projection information in PROJ formatinit.txt -- GRASS GIS space time raster dataset informationlist.txt -- Time series file, lists all maps by name with intervaltime stamps in ISO-Format. Field separator is |metadata.txt -- The output of t.inforeadme.txt -- This file
Source code
Available at: t.rast.export source code (history)
Accessed: Monday Feb 24 17:51:47 2025
Main index | Temporal index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.