read.tgrass | R Documentation |
read or write tgrass (time-enabled grass) files
read.tgrass(fname, localName = TRUE, useTempDir = TRUE, isGeoTiff = TRUE)
write.tgrass(obj, fname, ...)
fname |
file name to read from, or write to |
localName |
logical; if TRUE, |
useTempDir |
logical: use a temporary directory for extraction? |
isGeoTiff |
logical: are the files in the tar.gz file GeoTIFFs? |
obj |
object to export, of class |
... |
arguments passed on to writeRaster |
The tgrass format is a gzip'ed tar file (.tar.gz) that has geotiff files (with suffix .tif), and three files (list.txt, proj.txt and init.txt) describing the file names and time slices, coordinate reference system, and dimensions
read.tgrass
returns an object of class RasterStack
,
writegrass
returns nothing
Edzer Pebesma; time-enabled grass by Soeren Gebbert
https://dx.doi.org/10.1016/j.envsoft.2013.11.001
## Not run:
library(spacetime)
r = read.tgrass("precipitation_1950_2011_yearly.tar.gz", useTempDir = FALSE)
write.tgrass(r, "myfile.tar.gz")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.