View source: R/swWeatherGenerator.R
print_mkv_files | R Documentation |
Print Markov weather generator files as required by SOILWAT2
print_mkv_files(mkv_doy, mkv_woy, path, digits = 5)
mkv_doy |
A data.frame. The same named output element of
|
mkv_woy |
A data.frame. The same named output element of
|
path |
A character string. The path on disk to the location where output files should be created. |
digits |
An integer value. The number of digits with which to write the values to disk. |
This function is called for its side effect, i.e., writing values to files “mkv_prob.in” and “mkv_covar.in”.
dbW_estimate_WGen_coefs
to
calculate the necessary values based on daily weather data.
path <- tempdir()
res <- dbW_estimate_WGen_coefs(rSOILWAT2::weatherData)
print_mkv_files(
mkv_doy = res[["mkv_doy"]],
mkv_woy = res[["mkv_woy"]],
path = path)
## Cleanup
unlink(list.files(path), force = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.