Learn R Programming

⚠️There's a newer version (2.1.0) of this package.Take me there.

s2dv (version 2.0.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

390

Version

2.0.0

License

GPL-3

Maintainer

An-Chi Ho

Last Published

October 11th, 2023

Functions in s2dv (2.0.0)

Cluster

K-means Clustering
Composite

Compute composites
CRPSS

Compute the Continuous Ranked Probability Skill Score
Clim

Compute Bias Corrected Climatologies
ConfigApplyMatchingEntries

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

Add Modify Or Remove Variable Definitions In Configuration
ConfigEditEntry

Add, Remove Or Edit Entries In The Configuration
ConfigShowSimilarEntries

Find Similar Entries In Tables Of Datasets
ConfigFileOpen

Functions To Create Open And Save Configuration File
ConfigShowTable

Show Configuration Tables And Definitions
Consist_Trend

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

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

Compute the correlation difference and its significance
ColorBar

Draws a Color Bar
EuroAtlanticTC

Teleconnection indices in European Atlantic Ocean region
Filter

Filter frequency peaks from an array
GMST

Compute the Global Mean Surface Temperature (GMST) anomalies
GSAT

Compute the Global Surface Air Temperature (GSAT) anomalies
EOF

Area-weighted empirical orthogonal function analysis using SVD
Eno

Compute effective sample size with classical method
InsertDim

Add a named dimension to an array
MeanDims

Average an array along multiple dimensions
MSSS

Compute mean square error skill score
GetProbs

Compute probabilistic forecasts or the corresponding observations
LeapYear

Checks Whether A Year Is Leap Year
NAO

Compute the North Atlantic Oscillation (NAO) Index
Histo2Hindcast

Chunk long simulations for comparison with hindcasts
Load

Loads Experimental And Observational Data
Persistence

Compute persistence
MSE

Compute mean square error
PlotClim

Plots Climatologies
PlotLayout

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

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

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

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

Plot Anomaly time series
PlotSection

Plots A Vertical Section
PlotStereoMap

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

Plot two scores with confidence intervals in a common plot
PlotACC

Plot Plumes/Timeseries Of Anomaly Correlation Coefficients
RPSS

Compute the Ranked Probability Skill Score
RandomWalkTest

Random Walk test for skill differences
PlotVsLTime

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

Project anomalies onto modes of variability
RMS

Compute root mean square error
RMSSS

Compute root mean square error skill score
ProbBins

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

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

Compute the ratio between the ensemble spread and RMSE
Reorder

Reorder the dimension of an array
RPS

Compute the Ranked Probability Score
ROCSS

Compute the Relative Operating Characteristic Skill Score
RatioRMS

Compute the ratio between the RMSE of two experiments
SPOD

Compute the South Pacific Ocean Dipole (SPOD) index
RatioPredictableComponents

Calculate ratio of predictable components (RPC)
Season

Compute seasonal mean or other calculations
ResidualCorr

Compute the residual correlation and its significance
SignalNoiseRatio

Calculate Signal-to-noise ratio
Regression

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

Compute the Tripole Index (TPI) for the Interdecadal Pacific Oscillation (IPO)
StatSeasAtlHurr

Compute estimate of seasonal mean of Atlantic hurricane activity
Smoothing

Smooth an array along one dimension
Spectrum

Estimate frequency spectrum
Spread

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

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

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

Compute the trend
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.
UltimateBrier

Compute Brier scores
clim.palette

Generate Climate Color Palettes
sampleMap

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

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

Interpolate arrays with longitude and latitude dimensions using CDO
CRPS

Compute the Continuous Ranked Probability Score
Ano_CrossValid

Compute anomalies in cross-validation mode
Ano

Compute forecast or observation anomalies
ACC

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

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

Compute the Atlantic Multidecadal Variability (AMV) index
AnimateMap

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

Compute the Mean Bias
AbsBiasSS

Compute the Absolute Mean Bias Skill Score