[go: up one dir, main page]

File: tgrass.Rd

package info (click to toggle)
r-cran-spacetime 1.3-3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,240 kB
  • sloc: sh: 13; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 1,403 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
\name{read.tgrass}
\alias{read.tgrass}
\alias{write.tgrass}
\title{ read or write tgrass (time-enabled grass) files }
\description{ read or write tgrass (time-enabled grass) files }
\usage{ 
read.tgrass(fname, localName = TRUE, useTempDir = TRUE, isGeoTiff = TRUE)
write.tgrass(obj, fname, ...)
}
\arguments{
\item{fname}{ file name to read from, or write to }
\item{localName}{ logical; if TRUE, \code{fname} is a local file, else
it is a the full path name to the file }
\item{useTempDir}{ logical: use a temporary directory for extraction?}
\item{isGeoTiff}{ logical: are the files in the tar.gz file GeoTIFFs?}
\item{obj}{ object to export, of class \code{STFDF} or \code{RasterStack}}
\item{...}{ arguments passed on to \link[raster]{writeRaster}}
}
\value{
\code{read.tgrass} returns an object of class \code{RasterStack},
\code{writegrass} returns nothing}
\details{ 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 }
\author{Edzer Pebesma; time-enabled grass by Soeren Gebbert }
\references{ https://dx.doi.org/10.1016/j.envsoft.2013.11.001 }
\examples{
\dontrun{
library(spacetime)
r = read.tgrass("precipitation_1950_2011_yearly.tar.gz", useTempDir = FALSE)
write.tgrass(r, "myfile.tar.gz")
}
}
\keyword{manip}