View source: R/sw_dbW_WeatherDatabase.R
dbW_weather_to_SOILWATfiles | R Documentation |
swWeatherData
or
data.frame to SOILWAT input text filesConversion: object of class swWeatherData
or
data.frame to SOILWAT input text files
dbW_weather_to_SOILWATfiles(
path,
site.label,
weatherData = NULL,
weatherDF = NULL,
years = NULL,
weatherDF_dataColumns = c("DOY", weather_dataColumns()),
digits = 4L
)
path |
A character string. Path on disk to where to write files. |
site.label |
A character string. Site identification name added to comment on first line of each file. |
weatherData |
A list of elements of class |
weatherDF |
A data.frame. Weather data, see details. |
years |
A numeric vector. The calendar years. |
weatherDF_dataColumns |
A vector of character strings. The column
names of |
digits |
An integer value. The number of decimal places for rounding
weather values (or |
weatherDF_dataColumns
must exactly contain entries for day of year and
the three weather variables.
The weather data must be provided either via weatherData
or weatherDF
.
See dbW_weatherData_to_dataframe()
and dbW_weatherData_to_dataframe()
for conversions between formats of weatherData
and weatherDF
.
getWeatherData_folders()
offers the inverse operation, i.e.,
reading weather data from disk files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.