updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / var / da / da_ssmi / da_check_max_iv_ssmi_tb.inc
blob08b41fad3d956b1b7131c0eb205793e8fa1783c2
1 subroutine da_check_max_iv_ssmi_tb(iv, it)  
3    !-----------------------------------------------------------------------
4    ! Purpose: TBD
5    !-----------------------------------------------------------------------
7    implicit none
9    type(iv_type), intent(inout) :: iv
10    integer,       intent(in)    :: it
12    logical :: failed
13    integer :: n
15    if (trace_use) call da_trace_entry("da_check_max_iv_ssmi_tb")
17    !---------------------------------------------------------------------------
18    ! [1.0] Perform maximum innovation vector check:
19    !---------------------------------------------------------------------------
21    do n=iv%info(ssmi_tb)%n1, iv%info(ssmi_tb)%n2
22       ! Tb19h
24       call da_max_error_qc(it, iv%info(ssmi_tb), n, iv%ssmi_tb(n)%tb19h, max_error_tb, failed)
26       ! Tb19v
28       call da_max_error_qc(it, iv%info(ssmi_tb), n, iv%ssmi_tb(n)%tb19v, max_error_tb, failed)
30       ! Tb22v
32       call da_max_error_qc(it, iv%info(ssmi_tb), n, iv%ssmi_tb(n)%tb22v, max_error_tb, failed)
34       ! Tb37h
36       call da_max_error_qc(it, iv%info(ssmi_tb), n, iv%ssmi_tb(n)%tb37h, max_error_tb, failed)
38       ! Tb37v
40       call da_max_error_qc(it, iv%info(ssmi_tb), n, iv%ssmi_tb(n)%tb37v, max_error_tb, failed)
42       ! Tb85h
44       call da_max_error_qc(it, iv%info(ssmi_tb), n, iv%ssmi_tb(n)%tb85h, max_error_tb, failed)
46       ! Tb85v
48       call da_max_error_qc(it, iv%info(ssmi_tb), n, iv%ssmi_tb(n)%tb85v,max_error_tb, failed)
49    end do
51    if (trace_use) call da_trace_exit("da_check_max_iv_ssmi_tb")
53 end subroutine da_check_max_iv_ssmi_tb