[ncl-talk] sub: Array mismatch

dale zuri dalezuri at gmail.com
Tue May 5 21:21:13 MDT 2020


Hi NCL user,
Could someone help me fix this issue?

Thanks

(i) 384

(j) 320

Mask = where(((u(0,:,:).ge.0.9).and.(lat2d(:,:) .ge. 55)), 1, 0);;;1
corresponds to NH

VRH=Mask

k=0

do i=300,(dimsizes(lat2d(:,0))-1),12

     do j=1,(dimsizes(lon2d(0,:))-1),12

               f =sum(VRH(i:i+12,j:j+12))

           if (.not. ismissing(f) .and. f .gt. 0)then ;;;;0 corresponds to
SH

               k=k+1

            VRH(i:i+12,j:j+12)=k

           end if



     end do

end do


fatal:Subscript out of range, error in subscript #1

fatal:An error occurred reading VRH

fatal:["Execute.c":8637]:Execute: Error occurred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200505/117e20a9/attachment.html>


More information about the ncl-talk mailing list