prepare_sad: prepare a sad forecast for verification

Description Usage Arguments Details Value Examples

View source: R/lowlevel.R

Description

remove small values, apply log-transform, smooth borders, handle boundary conditions

Usage

1
2
prepare_sad(x, xmin = 0.1, log = TRUE, rsm = 0, Nx = NULL,
  Ny = NULL, boundaries = "pad")

Arguments

x

a list of 2 or more 2D matrices with equal sizes and no missing or inifinite values, as required by as.sadforecast

xmin

values smaller than xmin are set to zero

log

logical, do you want to log-transfrom the data? (recommended for precipitation)

rsm

number of pixels which are linearly smoothed at the edge

Nx

size to which the data is extended in x-direction

Ny

size to which the data is extended in y-direction

boundaries

how to handle the boundary conditions, either "pad", "mirror" or "periodic"

Details

the positions within the extended field where the original field resides are output as attributes "px", "py" of the result. The other input parameters are saved as attributes of the result as well.

Value

an object of class sadforecast which has been prepared in the desired way.

Examples

1
2
3
4
data( rrain )
ra <- list( rrain[2,4,,], rrain[3,9,,] )
ra <- prepare_sad( ra, rsm=0, Nx=256, boundaries="mirror", log=FALSE )
plot(ra)

sad documentation built on Nov. 8, 2020, 4:25 p.m.

Related to prepare_sad in sad...