| 1 | = U_init_obserr_f = |
| 2 | |
| 3 | The page documents the user-supplied call-back routine `U_init_obserr_f`. |
| 4 | |
| 5 | The routine `U_init_obserr_f` is a call-back routine that has to be provided by the user. In the simplified interface the predefined name of the routine is `init_obserr_f_pdaf`, but in the full interface, the user can choose the name of the routine. |
| 6 | This routine is used for generating synthetic observations with PDAF using [wiki:PDAF_generate_obs PDAF_generate_obs] or [wiki:PDAF_put_state_generate_obs PDAF_put_state_generate_obs]. |
| 7 | The routine is called by PDAF during the observation generation. Its purpose is to fill the provided vector of observation error standard deviations. |
| 8 | |
| 9 | The interface is the following: |
| 10 | {{{ |
| 11 | SUBROUTINE U_init_obserr_f(step, dim_obs_f, obs_f, rms_obs) |
| 12 | }}} |
| 13 | with |
| 14 | * `step` : `integer, intent(in)`[[BR]] Current time step |
| 15 | * `dim_obs_f` : `integer, intent(in)`[[BR]] Size of full observation vector |
| 16 | * `obs_f` : `real, intent(in), dimension(dim_obs_f)`[[BR]] Full vector of observations |
| 17 | * `rms_obs` : `real, intent(out), dimension(dim_obs_f)`[[BR]] Full vector of observation error standard deviations |
| 18 | |
| 19 | Notes: |
| 20 | * The routines handles the 'full' observation vector as in localizated filters. As described for the observation generation functionality one can also use it for global filters. In this case the 'full' vector would just contain the observations local to a process sub-domain. |
| 21 | * The observation vector `obs_f` is provided to the routine for the case that the observation error is relative to the value of the observations. |