Skip to content

Commit 1b59a88

Browse files
Update cosp_stats.F90
1 parent 38b78fe commit 1b59a88

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/cosp_stats.F90

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,8 @@ SUBROUTINE COSP_DIAG_WARMRAIN( Npoints, Ncolumns, Nlevels, & !! in
333333
real(wp), dimension(Npoints,Ncolumns,Nlevels) :: icod !! in-cloud optical depth (ICOD)
334334
logical :: octop, ocbtm, oslwc
335335
integer, dimension(Npoints,Ncolumns,Nlevels) :: fracout_int !! fracout (decimal to integer)
336-
fracout_int(:,:,:) = 0
337-
where ((fracout(:,:,:) .ge. 0.5_wp) .and. (fracout(:,:,:) .lt. 1.5_wp )) fracout_int(:,:,:) = 1
338-
where ((fracout(:,:,:) .ge. 1.5_wp) .and. (fracout(:,:,:) .lt. 2.5_wp )) fracout_int(:,:,:) = 2
336+
fracout_int(:,:,:) = NINT( fracout(:,:,:) ) !! assign an integer subpixcel ID (0=clear-sky; 1=St; 2=Cu)
337+
339338
!! initialize
340339
do i = 1, Npoints
341340
if ( lwp(i) .eq. R_UNDEF ) then ! for non-sunlit columns

0 commit comments

Comments
 (0)