Merge remote-tracking branch 'origin/release-v4.5.2'
[WRF.git] / var / da / da_ssmi / da_transform_xtoseasfcwind.inc
blobca412f40d85e6a1d20bd0d1c3eeef64eb90b353c
1 subroutine da_transform_xtoseasfcwind(U,V,Speed,zhmkz)
3    !----------------------------------------------------------------------------
4    ! Purpose: Convert (U-V in m/s) components into wind speed (Speed in m/s)
5    !----------------------------------------------------------------------------
7    implicit none
9    real, intent (out) :: Speed
10    real, intent (in)  :: U, V, zhmkz
12    real :: usfc, vsfc
14    if (trace_use) call da_trace_entry("da_transform_xtoseasfcwind")
16    usfc   = U*log(10./0.0001)/log(zhmkz/0.0001) ! roughness = 0.0001
17    vsfc   = V*log(10./0.0001)/log(zhmkz/0.0001) ! roughness = 0.0001
18    speed  = sqrt(usfc*usfc + vsfc*vsfc)
20    if (trace_use) call da_trace_exit("da_transform_xtoseasfcwind")
22 end subroutine da_transform_xtoseasfcwind