pyPDAF.PDAF.local_g2l_cb¶
- pyPDAF.PDAF.local_g2l_cb()¶
Project a global to a local state vector for the localized filters. This is the full callback function to be used internally. The mapping is done using the index vector id_lstate_in_pstate that is initialised in pyPDAF.PDAF.local_set_indices.
- Parameters:
step (int) – Current time step
domain_p (int) – Current local analysis domain
dim_p (int) – PE-local full state dimension
state_p (ndarray[tuple[dim_p], np.float64]) –
PE-local full state vector
The array dimension dim_p is PE-local full state dimension.
dim_l (int) – Local state dimension
state_l (ndarray[tuple[dim_l], np.float64]) –
State vector on local analysis domain
The array dimension dim_l is Local state dimension.
- Returns:
state_l – State vector on local analysis domain
The array dimension dim_l is Local state dimension
- Return type:
ndarray[tuple[dim_l], np.float64]