View source: R/sw_Miscellaneous_Functions.R
calc_SiteClimate | R Documentation |
Calculate climate variables from daily weather
calc_SiteClimate(
weatherList,
year.start = NA,
year.end = NA,
do_C4vars = FALSE,
do_Cheatgrass_ClimVars = FALSE,
simTime2 = NULL,
latitude = 90
)
weatherList |
A list. Each element is an object of class
|
year.start |
An integer value. The first year of the range of years for which climate variables should be calculated. |
year.end |
An integer value. The last year of the range of years for which climate variables should be calculated. |
do_C4vars |
A logical value. If |
do_Cheatgrass_ClimVars |
A logical value. If |
simTime2 |
A list with two named elements. The elements are numeric
vectors month_ForEachUsedDay_NSadj and
year_ForEachUsedDay_NSadj; they are calculated internally
if |
latitude |
A numeric value. The latitude in degree of the site. Used
to adjust seasons between northern/southern hemisphere only if
|
A list with named elements
A numeric vector of length 12. Mean monthly mean daily air temperature in degree Celsius.
A numeric vector of length 12. Mean monthly minimum daily air temperature in degree Celsius.
A numeric vector of length 12. Mean monthly maximum daily air temperature in degree Celsius.
A numeric vector of length 12. Mean monthly precipitation in centimeters.
A numeric value. Mean annual precipitation in centimeters.
A numeric value. Mean annual air temperature in degree Celsius.
A numeric vector. If
isTRUE(do_C4vars)
, then minimum daily air temperature in degree
Celsius for each day of time period between year.start
and
year.end
. If !isTRUE(do_C4vars)
, then NA
.
A numeric vector. Similar as for
dailyTempMin
but for mean daily air temperature.
If isTRUE(do_C4vars)
, then a
named numeric vector containing the output of
sw_dailyC4_TempVar
, else NA
.
If isTRUE(do_Cheatgrass_ClimVars)
, then a named numeric vector
containing the output of sw_Cheatgrass_ClimVar
,
else NA
.
## Load weather dataset from rSOILWAT2
utils::data("weatherData", package = "rSOILWAT2")
clim1 <- calc_SiteClimate(weatherList = weatherData)
clim2 <- calc_SiteClimate(weatherList = weatherData, do_C4vars = TRUE)
clim3 <- calc_SiteClimate(weatherList = weatherData,
do_Cheatgrass_ClimVars = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.