Learn R Programming

ClimProjDiags

Set of tools to compute various climate indices

Why should I use it?

The package contains a set of tools to compute metrics and indices for climate analysis. The package provides functions to compute extreme indices, evaluate the agreement between models and combine these models into an ensemble. Multi-model time series of climate indices can be computed either after averaging the 2-D fields from different models provided they share a common grid or by combining time series computed on the model's native grid. Indices can be assigned and/or combined to construct new indices.

How do I get it?

To install and load the package you can run the next lines in your R session:

install.packages("ClimProjDiags")
library(ClimProjDiags)

How do I use it?

The main functionalities are presented in four different vignettes with step by step examples:

  • Multi-model agreement: computes a projected climate anomaly and provides the percentage of models which agree on the sign of the anomaly.
  • Extreme Indices: computes different extreme indices and combine these indices to evalutae how extreme events are projected to change in the future climate.
  • Heat and Cold Wave Duration: computes change in heat wave frequency between present and future conditions.
  • Diurnal temperature variation indicator: compares the future projection of diurnal temperature variations with a reference period.

Copy Link

Version

Install

install.packages('ClimProjDiags')

Monthly Downloads

524

Version

0.3.3

License

GPL-3

Maintainer

Victoria Agudetse

Last Published

January 26th, 2024

Functions in ClimProjDiags (0.3.3)

DailyAno

Daily anomalies
Climdex

Wrapper for applying the climdex routine ETCCDI climate change indices to n-dimensional arrays.
ArrayToList

Split an array into list by a given array dimension
SeasonSelect

Selects a season from daily data for multidimensional arrays
AnoAgree

Percentage of anomalies which agrees with the sign of the mean anomaly for multidimensional arrays
CombineIndices

Combine weighted indices of n-dimensional arrays
Lon2Index

Obtain the index of positions for a region in longitudes
DTRIndicator

Diurnal temperature range indicator (DTR) of multidimensional arrays
DTRRef

Diurnal temperature range of multidimensional arrays
Extremes

Sum of spell lengths exceeding daily threshold for n-dimensional arrays
Threshold

Daily thresholds based on quantiles for n-dimensional arrays
SelBox

Select spatial region from multidimensional arrays
WaveDuration

Heat and cold waves duration for n-dimensional arrays
Subset

Subset a Data Array
WeightedMean

Calculate spatial area-weighted average of multidimensional arrays
WeightedCells

Compute the square-root of the cosine of the latitude weighting on the given array.
ShiftLon

Shift longitudes of a data array