prepare_sad {sad} | R Documentation |
prepare a sad forecast for verification
Description
remove small values, apply log-transform, smooth borders, handle boundary conditions
Usage
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 |
xmin |
values smaller than |
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
data( rrain )
ra <- list( rrain[2,4,,], rrain[3,9,,] )
ra <- prepare_sad( ra, rsm=0, Nx=256, boundaries="mirror", log=FALSE )
plot(ra)