pyPDAF.PDAF3.prepost¶
- pyPDAF.PDAF3.prepost(collect_state, distribute_state, prepoststep, next_observation, outflag) int¶
Run PDAF3 pre/post processing in an externally managed model loop.
This wrapper calls PDAF3’s pre/post helper without running a full analysis routine. It is useful when a Python or model-side time loop manages the forecast progression but still wants PDAF to collect the state, distribute state values, run the user pre/post callback, and determine the next observation time.
- Parameters:
py__collect_state_pdaf (Callable) – Callback that collects the model state into PDAF’s state vector. See
pyPDAF.pdaf_c_cb_interface.c__collect_state_pdaf().py__distribute_state_pdaf (Callable) – Callback that distributes a PDAF state vector back to the model. See
pyPDAF.pdaf_c_cb_interface.c__distribute_state_pdaf().py__prepoststep_pdaf (Callable) – Callback executed before or after PDAF processing. See
pyPDAF.pdaf_c_cb_interface.c__prepoststep_pdaf().py__next_observation_pdaf (Callable) – Callback that returns the number of model steps until the next observation time. See
pyPDAF.pdaf_c_cb_interface.c__next_observation_pdaf().outflag (int) – PDAF status flag supplied to the routine.
- Returns:
outflag – Updated PDAF status flag.
- Return type:
int