Set of generalised tools for the flexible computation of climate related indicators defined by the user. Each method represents a specific mathematical approach which is combined with the possibility to select an arbitrary time period to define the indicator. This enables a wide range of possibilities to tailor the most suitable indicator for each particular climate service application (agriculture, food security, energy, water management…). This package is intended for sub-seasonal, seasonal and decadal climate predictions, but its methods are also applicable to other time-scales, provided the dimensional structure of the input is maintained. Additionally, the outputs of the functions in this package are compatible with CSTools.
To learn how to use the package see:
Functions documentation can be found here
| Function | CST version | Indicators | |--------------------------------|------------------------------------|---------------------------------| |PeriodMean |CST_PeriodMean |GST, SprTX, DTR | |PeriodAccumulation |CST_PeriodAccumulation |SprR, HarR, PRCPTOT | |AccumulationExceedingThreshold |CST_AccumulationExceedingThreshold |GDD, R95pTOT, R99pTOT | |TotalTimeExceedingThreshold |CST_TotalTimeExceedingThreshold |SU35, SU, FD, ID, TR, R10mm, Rnmm| |TotalSpellTimeExceedingThreshold|CST_TotalSpellTimeExceedingThreshold|WSDI, CSDI | |WindCapacityFactor |CST_WindCapacityFactor |Wind Capacity Factor | |WindPowerDensity |CST_WindPowerDensity |Wind Power Density |
| Auxiliar function | CST version | |-------------------|----------------------| |AbsToProbs |CST_AbsToProbs | |QThreshold |CST_QThreshold | |Threshold |CST_Threshold | |MergeRefToExp |CST_MergeRefToExp | |SelectPeriodOnData |CST_SelectPeriodOnData| |SelectPeriodOnDates| |
Find the current status of each function in this link: https://docs.google.com/spreadsheets/d/1arqgw-etNPs-XRyMTJ4ekF5YjQxAZBzssxxr2GMXp3c/edit#gid=0.
Note: the CST version uses 's2dv_cube' objects as inputs and outputs while the former version uses multidimensional arrays with named dimensions as inputs and outputs
Note: All functions computing indicators allows to subset a time period if required, although this temporal subsetting can also be done with functions SelectPeriodOnData
in a separated step.
Note: Remember to work with multidimensionals arrays with named dimensions when possible and use multiApply (https://earth.bsc.es/gitlab/ces/multiApply)
To add a new function in this R package, follow this considerations:
Function()
included in file Function.Rdevtools::document()
in your R terminal to automatically generate the Function.Rd fileAny scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.