pyPDAF.PDAF.omi_likelihood_cb¶
- pyPDAF.PDAF.omi_likelihood_cb()¶
This is an internal PDAF-OMI function that is used as a call-back function to compute the likelihood of the observation for a given ensemble member according to the observations used for the local analysis for NETF or particle filter. This could be used to modify the observation variance when OMI is used with pyPDAF.PDAF.assimilate_xxx instead of pyPDAF.PDAF.omi_assimilate_xxx. See https://pdaf.awi.de/trac/wiki/U_likelihood_l
- Parameters:
step (int) – Current time step
dim_obs (int) – PE-local dimension of obs. vector
obs (ndarray[tuple[dim_obs], np.float64]) –
PE-local vector of observations
The array dimension dim_obs is PE-local dimension of obs. vector
resid (ndarray[tuple[dim_obs], np.float64]) –
Input vector of residuum
The array dimension dim_obs is PE-local dimension of obs. vector
lhood (float) – Output vector - log likelihood
- Returns:
lhood – Output vector - log likelihood
- Return type:
float