updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / var / da / da_tamdar / da_tamdar.f90
blob34e238c1c360ad1b1c3e50144e2b5d352454aae3
1 module da_tamdar
3 use da_control, only : obs_qc_pointer,max_ob_levels,missing_r, &
4 check_max_iv_print, check_max_iv_unit, v_interp_p, v_interp_h, &
5 check_max_iv, missing_data, max_error_uv, max_error_t, rootproc, &
6 max_error_p,max_error_q, sfc_assi_options, &
7 !, no_buddies, fails_error_max, &
8 ! fails_buddy_check, check_buddy, check_buddy_print, check_buddy_unit, &
9 ! buddy_weight , max_buddy_uv, max_buddy_t, max_buddy_p, max_buddy_rh, &
10 max_stheight_diff,test_dm_exact, anal_type_verify, &
11 kms,kme,kts,kte,sfc_assi_options_1,sfc_assi_options_2, num_procs, comm, &
12 trace_use_dull, tamdar, tamdar_sfc, position_lev_dependant, max_ext_its, &
13 qcstat_conv_unit,ob_vars, fails_error_max, &
14 convert_fd2uv,convert_uv2fd,max_error_spd,max_error_dir,max_omb_spd,max_omb_dir,pi,qc_rej_both, &
15 wind_sd_tamdar, wind_stats_sd, write_rej_obs_conv
16 use da_grid_definitions, only : da_ffdduv,da_ffdduv_model, da_ffdduv_diagnose
17 use da_define_structures, only : maxmin_type, iv_type, y_type, jo_type, &
18 bad_data_type, x_type, number_type, bad_data_type
19 use module_domain, only : domain
20 use da_interpolation, only : da_to_zk, da_interp_lin_3d, &
21 da_interp_lin_3d_adj, da_interp_lin_2d, da_interp_lin_2d_adj, da_interp_lin_2d_partial
22 use da_statistics, only : da_stats_calculate
23 use da_tools, only : da_max_error_qc, da_residual, da_obs_sfc_correction,da_convert_zk, &
24 da_buddy_qc, da_get_print_lvl
26 use da_par_util, only : da_proc_stats_combine
27 use da_par_util1, only : da_proc_sum_int
29 use da_physics, only : da_sfc_pre, da_transform_xtopsfc, &
30 da_transform_xtopsfc_adj, da_uv_to_sd_lin, da_uv_to_sd_adj
32 use da_par_util, only : da_proc_stats_combine
33 use da_par_util1, only : da_proc_sum_int
34 use da_tracing, only : da_trace_entry, da_trace_exit
36 ! The "stats_tamdar_type" is ONLY used locally in da_tamdar:
38 type residual_tamdar1_type
39 real :: u ! u-wind.
40 real :: v ! v-wind.
41 real :: t ! temperature
42 real :: q ! specific humidity
43 end type residual_tamdar1_type
45 type maxmin_tamdar_stats_type
46 type (maxmin_type) :: u, v, t, q
47 end type maxmin_tamdar_stats_type
49 type stats_tamdar_type
50 type (maxmin_tamdar_stats_type) :: maximum, minimum
51 type (residual_tamdar1_type) :: average, rms_err
52 end type stats_tamdar_type
54 ! The "stats_tamdar_sfc_type" is ONLY used locally in da_tamdar_sfc:
56 type residual_tamdar_sfc1_type
57 real :: u ! u-wind.
58 real :: v ! v-wind.
59 real :: t ! temperature
60 real :: p ! pressure
61 real :: q ! specific humidity
62 end type residual_tamdar_sfc1_type
64 type maxmin_tamdar_sfc_stats_type
65 type (maxmin_type) :: u, v, t, p, q
66 end type maxmin_tamdar_sfc_stats_type
68 type stats_tamdar_sfc_type
69 type (maxmin_tamdar_sfc_stats_type) :: maximum, minimum
70 type (residual_tamdar_sfc1_type) :: average, rms_err
71 end type stats_tamdar_sfc_type
73 contains
75 #include "da_ao_stats_tamdar.inc"
76 #include "da_jo_and_grady_tamdar.inc"
77 #include "da_jo_tamdar_uvtq.inc"
78 #include "da_residual_tamdar.inc"
79 #include "da_oi_stats_tamdar.inc"
80 #include "da_print_stats_tamdar.inc"
81 #include "da_transform_xtoy_tamdar.inc"
82 #include "da_transform_xtoy_tamdar_adj.inc"
83 #include "da_check_max_iv_tamdar.inc"
84 #include "da_get_innov_vector_tamdar.inc"
85 #include "da_calculate_grady_tamdar.inc"
86 !#include "da_check_buddy_tamdar.inc"
88 #include "da_ao_stats_tamdar_sfc.inc"
89 #include "da_jo_and_grady_tamdar_sfc.inc"
90 #include "da_jo_tamdar_sfc_uvtq.inc"
91 #include "da_residual_tamdar_sfc.inc"
92 #include "da_oi_stats_tamdar_sfc.inc"
93 #include "da_print_stats_tamdar_sfc.inc"
94 #include "da_transform_xtoy_tamdar_sfc.inc"
95 #include "da_transform_xtoy_tamdar_sfc_adj.inc"
96 #include "da_get_innov_vector_tamdar_sfc.inc"
97 #include "da_check_max_iv_tamdar_sfc.inc"
98 #include "da_calculate_grady_tamdar_sfc.inc"
100 end module da_tamdar