View source: R/write.ascii.vectorizrerd.brick.R
write.ascii.vectorized.brick | R Documentation |
'geotop.inpts'
file.Writes a z-layer brick referred to a time instant (e.g. date) in an ascii format like 'geotop.inpts'
file.
write.ascii.vectorized.brick(
b,
file = NULL,
header = NULL,
overwrite = TRUE,
NAflag = -9999,
matlab.syntax = FALSE,
...
)
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 |
the string vector possibly written in file
.
Add Quote if necessary. This function is NOT maintained and will be DEPRECATED.
read.ascii.vectorized.brick
## 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.