<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi all,<br>
<br>
you can run a simple test to see if a variable has missing values.<br>
<br>
Assume topo is the name of the variable then<br>
<tt><font color="#3333ff"><br>
printVarSummary(topo)</font></tt><tt><br>
</tt><tt><br>
</tt><tt><font color="#3333ff">n = num(.not. ismissing(topo))<br>
print("---> Number of missing values: "+n)<br>
<br>
if(any(ismissing(topo))) then<br>
print("---> data contains missing values")<br>
elseif(all(ismissing(topo))) then<br>
print("---> data contains all missing values")<br>
elseif(.not. ismissing(topo)) then<br>
print("---> data contains no missing values")<br>
end if</font></tt><tt><br>
</tt><br>
NCL returns something like <br>
<br>
<font color="#3333ff"><tt>Variable: topo</tt><tt><br>
</tt><tt>Type: float</tt><tt><br>
</tt><tt>Total Size: 1036800 bytes</tt><tt><br>
</tt><tt> 259200 values</tt><tt><br>
</tt><tt>Number of Dimensions: 2</tt><tt><br>
</tt><tt>Dimensions and sizes: [lat | 360] x [lon | 720]</tt><tt><br>
</tt><tt>Coordinates: </tt><tt><br>
</tt><tt> lat: [-89.75..89.75]</tt><tt><br>
</tt><tt> lon: [-179.75..179.75]</tt><tt><br>
</tt><tt>Number Of Attributes: 3</tt><tt><br>
</tt><tt> units : m</tt><tt><br>
</tt><tt> _FillValue : -9e+33</tt><tt><br>
</tt><tt> missing_value : -9e+33</tt><tt><br>
</tt><tt>(0) ---> Number of missing values: 85635</tt><tt><br>
</tt><tt>(0) ---> data contains missing values</tt></font><br>
<br>
-Karin<br>
<br>
<div class="moz-cite-prefix">Am 10.01.20 um 11:27 schrieb Rashed
Mahmood:<br>
</div>
<blockquote type="cite"
cite="mid:CAOmfQPqE3LGYM=urj_K6NAhcVGDM0RV6ZmTB3gF9FtVeq6sy1g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi Barry,</div>
<div>I think in your case, Karin's suggestion would work best.
Just make sure that the variable "
<span style="font-variant-ligatures:no-common-ligatures"><font
face="georgia, serif">ratio_hr</font></span>
" has _FillValue attribute assigned to it.</div>
<div>Cheers,</div>
<div>Rashed<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jan 10, 2020 at 2:18
AM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com"
moz-do-not-send="true">barry.h.lynn@gmail.com</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 dir="ltr">Hi Rashed:
<div><br>
</div>
<div>Thank you for your input (and to Beata).</div>
<div><br>
</div>
<div>I need to check all values; if some are not missing,
then I want to execute the loop.</div>
<div><br>
</div>
<div>I will try the various suggestions and return.</div>
<div><br>
</div>
<div>Have a nice weekend,</div>
<div><br>
</div>
<div>Barry</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jan 10, 2020 at
12:09 PM Rashed Mahmood <<a
href="mailto:rashidcomsis@gmail.com" target="_blank"
moz-do-not-send="true">rashidcomsis@gmail.com</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 dir="ltr">
<div>I think there is some logical issue(s) in your if
statements:</div>
<div>Issues:</div>
<div>1) <span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">if(CL(n).eq.CL@_FillValue)then
; This would not work because the "@_FillValue"
attribute cannot be used inside if statements, I
think. You can define a missing value variable
before hand, e.g:</span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br>
</span></div>
<div><span style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif">missV
= CL@_FillValue</span></span></div>
<div><span style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif">print(missV)</span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> <span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif">if(CL(n).eq.missV)then</span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif">...<br>
</span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><br>
</span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(0,0,0)">2)</span> <span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">if(all(ismissing(CL)))then
: For this statement since you are asking "if
ALL Values of CL are missing which might not
be the case since some values would be valid.
<br>
</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br>
</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Does
your variable CL has _FillValue attribute
assigned? What is printVarSummary(CL) suggest?</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br>
</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(0,0,255)"><b>The simplest
statement would be( if CL has "_FillValue"
attribute assigned to it)</b></span>:</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br>
</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><b><span
style="color:rgb(255,0,0)"></span></b></span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><b><span
style="color:rgb(255,0,0)">if(ismissing(CL(n)))then</span></b><br>
</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
continue</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">else</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> ...</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">end
if</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br>
</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">hope
that helps.</span></span></span></span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span
style="color:rgb(255,0,0)"><span
style="font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Rashed<br>
</span>
</span></span>
</span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br>
</span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br>
</span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br>
</span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> <br>
</span></div>
<div><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br>
</span>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jan 10, 2020
at 1:21 AM Beáta Szabó-Takács via ncl-talk <<a
href="mailto:ncl-talk@ucar.edu" target="_blank"
moz-do-not-send="true">ncl-talk@ucar.edu</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 bgcolor="white" lang="HU">
<div>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Dear
Karin and Barry,</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I
checked different ways to skip the
_FillValues. Here is my brief script:</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">begin</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
input = addfile("NetCDF_2017_07_18.nc","r")</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
CL=input->cLayer1
;First
cloud layer, its _FillValue is -9900</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
CL1 = new((/5400/), typeof(CL), 1e20)</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
CL2 = new((/5400/), typeof(CL), 1e20)</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
CL3 = new((/5400/), typeof(CL), 1e20)</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
CL4 = new((/5400/), typeof(CL), 1e20)</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
do n=1,5399</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
if(CL(n).eq.CL@_FillValue)then</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
continue</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
else</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
CL1(n) = CL(n)</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
end if</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
if(all(ismissing(CL)))then</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
continue</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
else</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
CL2(n) = CL(n)</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
end if</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
if(CL(n).ne.CL@_FillValue)then</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
CL3(n) = CL(n)</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
end if</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
if(.not.ismissing(CL(n)))then</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
CL4(n) = CL(n)</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
end if</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
end do</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
print(CL1(1:500))</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
print(CL2(1:500))</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
print(CL3(1:500))</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">
print(CL4(1:500))</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">end</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Unfortunately,
none of the if statements skip the
_FillValues. I do not understand why.</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Beata</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<div>
<div style="border-color:rgb(225,225,225)
currentcolor currentcolor;border-style:solid
none none;border-width:1pt medium
medium;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:windowtext"
lang="EN-US">From:</span></b><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:windowtext"
lang="EN-US"> ncl-talk [mailto:<a
href="mailto:ncl-talk-bounces@ucar.edu"
target="_blank" moz-do-not-send="true">ncl-talk-bounces@ucar.edu</a>]
<b>On Behalf Of </b>Karin Meier-Fleischer
via ncl-talk<br>
<b>Sent:</b> Friday, January 10, 2020 9:26
AM<br>
<b>To:</b> <a
href="mailto:ncl-talk@ucar.edu"
target="_blank" moz-do-not-send="true">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> Re: [ncl-talk] If
statements and Fill_Values</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom:12pt">Hi,<br>
<br>
what about<br>
<br>
<tt><span
style="font-size:10pt;color:rgb(51,51,255)">if(all(ismissing(ratio_hr)))
then</span></tt><span
style="font-size:10pt;font-family:"Courier
New";color:rgb(51,51,255)"><br>
<tt> continue</tt><br>
<tt>end if</tt></span><br>
<br>
-Karin</p>
<div>
<p class="MsoNormal">Am 10.01.20 um 09:17
schrieb Barry Lynn via ncl-talk:</p>
</div>
<blockquote
style="margin-top:5pt;margin-bottom:5pt">
<div>
<p class="MsoNormal">Hi:</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I will give it a try.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">In the meantime, I am
wondering why you suggest the ne, rather
than the equal to with a continue and an
else?</p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">On Fri, Jan 10, 2020 at
9:52 AM Beáta Szabó-Takács <<a
href="mailto:szabo.b@czechglobe.cz"
target="_blank" moz-do-not-send="true">szabo.b@czechglobe.cz</a>>
wrote:</p>
</div>
<blockquote style="border-color:currentcolor
currentcolor currentcolor
rgb(204,204,204);border-style:none none none
solid;border-width:medium medium medium
1pt;padding:0cm 0cm 0cm
6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Dear
Barry,</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:</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">if(max(<a
href="mailto:ratio_hr).ne.ratio_hr@_FillValue.and" target="_blank"
moz-do-not-send="true">ratio_hr).ne.ratio_hr@_FillValue.and</a>.
min(ratio_hr)<a
href="mailto:.ne.ratio_hr@_FillValue)then"
target="_blank"
moz-do-not-send="true">.ne.ratio_hr@_FillValue)then</a></span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">statement(s)</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">end
if</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </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.</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Kind
regards,</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Beata</span></p>
<p class="MsoNormal"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><b><span
style="font-size:11pt;font-family:Calibri,sans-serif"
lang="EN-US">From:</span></b><span
style="font-size:11pt;font-family:Calibri,sans-serif" lang="EN-US">
ncl-talk [mailto:<a
href="mailto:ncl-talk-bounces@ucar.edu"
target="_blank"
moz-do-not-send="true">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"
moz-do-not-send="true">ncl-talk@ucar.edu</a>><br>
<b>Subject:</b> [ncl-talk] If
statements and Fill_Values</span></p>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"><span
style="font-family:Georgia,serif">Hi:</span></p>
<div>
<p class="MsoNormal"> </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></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p style="margin:0cm 0cm
0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal"><span><span
style="font-family:Georgia,serif">min=9.96921e+36
</span></span><span><span
style="font-family:Georgia,serif">
</span></span><span><span
style="font-family:Georgia,serif">max=9.96921e+36</span></span></p>
<p style="margin:0cm 0cm
0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal"> </p>
<p style="margin:0cm 0cm
0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal"><span><span
style="font-family:Georgia,serif">However, I get this error, even though
my if statement is checking
this.</span></span></p>
<p style="margin:0cm 0cm
0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal"> </p>
<p style="margin:0cm 0cm
0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal"><span><span
style="font-family:Georgia,serif">fatal:The result of the conditional
expression yields a missing
value. NCL can not determine
branch, see ismissing function</span></span></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p style="margin:0cm 0cm
0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal"><span><span
style="font-family:Georgia,serif"> </span></span><span><span
style="font-family:Georgia,serif">if
(max(ratio_hr)<a
href="mailto:.eq.ratio_hr@_FillValue.and.min(ratio_hr).eq.ratio_hr@_FillValue)then"
target="_blank"
moz-do-not-send="true">.eq.ratio_hr@_FillValue.and.min(ratio_hr).eq.ratio_hr@_FillValue)then</a></span></span></p>
<p style="margin:0cm 0cm
0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal"><span><span
style="font-family:Georgia,serif">
</span></span><span><span
style="font-family:Georgia,serif">continue</span></span></p>
<p style="margin:0cm 0cm
0.0001pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal"><span><span
style="font-family:Georgia,serif">
</span></span><span><span
style="font-family:Georgia,serif">else</span></span></p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:Georgia,serif">Is
there someway around this?</span></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:Georgia,serif">Thank
you</span></p>
</div>
<p class="MsoNormal">--
</p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Barry
H. Lynn, Ph.D</p>
<div>
<div>
<p class="MsoNormal">Senior
Associate Scientist,
Lecturer,</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></p>
</div>
<p class="MsoNormal"><span
style="color:rgb(136,136,136)">Tel: 972 547 231 170<br>
Fax: (972)-25662581</span></p>
</div>
</div>
<div>
<p class="MsoNormal"> </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"
moz-do-not-send="true">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</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
</p>
<div>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal">-- </p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Barry H. Lynn, Ph.D
</p>
<div>
<div>
<p class="MsoNormal">Senior
Associate Scientist, Lecturer,</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></p>
</div>
<p class="MsoNormal"><span
style="color:rgb(136,136,136)">Tel:
972 547 231 170<br>
Fax: (972)-25662581</span></p>
</div>
</div>
<div>
<p class="MsoNormal"> </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"
moz-do-not-send="true">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</p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br>
</p>
<pre>_______________________________________________</pre>
<pre>ncl-talk mailing list</pre>
<pre><a href="mailto:ncl-talk@ucar.edu" target="_blank" moz-do-not-send="true">ncl-talk@ucar.edu</a></pre>
<pre>List instructions, subscriber options, unsubscribe:</pre>
<pre><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" moz-do-not-send="true">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></pre>
</blockquote>
<p class="MsoNormal"> </p>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank"
moz-do-not-send="true">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"
moz-do-not-send="true">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<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"
moz-do-not-send="true">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>
</blockquote>
</div>
</blockquote>
</body>
</html>