Learn R Programming

s2dv (version 2.1.0)

A Set of Common Tools for Seasonal to Decadal Verification

Description

The advanced version of package 's2dverification'. It is intended for 'seasonal to decadal' (s2d) climate forecast verification, but it can also be used in other kinds of forecasts or general climate analysis. This package is specially designed for the comparison between the experimental and observational datasets. The functionality of the included functions covers from data retrieval, data post-processing, skill scores against observation, to visualization. Compared to 's2dverification', 's2dv' is more compatible with the package 'startR', able to use multiple cores for computation and handle multi-dimensional arrays with a higher flexibility. The CDO version used in development is 1.9.8.

Copy Link

Version

Install

install.packages('s2dv')

Monthly Downloads

353

Version

2.1.0

License

GPL-3

Maintainer

Ariadna Batalla

Last Published

October 13th, 2024

Functions in s2dv (2.1.0)

CRPS

Compute the Continuous Ranked Probability Score
CDORemap

Interpolate arrays with longitude and latitude dimensions using CDO
Ano_CrossValid

Compute anomalies in cross-validation mode
AnimateMap

Animate Maps of Forecast/Observed Values or Scores Over Forecast Time
Ano

Compute forecast or observation anomalies
AMV

Compute the Atlantic Multidecadal Variability (AMV) index
ACC

Compute the spatial anomaly correlation coefficient between the forecast and corresponding observation
Bias

Compute the Mean Bias
AbsBiasSS

Compute the Absolute Mean Bias Skill Score
BrierScore

Compute Brier score, its decomposition, and Brier skill score
Clim

Compute Bias Corrected Climatologies
CRPSS

Compute the Continuous Ranked Probability Skill Score
ConfigShowSimilarEntries

Find Similar Entries In Tables Of Datasets
ConfigFileOpen

Functions To Create Open And Save Configuration File
ConfigEditEntry

Add, Remove Or Edit Entries In The Configuration
ConfigEditDefinition

Add Modify Or Remove Variable Definitions In Configuration
Cluster

K-means Clustering
ColorBar

Draws a Color Bar
ConfigApplyMatchingEntries

Apply Matching Entries To Dataset Name And Variable Name To Find Related Info
Composite

Compute composites
EOF

Area-weighted empirical orthogonal function analysis using SVD
EuroAtlanticTC

Teleconnection indices in European Atlantic Ocean region
DiffCorr

Compute the correlation difference and its significance
Filter

Filter frequency peaks from an array
Consist_Trend

Compute trend using only model data for which observations are available
ConfigShowTable

Show Configuration Tables And Definitions
Eno

Compute effective sample size with classical method
GMST

Compute the Global Mean Surface Temperature (GMST) anomalies
GSAT

Compute the Global Surface Air Temperature (GSAT) anomalies
Corr

Compute the correlation coefficient between an array of forecast and their corresponding observation
GetProbs

Compute probabilistic forecasts or the corresponding observations
NAO

Compute the North Atlantic Oscillation (NAO) Index
Persistence

Compute persistence
Histo2Hindcast

Chunk long simulations for comparison with hindcasts
Load

Loads Experimental And Observational Data
MSE

Compute mean square error
LeapYear

Checks Whether A Year Is Leap Year
InsertDim

Add a named dimension to an array
MSSS

Compute mean square error skill score
MeanDims

Average an array along multiple dimensions
PlotStereoMap

Maps A Two-Dimensional Variable On A Polar Stereographic Projection
Plot2VarsVsLTime

Plot two scores with confidence intervals in a common plot
PlotBoxWhisker

Box-And-Whisker Plot of Time Series with Ensemble Distribution
PlotEquiMap

Maps A Two-Dimensional Variable On A Cylindrical Equidistant Projection
PlotAno

Plot Anomaly time series
PlotClim

Plots Climatologies
PlotSection

Plots A Vertical Section
PlotLayout

Arrange and Fill Multi-Pannel Layouts With Optional Colour Bar
PlotACC

Plot Plumes/Timeseries Of Anomaly Correlation Coefficients
PlotMatrix

Function to convert any numerical table to a grid of coloured squares.
RMS

Compute root mean square error
ProjectField

Project anomalies onto modes of variability
RPS

Compute the Ranked Probability Score
RandomWalkTest

Random Walk test for skill differences
ROCSS

Compute the Relative Operating Characteristic Skill Score
REOF

Area-weighted empirical orthogonal function analysis with varimax rotation using SVD
ProbBins

Compute probabilistic information of a forecast relative to a threshold or a quantile
RMSSS

Compute root mean square error skill score
RPSS

Compute the Ranked Probability Skill Score
PlotVsLTime

Plot a score along the forecast time with its confidence interval
Season

Compute seasonal mean or other calculations
ResidualCorr

Compute the residual correlation and its significance
RatioRMS

Compute the ratio between the RMSE of two experiments
RatioPredictableComponents

Calculate ratio of predictable components (RPC)
SPOD

Compute the South Pacific Ocean Dipole (SPOD) index
RatioSDRMS

Compute the ratio between the ensemble spread and RMSE
Regression

Compute the regression of an array on another along one dimension.
SignalNoiseRatio

Calculate Signal-to-noise ratio
Smoothing

Smooth an array along one dimension
Reorder

Reorder the dimension of an array
SprErr

Compute the ratio between the ensemble spread and RMSE
Spread

Compute interquartile range, maximum-minimum, standard deviation and median absolute deviation
Trend

Compute the trend
TPI

Compute the Tripole Index (TPI) for the Interdecadal Pacific Oscillation (IPO)
s2dv-package

s2dv: A Set of Common Tools for Seasonal to Decadal Verification
StatSeasAtlHurr

Compute estimate of seasonal mean of Atlantic hurricane activity
UltimateBrier

Compute Brier scores
clim.palette

Generate Climate Color Palettes
Spectrum

Estimate frequency spectrum
ToyModel

Synthetic forecast generator imitating seasonal to decadal forecasts. The components of a forecast: (1) predictabiltiy (2) forecast error (3) non-stationarity and (4) ensemble generation. The forecast can be computed for real observations or observations generated artifically.
sampleTimeSeries

Sample Of Observational And Experimental Data For Forecast Verification As Area Averages
sampleDepthData

Sample of Experimental Data for Forecast Verification In Function Of Latitudes And Depths
sampleMap

Sample Of Observational And Experimental Data For Forecast Verification In Function Of Longitudes And Latitudes