<div dir="ltr"><div><div><div><div>Hi ,<br><br></div>begin<br>a = addfile("<a href="http://mask.nc">mask.nc</a>","r")<br>mas=a->mask<br>printMinMax(mas,0);;;;;;Print----(0,1,2,-21) each number associated with different division ( ex., (0-1)- division 1, (1-2) division 2, oceanic region are filled with missing number and land regions are filled with number 1. <br>do i=1,1 or 2,2 or 3,3 ( I get the right selection of region and printMinMax shows 1)<br>do i=1,4 ( I get the wrong selection of region and printMinMax shows missing number) <br>j=i+1<br>mas=where(mas.ge.i .and. mas.lt.j,1,mas@_FillValue)<br>end do<br>printMinMax(mas,0) ...(1,1)</div><div>return<br><br></div>I hope this helps! Please let me know If you have any questions. <br><br></div>Thanks<br></div>DZ<br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 3, 2017 at 12:01 PM, Kevin Hallock <span dir="ltr"><<a href="mailto:hallock@ucar.edu" target="_blank">hallock@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Dz,<br>
<br>
Could you please provide more detail about how the numbers are wrong?<br>
<br>
Also, do you have a complete script you could share? That might help us identify any possible issues.<br>
<br>
Thanks,<br>
Kevin<br>
<div><div class="gmail-h5"><br>
> On Nov 3, 2017, at 1:37 PM, dale zuri <<a href="mailto:dalezuri@gmail.com">dalezuri@gmail.com</a>> wrote:<br>
><br>
> Hi NCL users,<br>
><br>
> Could someone help me to fix this bug? This loop gives me wrong numbers. Please help me to handle this.<br>
> do i=1,11<br>
> j=i+1<br>
> mas=where(mas.ge.i .and. mas.lt.j,1,mas@_FillValue)<br>
> end do<br>
> Thanks<br>
> Dz<br>
</div></div>> ______________________________<wbr>_________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote></div><br></div></div></div></div></div></div>