calculateAttributes {foreSIGHT} | R Documentation |
Calculates the attributes of the hydroclimate time series
Description
calculateAttributes
calculates the specified attributes of the input daily hydroclimate time series.
Usage
calculateAttributes(climateData, attSel, startYr = NULL, endYr = NULL)
Arguments
climateData |
data.frame or list; daily climate data, the attributes of which are to be calculated. |
attSel |
a vector; specifying the names of the attributes to be calculated. |
startYr |
a number (default |
endYr |
a number (default |
Value
The function returns a vector of attributes with names of the attributes (attSel
).
For multi-site data, names are combinations of attribute and site names.
Examples
#----------------------------------------------------------------------
# Example 1: Single-site data.frame input
# load 'tank' example climate data available in the package
data("tankDat")
# specify rainfall and temperature attributes to calculate
attSel <- c("P_ann_tot_m", "P_ann_nWet_m", "P_ann_R10_m", "Temp_ann_rng_m", "Temp_ann_avg_m")
tank_obs_atts <- calculateAttributes(tank_obs, attSel = attSel)
#----------------------------------------------------------------------
# Example 2: Multi-site list input
# load 'Barossa' example climate data available in the package
data("barossaDat")
# specify rainfall attributes to calculate
attSel <- c("P_ann_tot_m", "P_ann_nWet_m", "P_ann_P99")
barossa_obs_atts <- calculateAttributes(tank_obs, attSel = attSel)