a list of equally sized matrices, the first element is assumed to be the observation
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, has to be a whole power of 2
Ny
size to which the data is extended in y-direction, has to be a whole power of 2
J
largest scale considered
boundaries
how to handle the boundary conditions, either "pad", "mirror" or "periodic"
direction
if TRUE, scale and direction are corrected, otherwise only scale
Value
an object of class sadforecast
Details
The algorithm performs the following steps:
remove values below xmin
if log=TRUE log-transform all fields
set all fields to zero mean, unit variance
apply dtcwt to all fields
loop over forecasts and scales. If direction=TRUE loop over the six directions. Multiply forecast energy at each location by the ratio of total observed energy to total forecast energy at that scale (and possibly direction)
apply idtcwt to all forecasts
reset means and variance of the forecasts to their original values