| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R8), | intent(inout), | dimension(:,:) | :: | tab |
2D array |
|
| type(moment_stat), | intent(out), | optional | :: | mx |
moment_stat statistical moments |
subroutine std_array2D(tab, mx) implicit none real(kind=R8), intent(inout), dimension(:,:) :: tab !! *2D array* type(moment_stat), intent(out), optional :: mx !! [[moment_stat]] *statistical moments* type(moment_stat) :: mx_tmp integer (kind=I4) :: nb_m if ( present(mx) ) then nb_m = 4 else nb_m = 2 endif call calc_moments(tab = tab, mx = mx_tmp, nb_mom = nb_m) tab = (tab - mx_tmp%mu) / mx_tmp%si if ( present(mx) ) mx = mx_tmp return endsubroutine std_array2D