write.ascii.vectorized.brick {geotopbricks} | R Documentation |
Writes a z-layer brick referred to a time instant (e.g. date) in an ascii format like 'geotop.inpts'
file.
Description
Writes a z-layer brick referred to a time instant (e.g. date) in an ascii format like 'geotop.inpts'
file.
Usage
write.ascii.vectorized.brick(
b,
file = NULL,
header = NULL,
overwrite = TRUE,
NAflag = -9999,
matlab.syntax = FALSE,
...
)
Arguments
b |
a |
file |
file name to write |
header |
character string vector for header text lines. If missing, a default header is written. #Default is |
overwrite |
logical. Default is |
NAflag |
numeric. Default is -9999, see |
matlab.syntax |
logical value. Default is |
... |
further aguments inserted as attribute |
Value
the string vector possibly written in file
.
Note
Add Quote if necessary. This function is NOT maintained and will be DEPRECATED.
See Also
Examples
## Not Run
## library(geotopbricks)
## library(raster)
## file <- system.file("doc/examples/snowthickness",package="geotopbricks")
## file <- paste(file,"SnowThickness0000L%04d.asc",sep="/")
## b <- brick.decimal.formatter(file=file,nlayers=15)
## nlayers(b)
## names(b)
## file <- "snow.txt"
## btext <- write.ascii.vectorized.brick(b,Date="1/1/2009",file="snow.txt")
## The printed object
## str(btext)
## bb <- read.ascii.vectorized.brick(file = file)
## bf <- abs(as.matrix(bb[[1]]-b[[1]]))<.Machine$double.eps^0.5
[Package geotopbricks version 1.5.8.2 Index]