View source: R/create.geotop.meteo.file.R
create.geotop.meteo.files | R Documentation |
Creates geotop meteo files from (a list of) 'zoo' objects
create.geotop.meteo.files(
x,
format = "%d/%m/%Y %H:%M",
file_prefix = "meteo",
file_extension = ".txt",
formatter = "%04d",
na = "-9999",
col.names = TRUE,
row.names = FALSE,
date_field = "Date",
sep = ",",
level = NULL,
quote = FALSE,
...
)
x |
'zoo' object or a list of 'zoo' object representing the meteorological station |
format |
string format representing the date, see |
file_prefix |
string containing file prefix (full path). It correspos to the value of in |
file_extension |
string containing the extensions of final files. Default is |
formatter |
string value. It is the decimal formatter contained in the file name and used in case the tabular data are referred at several points. Default is |
na |
NA value indicator. Default is |
col.names |
logical parameter. Default is |
row.names |
logical parameter. Default is |
date_field |
string value. Default is "Date", otherwise defined by the value of |
sep |
string value. Default is |
level |
integer argument. See |
quote |
logical parameter. Default is |
... |
further arguments for |
write.table
,get.geotop.inpts.keyword.value
library(geotopbricks)
data(bondone) ## It contains a "meteo" zoo object.
set.seed(12)
file_prefix <- paste(tempdir(),"meteo",sep="/")
level=2
out <- create.geotop.meteo.files(x=meteo,file_prefix=file_prefix,level=level)
## It exports the "meteo" zoo object into a ASCII file for GEOtop
head(readLines(out))
out
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.