This function uses writeRaster to create .asc maps which can be read by GEOtop
This function uses writeRaster to create .asc maps which can be read by GEOtop
writeRasterxGEOtop(x, filename = NULL, overwrite = TRUE, NAflag = -9999, use.decimal.formatter = FALSE, start.from.zero = FALSE, keyword, wpath, suffix.ext = ".asc", ...)
x |
a Raster object, see |
filename |
see |
overwrite |
logical. Default is |
NAflag |
numeric. Dafauli is -9999, see |
use.decimal.formatter |
logical value. Default is |
start.from.zero |
logical value. Default is |
keyword |
geotop keyword to be used to extract the raster file name from |
wpath |
simulation folder containing |
suffix.ext |
charachter string to be added to the |
... |
further arguments of |
It makes use of system functons. It uses *.asc format for raster files.
In case the file name filename is missing and then NULL, it must be imported by the simulation geotop.inpts file.
library(geotopbricks)
## Simulation working path
file <- system.file("rendena100/SnowDepthMapFile-2014-MA-mean-winter-2013-2014.asc",
package="geotopbricks")
snow <- raster(file)
snowfile <- rasterTmpFile()
extension(snowfile) <- ".asc"
writeRasterxGEOtop(x=snow,file=snowfile)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.