pyPDAF.PDAFomi.set_domainsize

pyPDAF.PDAFomi.set_domainsize()

Setting the domain periodicity attribute of obs_f for i-th observation type. This property is optional unless localisation is used.

The function is typically used in user-supplied function py__init_dim_obs_pdaf.

domainsize(ncoord) specifies the size of the domain in each spatial dimension. This information is used to compute the Cartesian disance with periodic boundary. That is disttype = 1 or 11 Domain size must be positive. If the value of one dimension is <=0, no periodicity is assumed in that dimension.

Parameters:
  • i_obs (int) – index of observations

  • ncoord (int) – Number of spatial dimensions

  • domainsize (ndarray[tuple[ncoord, ...], np.float64]) – Size of the domain in each dimension The array dimension ncoord is state dimension