Skip to content

Commit

Permalink
Revised calculation of wind GUST for UFS applications (#637)
Browse files Browse the repository at this point in the history
* Revised calculation of wind GUST for UFS applications

* Revised calculation of wind GUST for UFS applications

* Revised Calculation of Wind Gust for UFS Applications

* Revised calculation of wind GUST for UFS applications

* Revised calculation of wind GUST for UFS applications
  • Loading branch information
wzzheng90 authored Feb 27, 2023
1 parent 84cb0b8 commit 3e90715
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sorc/ncep_post.fd/CALGUST.f
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
!> 2005-07-07 | Binbin Zhou | Add RSM
!> 2015-03-11 | S Moorthi | Set sfcwind to spval if u10 and v10 are spvals for A grid and set gust to just wind (in GSM with nemsio, it appears u10 & v10 have spval)
!> 2021-09-02 | Bo Cui | Decompose UPP in X direction
!> 2023-02-24 | Weizhong Zheng| Revised calculation of wind gust for UFS applications
!>
!> @author Geoff Manikin W/NP2 @date 1997-03-04

Expand Down Expand Up @@ -75,8 +76,8 @@ SUBROUTINE CALGUST(LPBL,ZPBL,GUST)
LMIN = max(1, minval(lpbl(ista:iend,jsta:jend)))
CALL MPI_ALLREDUCE(LMIN,LXXX,1,MPI_INTEGER,MPI_MIN,MPI_COMM_COMP,IERR)
DO L=LXXX,LM
CALL EXCH(UH(1,jsta_2l,L))
CALL EXCH(VH(1,jsta_2l,L))
CALL EXCH(UH(ista_2l,jsta_2l,L))
CALL EXCH(VH(ista_2l,jsta_2l,L))
END DO
END IF
END IF
Expand Down Expand Up @@ -133,7 +134,7 @@ SUBROUTINE CALGUST(LPBL,ZPBL,GUST)
else
sfcwind = spval
endif
if(MODELNAME == 'RAPR') then
if(MODELNAME == 'RAPR' .OR. MODELNAME == 'GFS' .OR. MODELNAME == 'FV3R') then
ZSFC = ZINT(I,J,LM+1)
L = LPBL(I,J)
! in RUC do 342 k=2,k1-1, where k1 - first level above PBLH
Expand Down Expand Up @@ -167,7 +168,7 @@ SUBROUTINE CALGUST(LPBL,ZPBL,GUST)
return
END IF

if(MODELNAME /= 'RAPR')then
if(MODELNAME /= 'RAPR' .AND. MODELNAME /= 'GFS' .AND. MODELNAME /= 'FV3R')then
if (sfcwind < spval) then
DELWIND = WIND - SFCWIND
ZSFC = FIS(I,J)*GI
Expand Down

0 comments on commit 3e90715

Please sign in to comment.