Ano {s2dv}R Documentation

Compute forecast or observation anomalies

Description

This function computes anomalies from a multidimensional data array and a climatology array.

Usage

Ano(data, clim, ncores = NULL)

Arguments

data

A numeric array with named dimensions, representing the model or observational data to be calculated the anomalies. It should involve all the dimensions in parameter 'clim', and it can have more other dimensions.

clim

A numeric array with named dimensions, representing the climatologies to be deducted from parameter 'data'. It can be generated by Clim(). The dimensions should all be involved in parameter 'data' with the same length.

ncores

An integer indicating the number of cores to use for parallel computation. The default value is NULL.

Value

An array with same dimensions as parameter 'data'.

Examples

# Load sample data as in Load() example:
example(Load)
clim <- Clim(sampleData$mod, sampleData$obs)
ano_exp <- Ano(sampleData$mod, clim$clim_exp)
ano_obs <- Ano(sampleData$obs, clim$clim_obs)
## Not run: 
PlotAno(ano_exp, ano_obs, startDates, 
       toptitle = 'Anomaly', ytitle = c('K', 'K', 'K'), 
       legends = 'ERSST', biglab = FALSE)

## End(Not run)

[Package s2dv version 2.0.0 Index]