| 1 | = PDAF_diag_stddev = |
| 2 | |
| 3 | This page documents the routine `PDAF_diag_stddev` of PDAF, which was introduced with PDAF V3.0. |
| 4 | |
| 5 | This routine computes mean ensemble standard deviation taking into account domain-decomposition for parallelized models. |
| 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. This variant computes the standard deviation for the provided ensemble over the full decomposed domain of a parallel model. The variant without parallelization is [wiki:PDAF_diag_stddev_nompi]. |
| 8 | |
| 9 | The interface is the following: |
| 10 | {{{ |
| 11 | SUBROUTINE PDAF_diag_stddev(dim, dim_ens, & |
| 12 | state, ens, stddev, do_mean, COMM_filter, status) |
| 13 | }}} |
| 14 | with the following arguments: |
| 15 | {{{ |
| 16 | INTEGER, INTENT(in) :: dim_p ! process-local state dimension |
| 17 | INTEGER, INTENT(in) :: dim_ens ! Ensemble size |
| 18 | REAL, INTENT(inout) :: state_p(dim_p) ! process-local state vector |
| 19 | REAL, INTENT(in) :: ens_p(dim_p, dim_ens) ! process-local state ensemble |
| 20 | REAL, INTENT(out) :: stddev_g ! Global mean standard deviation of ensemble |
| 21 | INTEGER, INTENT(in) :: do_mean ! Whether to compute ensemble mean |
| 22 | INTEGER, INTENT(in) :: COMM_filter ! Filter communicator |
| 23 | INTEGER, INTENT(out) :: status ! Status flag (0=success) |
| 24 | }}} |
| 25 | |
| 26 | **Note:** |
| 27 | * The ensemble standard deviation is a common measure of the estimate model root mean square error. It is typically computed in `prepoststep_pdaf` to monitor the assimilation process. |