<div dir="ltr"><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear NCL-experts,</div><div><br></div><div>I am extracting the dates when the zero contour lines of two variables are both within a region.</div><div><br></div><div>Attached is the script and sample data file.</div><div><br></div><div>[<b>PROBLEM</b>]</div><div>There are<b><i> four</i></b> time steps that satisfy the conditions but only <i><b>three</b></i> are printed in the output file.</div><div><br></div><div>I also encounter the following warning:</div><div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:Argument 0 of the current function or procedure was coerced to the appropriate type and thus will not change if the function or procedure modifies its value</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p></div><div>I'm not sure what is causing this for the first time step.</div><div><br></div><div>The expected output is:</div><div><br></div><div><font face="arial, sans-serif" color="#000000"><b>(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>2017-01-16-00 </b></font></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif" color="#000000"><b>(1)<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>2017-01-16-06</b></font></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif" color="#000000"><b>(2)<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>2017-01-16-12</b></font></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif" style="" color="#000000"><b style="">(3)<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>2017-01-16-18</b></font></span></p></div><div><br></div><div>I'll appreciate any help on this.</div><div><br></div><div>Sincerely,</div><div>Lyndz</div></div></div></div></div></div></div></div></div></div></div></div>