SCALE-RM
|
module Statistics More...
Functions/Subroutines | |
subroutine, public | statistics_setup |
Setup. More... | |
subroutine | statistics_total_2d (IA, IS, IE, JA, JS, JE, var, varname, area, total, log_suppress, global, mean, sum) |
Calc domain sum and area-weighted mean. More... | |
subroutine | statistics_total_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, var, varname, vol, total, log_suppress, global, mean, sum) |
Calc domain sum and volume-weighted mean. More... | |
subroutine | statistics_horizontal_mean_2d (IA, IS, IE, JA, JS, JE, var, area, varmean) |
Calc horizontal mean value. More... | |
subroutine | statistics_horizontal_mean_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, var, area, varmean) |
subroutine | statistics_horizontal_min_2d (IA, IS, IE, JA, JS, JE, var, varmin) |
Calc horizontal minimum value. More... | |
subroutine | statistics_horizontal_min_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, var, varmin) |
subroutine | statistics_horizontal_max_2d (IA, IS, IE, JA, JS, JE, var, varmax) |
Calc horizontal maximum value. More... | |
subroutine | statistics_horizontal_max_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, var, varmax) |
subroutine | statistics_detail_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, VA, varname, var, local) |
Search global maximum & minimum value. More... | |
subroutine | statistics_detail_2d (IA, IS, IE, JA, JS, JE, VA, varname, var, local) |
real(rp) function | statistics_summation_1d (IA, ARRAY, UNDEF) |
real(rp) function, public | statistics_covariance (IA1, IA2, ARRAY1, ARRAY2, UNDEF) |
real(rp) function, public | statistics_correlation (IA1, IA2, ARRAY1, ARRAY2, UNDEF) |
real function, public | statistics_regression (IA1, IA2, ARRAY1, ARRAY2, UNDEF) |
real(rp) function, public | statistics_lag_correlation (IA1, IA2, ARRAY1, ARRAY2, LAG, UNDEF) |
real(rp) function, public | statistics_partial_correlation (IA1, IA2, IA3, ARRAY1, ARRAY2, ARRAY3, UNDEF) |
real(rp) function, dimension(ia), public | statistics_undef_replace (IA, ARRAY, UNDEF1, UNDEF2) |
real(rp) function, dimension(ia1), public | statistics_undef_embed (IA1, IA2, ARRAY1, ARRAY2, UNDEF) |
integer function, public | statistics_undef_arraysize (IA1, IA2, ARRAY1, ARRAY2, UNDEF) |
Variables | |
logical, public | statistics_checktotal = .false. |
calc&report variable totals to logfile? More... | |
module Statistics
name | type | default value | comment |
---|---|---|---|
STATISTICS_CHECKTOTAL | logical | .false. | calc&report variable totals to logfile? |
STATISTICS_USE_GLOBALCOMM | logical | .false. | calculate total with global communication? |
subroutine, public scale_statistics::statistics_setup |
Setup.
Definition at line 126 of file scale_statistics.F90.
References scale_comm_cartesc::comm_setup(), scale_io::io_fid_conf, scale_prc::prc_abort(), and statistics_checktotal.
Referenced by mod_rm_driver::rm_driver(), and mod_rm_prep::rm_prep().
subroutine scale_statistics::statistics_total_2d | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ia,ja), intent(in) | var, | ||
character(len=*), intent(in) | varname, | ||
real(rp), dimension(ia,ja), intent(in) | area, | ||
real(rp), intent(in) | total, | ||
logical, intent(in), optional | log_suppress, | ||
logical, intent(in), optional | global, | ||
real(rp), intent(out), optional | mean, | ||
real(dp), intent(out), optional | sum | ||
) |
Calc domain sum and area-weighted mean.
[in] | var | 3D value |
[in] | varname | name of item |
[in] | area | area of the grid cell |
[in] | total | total area |
[in] | log_suppress | suppress log output |
[in] | global | global or local sum |
[out] | mean | area-weighted mean |
[out] | sum | domain sum |
Definition at line 175 of file scale_statistics.F90.
References scale_const::const_eps, scale_const::const_undef, scale_prc::prc_abort(), scale_prc::prc_myrank, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_total_3d | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
integer, intent(in) | IA, | ||
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ka,ia,ja), intent(in) | var, | ||
character(len=*), intent(in) | varname, | ||
real(rp), dimension(ka,ia,ja), intent(in) | vol, | ||
real(rp), intent(in) | total, | ||
logical, intent(in), optional | log_suppress, | ||
logical, intent(in), optional | global, | ||
real(rp), intent(out), optional | mean, | ||
real(dp), intent(out), optional | sum | ||
) |
Calc domain sum and volume-weighted mean.
[in] | var | 3D value |
[in] | varname | name of item |
[in] | vol | volume of the grid cell |
[in] | total | total volume |
[in] | log_suppress | suppress log output |
[in] | global | global or local sum |
[out] | mean | volume/area-weighted total |
[out] | sum | domain sum |
Definition at line 293 of file scale_statistics.F90.
References scale_const::const_eps, scale_const::const_undef, scale_prc::prc_abort(), scale_prc::prc_myrank, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_mean_2d | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension (ia,ja), intent(in) | var, | ||
real(rp), dimension(ia,ja), intent(in) | area, | ||
real(rp), intent(out) | varmean | ||
) |
Calc horizontal mean value.
Definition at line 423 of file scale_statistics.F90.
References scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_mean_3d | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
integer, intent(in) | IA, | ||
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension (ka,ia,ja), intent(in) | var, | ||
real(rp), dimension( ia,ja), intent(in) | area, | ||
real(rp), dimension(ka), intent(out) | varmean | ||
) |
Definition at line 481 of file scale_statistics.F90.
References scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_min_2d | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ia,ja), intent(in) | var, | ||
real(rp), intent(out) | varmin | ||
) |
Calc horizontal minimum value.
Definition at line 568 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_const::const_huge, scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_min_3d | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
integer, intent(in) | IA, | ||
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ka,ia,ja), intent(in) | var, | ||
real(rp), dimension(ka), intent(out) | varmin | ||
) |
Definition at line 624 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_const::const_huge, scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_max_2d | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ia,ja), intent(in) | var, | ||
real(rp), intent(out) | varmax | ||
) |
Calc horizontal maximum value.
Definition at line 716 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_const::const_huge, scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_max_3d | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
integer, intent(in) | IA, | ||
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ka,ia,ja), intent(in) | var, | ||
real(rp), dimension(ka), intent(out) | varmax | ||
) |
Definition at line 772 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_const::const_huge, scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_detail_3d | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
integer, intent(in) | IA, | ||
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
integer, intent(in) | VA, | ||
character(len=*), dimension(va), intent(in) | varname, | ||
real(rp), dimension(ka,ia,ja,va), intent(in) | var, | ||
logical, intent(in), optional | local | ||
) |
Search global maximum & minimum value.
[in] | varname | name of item |
[in] | var | values |
[in] | local | calc in local node |
Definition at line 864 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_prc::prc_nprocs, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_detail_2d | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
integer, intent(in) | VA, | ||
character(len=*), dimension(va), intent(in) | varname, | ||
real(rp), dimension(ia,ja,va), intent(in) | var, | ||
logical, intent(in), optional | local | ||
) |
[in] | varname | name of item |
[in] | var | values |
Definition at line 1002 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_prc::prc_nprocs, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
real(rp) function scale_statistics::statistics_summation_1d | ( | integer, intent(in) | IA, |
real(rp), dimension(ia), intent(in) | ARRAY, | ||
real(rp), intent(in), optional | UNDEF | ||
) |
real(rp) function, public scale_statistics::statistics_covariance | ( | integer, intent(in) | IA1, |
integer, intent(in) | IA2, | ||
real(rp), dimension(ia1), intent(in) | ARRAY1, | ||
real(rp), dimension(ia2), intent(in) | ARRAY2, | ||
real(rp), intent(in), optional | UNDEF | ||
) |
Definition at line 1671 of file scale_statistics.F90.
References scale_precision::rp, statistics_undef_arraysize(), and statistics_undef_embed().
Referenced by statistics_correlation().
real(rp) function, public scale_statistics::statistics_correlation | ( | integer, intent(in) | IA1, |
integer, intent(in) | IA2, | ||
real(rp), dimension(ia1), intent(in) | ARRAY1, | ||
real(rp), dimension(ia2), intent(in) | ARRAY2, | ||
real(rp), intent(in), optional | UNDEF | ||
) |
Definition at line 1739 of file scale_statistics.F90.
References statistics_covariance().
Referenced by statistics_lag_correlation(), statistics_partial_correlation(), and statistics_regression().
real function, public scale_statistics::statistics_regression | ( | integer, intent(in) | IA1, |
integer, intent(in) | IA2, | ||
real(rp), dimension(ia1), intent(in) | ARRAY1, | ||
real(rp), dimension(ia2), intent(in) | ARRAY2, | ||
real(rp), intent(in), optional | UNDEF | ||
) |
Definition at line 1786 of file scale_statistics.F90.
References statistics_correlation().
real(rp) function, public scale_statistics::statistics_lag_correlation | ( | integer, intent(in) | IA1, |
integer, intent(in) | IA2, | ||
real(rp), dimension(ia1), intent(in) | ARRAY1, | ||
real(rp), dimension(ia2), intent(in) | ARRAY2, | ||
integer, intent(in) | LAG, | ||
real(rp), intent(in), optional | UNDEF | ||
) |
Definition at line 1833 of file scale_statistics.F90.
References statistics_correlation().
real(rp) function, public scale_statistics::statistics_partial_correlation | ( | integer, intent(in) | IA1, |
integer, intent(in) | IA2, | ||
integer, intent(in) | IA3, | ||
real(rp), dimension(ia1), intent(in) | ARRAY1, | ||
real(rp), dimension(ia2), intent(in) | ARRAY2, | ||
real(rp), dimension(ia3), intent(in) | ARRAY3, | ||
real(rp), intent(in), optional | UNDEF | ||
) |
Definition at line 1870 of file scale_statistics.F90.
References statistics_correlation().
real(rp) function, dimension(ia), public scale_statistics::statistics_undef_replace | ( | integer, intent(in) | IA, |
real(rp), dimension(ia), intent(in) | ARRAY, | ||
real(rp), intent(in) | UNDEF1, | ||
real(rp), intent(in) | UNDEF2 | ||
) |
Definition at line 1928 of file scale_statistics.F90.
real(rp) function, dimension(ia1), public scale_statistics::statistics_undef_embed | ( | integer, intent(in) | IA1, |
integer, intent(in) | IA2, | ||
real(rp), dimension(ia1), intent(in) | ARRAY1, | ||
real(rp), dimension(ia2), intent(in) | ARRAY2, | ||
real(rp), intent(in), optional | UNDEF | ||
) |
Definition at line 1960 of file scale_statistics.F90.
Referenced by statistics_covariance().
integer function, public scale_statistics::statistics_undef_arraysize | ( | integer, intent(in) | IA1, |
integer, intent(in) | IA2, | ||
real(rp), dimension(ia1), intent(in) | ARRAY1, | ||
real(rp), dimension(ia2), intent(in) | ARRAY2, | ||
real(rp), intent(in), optional | UNDEF | ||
) |
Definition at line 1997 of file scale_statistics.F90.
Referenced by statistics_covariance().
logical, public scale_statistics::statistics_checktotal = .false. |
calc&report variable totals to logfile?
Definition at line 109 of file scale_statistics.F90.
Referenced by mod_atmos_phy_ae_driver::atmos_phy_ae_driver_calc_tendency(), mod_atmos_phy_ae_vars::atmos_phy_ae_vars_reset_diagnostics(), mod_atmos_phy_bl_driver::atmos_phy_bl_driver_calc_tendency(), mod_atmos_phy_ch_driver::atmos_phy_ch_driver_calc_tendency(), mod_atmos_phy_ch_vars::atmos_phy_ch_vars_check(), mod_atmos_phy_cp_driver::atmos_phy_cp_driver_calc_tendency(), mod_atmos_phy_cp_vars::atmos_phy_cp_vars_check(), mod_atmos_phy_lt_vars::atmos_phy_lt_vars_restart_read(), mod_atmos_phy_lt_vars::atmos_phy_lt_vars_restart_write(), mod_atmos_phy_mp_driver::atmos_phy_mp_driver_calc_tendency(), mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency(), mod_atmos_phy_sf_driver::atmos_phy_sf_driver_calc_tendency(), mod_atmos_phy_tb_driver::atmos_phy_tb_driver_calc_tendency(), mod_atmos_vars::atmos_vars_check(), mod_land_vars::land_vars_check(), mod_ocean_driver::ocean_driver_calc_tendency(), mod_ocean_vars::ocean_vars_check(), statistics_setup(), mod_urban_driver::urban_driver_calc_tendency(), and mod_urban_vars::urban_vars_check().