Merge remote-tracking branch 'origin/release-v4.5.2'
[WRF.git] / var / da / da_pilot / da_pilot.f90
blob5517239c365e827ebc2864bb6c4d6008383275d8
1 module da_pilot
3 use module_domain, only : domain
5 use da_control, only : obs_qc_pointer,max_ob_levels,missing_r, &
6 check_max_iv_print, check_max_iv_unit, v_interp_p, v_interp_h, &
7 check_max_iv, missing_data, max_error_uv, max_error_t, rootproc, &
8 pilot, max_error_p,max_error_q, trace_use_dull,fails_error_max, &
9 max_stheight_diff, anal_type_verify, kms,kme,kts,kte,ob_vars,qcstat_conv_unit, &
10 convert_fd2uv, convert_uv2fd, max_error_spd, max_error_dir, &
11 max_omb_spd, max_omb_dir, pi, qc_rej_both, &
12 wind_sd_pilot, wind_stats_sd, write_rej_obs_conv
13 use da_grid_definitions, only : da_ffdduv, da_ffdduv_model, da_ffdduv_diagnose
14 use da_physics, only : da_uv_to_sd_lin, da_uv_to_sd_adj
15 use da_define_structures, only : maxmin_type, iv_type, y_type, jo_type, &
16 bad_data_type, x_type, number_type, bad_data_type
17 use da_interpolation, only : da_interp_lin_3d, da_to_zk, &
18 da_interp_lin_3d_adj
19 use da_par_util, only : da_proc_stats_combine
20 use da_par_util1, only : da_proc_sum_int
21 use da_statistics, only : da_stats_calculate
22 use da_tools, only : da_max_error_qc, da_residual, da_convert_zk,da_get_print_lvl
23 use da_tracing, only : da_trace_entry, da_trace_exit
25 ! The "stats_pilot_type" is ONLY used locally in da_pilot:
27 type residual_pilot1_type
28 real :: u ! u-wind.
29 real :: v ! v-wind.
30 end type residual_pilot1_type
32 type maxmin_pilot_stats_type
33 type (maxmin_type) :: u, v
34 end type maxmin_pilot_stats_type
36 type stats_pilot_type
37 type (maxmin_pilot_stats_type) :: maximum, minimum
38 type (residual_pilot1_type) :: average, rms_err
39 end type stats_pilot_type
41 contains
43 #include "da_ao_stats_pilot.inc"
44 #include "da_jo_and_grady_pilot.inc"
45 #include "da_residual_pilot.inc"
46 #include "da_oi_stats_pilot.inc"
47 #include "da_print_stats_pilot.inc"
48 #include "da_transform_xtoy_pilot.inc"
49 #include "da_transform_xtoy_pilot_adj.inc"
50 #include "da_check_max_iv_pilot.inc"
51 #include "da_get_innov_vector_pilot.inc"
52 #include "da_calculate_grady_pilot.inc"
54 end module da_pilot