[ncl-talk] sub: array assignment

dale zuri dalezuri at gmail.com
Tue Apr 28 21:15:08 MDT 2020


Hi NCL user,
 I have been trying to assign number 1,2, 3 etc, for the specific
locations. But this piece of code seems to break and not producing any
results. I would appreciate any help to fix this problem.

Thanks in advance!
do k=0, 8242

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

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

        if (.not.ismissing(M(i,j)) .eq. 1)then

           M(i,j)= k

        end if

     end do

   end do

end do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200428/15f7b573/attachment.html>


More information about the ncl-talk mailing list