| | 1 | = PDAF_diag_ensmean = |
| | 2 | |
| | 3 | This page documents the routine `PDAF_diag_ensmean` of PDAF, which was introduced with PDAF V3.0. |
| | 4 | |
| | 5 | This routine computes the ensemble mean state vector. |
| | 6 | |
| | 7 | The routine can be called in the pre/poststep routine of PDAF both before and after the analysis step to compute the ensemble statistics. |
| | 8 | |
| | 9 | The interface is the following: |
| | 10 | {{{ |
| | 11 | SUBROUTINE PDAF_diag_ensmean(dim, dim_ens, state, ens, status) |
| | 12 | }}} |
| | 13 | with the following arguments: |
| | 14 | {{{ |
| | 15 | INTEGER, INTENT(in) :: dim ! state dimension |
| | 16 | INTEGER, INTENT(in) :: dim_ens ! Ensemble size |
| | 17 | REAL, INTENT(inout) :: state(dim) ! ensemble mean state vector |
| | 18 | REAL, INTENT(in) :: ens(dim, dim_ens) ! State ensemble |
| | 19 | INTEGER, INTENT(out) :: status ! Status flag (0=success) |
| | 20 | }}} |