Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

create.geotop.meteo.files

Creates geotop meteo files from (a list of) 'zoo' objects


Description

Creates geotop meteo files from (a list of) 'zoo' objects

Usage

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, ...)

Arguments

x

'zoo' object or a list of 'zoo' object representing the meteorological station

format

string format representing the date, see as.POSIXlt. Default is "%d/%m/%Y %H:%M" (which is the same format used in geotop.inpts keyword InitDateDDMMYYYYhhmm)

file_prefix

string containing file prefix (full path). It correspos to the value of in geotop.inpts keyword MeteoFile)

file_extension

string containing the extensions of final files. Default is c(".txt")

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 "%04d" . See sprintf .

na

NA value indicator. Default is "-9999". See write.table.

col.names

logical parameter. Default is TRUE. See write.table.

row.names

logical parameter. Default is FALSE. See write.table.

date_field

string value. Default is "Date", otherwise defined by the value of HeaderDateDDMMYYYYhhmmMeteo geotop keyword.

sep

string value. Default is ",". See write.table.

level

integer argument. See get.geotop.inpts.keyword.value for major details. Default is NULL and is ignored.

quote

logical parameter. Default is TRUE. See write.table.

...

further argurments for write.table

See Also

Examples

library(geotopbricks)
data(bondone)
## Not Run - Uncomment te following line to run the example
## create.geotop.meteo.files(x=meteo)

geotopbricks

An R Plug-in for the Distributed Hydrological Model GEOtop

v1.5.4
GPL (>= 2)
Authors
Emanuele Cordano, Daniele Andreis, Fabio Zottele
Initial release
2020-02-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.