Merge remote-tracking branch 'origin/release-v4.5.2'
[WRF.git] / var / da / da_airep / da_airep.f90
blob13c537beaec3c410718725a18e4328071bd95dfd
1 module da_airep
3 use module_domain, only : domain
5 use da_control, only : obs_qc_pointer,max_ob_levels,missing_r, missing_data, &
6 check_max_iv_print, check_max_iv_unit, v_interp_p, v_interp_h, &
7 check_max_iv, missing, max_error_uv, max_error_t, max_error_q, rootproc, &
8 airep, anal_type_verify, kms,kme,kts,kte, trace_use_dull, &
9 position_lev_dependant,qcstat_conv_unit,ob_vars, fails_error_max, &
10 convert_fd2uv, convert_uv2fd, max_error_spd, max_error_dir, max_omb_spd, max_omb_dir, pi, qc_rej_both, &
11 wind_sd_airep, wind_stats_sd, write_rej_obs_conv
12 use da_grid_definitions, only : da_ffdduv, da_ffdduv_model,da_ffdduv_diagnose
13 use da_physics, only : da_uv_to_sd_lin, da_uv_to_sd_adj
14 use da_define_structures, only : maxmin_type, iv_type, y_type, jo_type, &
15 bad_data_type, x_type, number_type, bad_data_type
16 use da_interpolation, only : da_interp_lin_3d, da_to_zk, &
17 da_interp_lin_3d_adj
18 use da_par_util, only : da_proc_stats_combine
19 use da_par_util1, only : da_proc_sum_int
20 use da_statistics, only : da_stats_calculate
21 use da_tools, only : da_max_error_qc, da_residual, da_convert_zk, da_get_print_lvl
22 use da_tracing, only : da_trace_entry, da_trace_exit
25 ! The "stats_airep_type" is ONLY used locally in da_airep:
27 type residual_airep1_type
28 real :: u ! u-wind.
29 real :: v ! v-wind.
30 real :: t ! temperature
31 real :: q ! q
32 end type residual_airep1_type
34 type maxmin_airep_stats_type
35 type (maxmin_type) :: u, v, t, q
36 end type maxmin_airep_stats_type
38 type stats_airep_type
39 type (maxmin_airep_stats_type) :: maximum, minimum
40 type (residual_airep1_type) :: average, rms_err
41 end type stats_airep_type
43 contains
45 #include "da_ao_stats_airep.inc"
46 #include "da_jo_and_grady_airep.inc"
47 #include "da_residual_airep.inc"
48 #include "da_oi_stats_airep.inc"
49 #include "da_print_stats_airep.inc"
50 #include "da_transform_xtoy_airep.inc"
51 #include "da_transform_xtoy_airep_adj.inc"
52 #include "da_check_max_iv_airep.inc"
53 #include "da_get_innov_vector_airep.inc"
54 #include "da_calculate_grady_airep.inc"
56 end module da_airep