<div dir="ltr">Hi:<br><div><br></div><div>I will give it a try.</div><div><br></div><div>In the meantime, I am wondering why you suggest the ne, rather than the equal to with a continue and an else?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 10, 2020 at 9:52 AM Beáta Szabó-Takács <<a href="mailto:szabo.b@czechglobe.cz">szabo.b@czechglobe.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="HU">
<div class="gmail-m_7203998850005533117WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Dear Barry,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">The continue will proceed directly to the next iteration. Try to skip the _FillValues by:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">if(max(ratio_hr).ne.ratio_hr@_FillValue.and. min(ratio_hr).ne.ratio_hr@_FillValue)then<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">statement(s)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">end if<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I hope it solves your issue.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Kind regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Beata<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> ncl-talk [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>]
<b>On Behalf Of </b>Barry Lynn via ncl-talk<br>
<b>Sent:</b> Friday, January 10, 2020 7:40 AM<br>
<b>To:</b> ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
<b>Subject:</b> [ncl-talk] If statements and Fill_Values<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:Georgia,serif">Hi:</span><u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Georgia,serif">I am trying to skip a loop where all the numbers (min/max) are _FillValues.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="gmail-m_7203998850005533117gmail-p1" style="margin:0cm 0cm 0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-m_7203998850005533117gmail-s1"><span style="font-family:Georgia,serif;color:black">min=9.96921e+36
</span></span><span class="gmail-m_7203998850005533117gmail-apple-converted-space"><span style="font-family:Georgia,serif;color:black"> 
</span></span><span class="gmail-m_7203998850005533117gmail-s1"><span style="font-family:Georgia,serif;color:black">max=9.96921e+36</span></span><span style="color:black"><u></u><u></u></span></p>
<p class="gmail-m_7203998850005533117gmail-p1" style="margin:0cm 0cm 0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span style="color:black"><u></u> <u></u></span></p>
<p class="gmail-m_7203998850005533117gmail-p1" style="margin:0cm 0cm 0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-m_7203998850005533117gmail-s1"><span style="font-family:Georgia,serif;color:black">However, I get this error, even though my if statement is checking this.</span></span><span style="color:black"><u></u><u></u></span></p>
<p class="gmail-m_7203998850005533117gmail-p1" style="margin:0cm 0cm 0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span style="color:black"><u></u> <u></u></span></p>
<p class="gmail-m_7203998850005533117gmail-p1" style="margin:0cm 0cm 0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-m_7203998850005533117gmail-s1"><span style="font-family:Georgia,serif;color:black">fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function</span></span><span style="color:black"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="gmail-m_7203998850005533117gmail-p1" style="margin:0cm 0cm 0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-m_7203998850005533117gmail-apple-converted-space"><span style="font-family:Georgia,serif;color:black">  </span></span><span class="gmail-m_7203998850005533117gmail-s1"><span style="font-family:Georgia,serif;color:black">if (max(ratio_hr)<a href="mailto:.eq.ratio_hr@_FillValue.and.min(ratio_hr).eq.ratio_hr@_FillValue)then" target="_blank">.eq.ratio_hr@_FillValue.and.min(ratio_hr).eq.ratio_hr@_FillValue)then</a></span></span><span style="color:black"><u></u><u></u></span></p>
<p class="gmail-m_7203998850005533117gmail-p1" style="margin:0cm 0cm 0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-m_7203998850005533117gmail-apple-converted-space"><span style="font-family:Georgia,serif;color:black">  
</span></span><span class="gmail-m_7203998850005533117gmail-s1"><span style="font-family:Georgia,serif;color:black">continue</span></span><span style="color:black"><u></u><u></u></span></p>
<p class="gmail-m_7203998850005533117gmail-p1" style="margin:0cm 0cm 0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-m_7203998850005533117gmail-apple-converted-space"><span style="font-family:Georgia,serif;color:black"> 
</span></span><span class="gmail-m_7203998850005533117gmail-s1"><span style="font-family:Georgia,serif;color:black">else</span></span><span style="color:black"><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Georgia,serif">Is there someway around this?</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Georgia,serif">Thank you</span><u></u><u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Barry H. Lynn, Ph.D<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Senior Associate Scientist, Lecturer,<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:rgb(136,136,136)">The Institute of the Earth Science, <br>
The Hebrew University of Jerusalem, <br>
Givat Ram, Jerusalem 91904, Israel </span><u></u><u></u></p>
</div>
<p class="MsoNormal"><span style="color:rgb(136,136,136)">Tel: 972 547 231 170<br>
Fax: (972)-25662581</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">C.E.O, Weather It Is, LTD<br>
Weather and Climate Focus<br>
<a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>
Jerusalem, Israel<br>
Local: 02 930 9525<br>
Cell: 054 7 231 170<br>
Int-IS: x972 2 930 9525<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>