Skip to contents

This function split long vector and covariance matrix into blocks corresponding to the localization.

Usage

build.block.xy(
  settings,
  block.list.all,
  X,
  obs.mean,
  obs.cov,
  t,
  dist.att = NULL,
  pD = NULL,
  V0 = NULL
)

Arguments

settings

pecan standard multi-site settings list.

block.list.all

List contains nt empty sub-elements.

X

A matrix contains ensemble forecasts.

obs.mean

List of dataframe of observation means, named with observation datetime.

obs.cov

List of covariance matrices of state variables , named with observation datetime.

t

time point.

dist.att

the disturbance matrix prescribing the prior biomass reductions due to disturbance (list(agb.bio.reduce (len = N site), lai.bio.reduce (len = N site))). Default is NULL.

pD

prior of disturbed Vs. undisturbed probability. Default is NULL.

V0

numeric matrix (dim B*B): covariance to be used for the disturbance model. Default is NULL.

Details

This function will add data and constants into each block that are needed for the MCMC sampling.

Author

Dongchen Zhang