Skip to content

Commit

Permalink
bug fix for snofrac computation when ivegsrc is set as 1 (NOAA-EMC#353)
Browse files Browse the repository at this point in the history
* bug fix for GOES

* fix the bug for non-nadir too

Co-authored-by: Shaowu Bao <sbao@Orion-login-3.HPC.MsState.Edu>
Co-authored-by: Shaowu Bao <sbao@Orion-login-4.HPC.MsState.Edu>
  • Loading branch information
3 people authored Aug 3, 2021
1 parent 10e24bf commit 0f0f307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sorc/ncep_post.fd/CALRAD_WCLOUD_newcrtm.f
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ SUBROUTINE CALRAD_WCLOUD
else
snoeqv=0.
end if
CALL SNFRAC (SNO(I,J),IVGTYP(I,J),snofrac)
CALL SNFRAC (snoeqv,IVGTYP(I,J),snofrac)
sfcpct(4)=snofrac
else if(ivegsrc==2)then
itype=IVGTYP(I,J)
Expand Down Expand Up @@ -1337,7 +1337,7 @@ SUBROUTINE CALRAD_WCLOUD
else
snoeqv=0.
end if
CALL SNFRAC (SNO(I,J),IVGTYP(I,J),snofrac)
CALL SNFRAC (SNOeqv,IVGTYP(I,J),snofrac)
sfcpct(4)=snofrac
else if(ivegsrc==2)then
itype=IVGTYP(I,J)
Expand Down

0 comments on commit 0f0f307

Please sign in to comment.