From 0f0f307ac6a1b318560d966b3b2d328ffb78ca7a Mon Sep 17 00:00:00 2001 From: 2018EA000500R Date: Mon, 2 Aug 2021 20:54:53 -0400 Subject: [PATCH] bug fix for snofrac computation when ivegsrc is set as 1 (#353) * bug fix for GOES * fix the bug for non-nadir too Co-authored-by: Shaowu Bao Co-authored-by: Shaowu Bao --- sorc/ncep_post.fd/CALRAD_WCLOUD_newcrtm.f | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sorc/ncep_post.fd/CALRAD_WCLOUD_newcrtm.f b/sorc/ncep_post.fd/CALRAD_WCLOUD_newcrtm.f index e3d92df077..3e5d763f7a 100644 --- a/sorc/ncep_post.fd/CALRAD_WCLOUD_newcrtm.f +++ b/sorc/ncep_post.fd/CALRAD_WCLOUD_newcrtm.f @@ -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) @@ -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)