Learn R Programming

foreSIGHT (version 0.9.81)

attributeCalculator: attributeCalculator

Description

Calculates the attributes of a supplied set of time series data.

Usage

attributeCalculator(obs = NULL,
                      attSel = NULL,
                      slice = NULL,
                      window = 10
                      )

Arguments

obs

A dataframe of observed climate data in the form Year Month Day P Temp.

attSel

A character vector of climate attributes selected for calculation. A list of all supported attributes can be found in details below.

slice

Optional argument. A scalar value indicating the last year (e.g. 2050) of the supplied time series that is used as in input for attribute calcualtion.

window

the period (number of years) over which the attributes are calcualted. Note: the window is the number of years taken before the slice year. Default set at 10.

Details

The list of attributes supported by attSel are:

  • "P_ann_tot_m"

  • "P_ann_R10_m"

  • "P_ann_maxDSD_m"

  • "P_ann_maxWSD_m"

  • "P_ann_P99_m"

  • "P_ann_dyWet99p_m"

  • "P_ann_ratioWS_m"

  • "Temp_ann_avg_m"

  • "Temp_ann_P5_m"

  • "Temp_ann_P95_m"

  • "Temp_ann_F0_m"

  • "P_ann_dyWet_m"

  • "P_ann_DSD_m"

  • "P_seas_tot_cv"

  • "P_mon_tot_cv"

  • "P_ann_avgWSD_m"

  • "P_ann_avgDSD_m"

  • "P_JJA_avgWSD_m"

  • "P_MAM_avgWSD_m"

  • "P_DJF_avgWSD_m"

  • "P_SON_avgWSD_m"

  • "P_JJA_avgDSD_m"

  • "P_MAM_avgDSD_m"

  • "P_DJF_avgDSD_m"

  • "P_SON_avgDSD_m"

  • "Temp_ann_GSL_m"

  • "Temp_ann_CSL_m"

  • "P_JJA_dyWet_m"

  • "P_MAM_dyWet_m"

  • "P_DJF_dyWet_m"

  • "P_SON_dyWet_m"

  • "P_JJA_tot_m"

  • "P_MAM_tot_m"

  • "P_DJF_tot_m"

  • "P_SON_tot_m"

  • "P_ann_nWet_m"

  • "P_ann_dyAll_m"

  • "P_JJA_dyAll_m"

  • "P_MAM_dyAll_m"

  • "P_DJF_dyAll_m"

  • "P_SON_dyAll_m"

  • "PET_ann_avg_m"

  • "PET_ann_tot_m"

  • "PET_ann_rng_m"

  • "Temp_ann_rng_m"

  • "PET_ann_90pX_m"

  • "P_ann_90X_m"

  • "P_ann_seasRatio_m"

  • "PET_ann_P5_m"

  • "PET_ann_P95_m"

  • "P_Jan_tot_m"

  • "P_Feb_tot_m"

  • "P_Mar_tot_m"

  • "P_Apr_tot_m"

  • "P_May_tot_m"

  • "P_Jun_tot_m"

  • "P_Jul_tot_m"

  • "P_Aug_tot_m"

  • "P_Sep_tot_m"

  • "P_Oct_tot_m"

  • "P_Nov_tot_m"

  • "P_Dec_tot_m"

  • "Temp_JJA_avg_m"

  • "Temp_MAM_avg_m"

  • "Temp_DJF_avg_m"

  • "Temp_SON_avg_m"

  • "Temp_Jan_avg_m"

  • "Temp_Feb_avg_m"

  • "Temp_Mar_avg_m"

  • "Temp_Apr_avg_m"

  • "Temp_May_avg_m"

  • "Temp_Jun_avg_m"

  • "Temp_Jul_avg_m"

  • "Temp_Aug_avg_m"

  • "Temp_Sep_avg_m"

  • "Temp_Oct_avg_m"

  • "Temp_Nov_avg_m"

  • "Temp_Dec_avg_m"

  • "PET_JJA_avg_m"

  • "PET_MAM_avg_m"

  • "PET_DJF_avg_m"

  • "PET_SON_avg_m"

  • "PET_JJA_tot_m"

  • "PET_MAM_tot_m"

  • "PET_DJF_tot_m"

  • "PET_SON_tot_m"

  • "PET_Jan_tot_m"

  • "PET_Feb_tot_m"

  • "PET_Mar_tot_m"

  • "PET_Apr_tot_m"

  • "PET_May_tot_m"

  • "PET_Jun_tot_m"

  • "PET_Jul_tot_m"

  • "PET_Aug_tot_m"

  • "PET_Sep_tot_m"

  • "PET_Oct_tot_m"

  • "PET_Nov_tot_m"

  • "PET_Dec_tot_m"

  • "PET_Jan_avg_m"

  • "PET_Feb_avg_m"

  • "PET_Mar_avg_m"

  • "PET_Apr_avg_m"

  • "PET_May_avg_m"

  • "PET_Jun_avg_m"

  • "PET_Jul_avg_m"

  • "PET_Aug_avg_m"

  • "PET_Sep_avg_m"

  • "PET_Oct_avg_m"

  • "PET_Nov_avg_m"

  • "PET_Dec_avg_m"

  • "PET_ann_seasRatio_m"

  • "Radn_ann_avg_m"

  • "Radn_ann_tot_m"

  • "Radn_ann_rng_m"

  • "Radn_ann_P5_m"

  • "Radn_ann_P95_m"

  • "Radn_JJA_avg_m"

  • "Radn_MAM_avg_m"

  • "Radn_DJF_avg_m"

  • "Radn_SON_avg_m"

  • "Radn_JJA_tot_m"

  • "Radn_MAM_tot_m"

  • "Radn_DJF_tot_m"

  • "Radn_SON_tot_m"

  • "Radn_Jan_tot_m"

  • "Radn_Feb_tot_m"

  • "Radn_Mar_tot_m"

  • "Radn_Apr_tot_m"

  • "Radn_May_tot_m"

  • "Radn_Jun_tot_m"

  • "Radn_Jul_tot_m"

  • "Radn_Aug_tot_m"

  • "Radn_Sep_tot_m"

  • "Radn_Oct_tot_m"

  • "Radn_Nov_tot_m"

  • "Radn_Dec_tot_m"

  • "Radn_Jan_avg_m"

  • "Radn_Feb_avg_m"

  • "Radn_Mar_avg_m"

  • "Radn_Apr_avg_m"

  • "Radn_May_avg_m"

  • "Radn_Jun_avg_m"

  • "Radn_Jul_avg_m"

  • "Radn_Aug_avg_m"

  • "Radn_Sep_avg_m"

  • "Radn_Oct_avg_m"

  • "Radn_Nov_avg_m"

  • "Radn_Dec_avg_m"

  • "Radn_ann_seasRatio_m"

Examples

Run this code
# NOT RUN {
###Example 1 - calculate attributes for full length of data
data(tankDat)
attSel=c("P_ann_tot_m","P_ann_dyWet_m","P_ann_dyAll_m")
out=attributeCalculator(obs = tank_obs,
                        attSel = attSel,
                        slice=NULL,
                        window=NULL)

# }

Run the code above in your browser using DataLab