pyPDAF.PDAF.gather_obs_f_flex

pyPDAF.PDAF.gather_obs_f_flex()

Gather full observation from processor local observation without PDAF-internal info.

In the local filters (LESKTF, LETKF, LSEIK, LNETF) this function returns the full observation from process-local observation.

This function has a similar functionality as pyPDAF.PDAF.gather_obs_f(), but it does not depend on PDAF-internal observation dimension information, which is specified once pyPDAF.PDAF.gather_dim_obs_f() is executed.

This function can also be used as a generic function to gather any 2D arrays where the second dimension should be concatenated.

Parameters:
  • dim_obs_p (int) – PE-local observation dimension

  • dim_obs_f (int) – Full observation dimension

  • obs_p (ndarray[np.float64, ndim=1]) – PE-local vector Array shape: (dim_obs_p)

Returns:

  • obs_f (ndarray[np.float64, ndim=1]) – Full gathered vector Array shape: (dim_obs_f)

  • status (int) – Status flag: (0) no error