<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 13.3333px; line-height: 12pt; font-family: courier; border-style: solid; border-width: 0px 0px 15px; border-color: transparent; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">        function where (
                condtnl_expr  ,    
                true_value    ,    
                false_value        
        )</pre><div class=""><br class=""></div><div class="">NCL is reading your condition like "where delz>= 0.5 then replace delz with its own value", thus nothing changes. Maybe you want to change the order of the conditions?</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><div class=""><div class="" style="margin: 0px; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);"><span class="gmail-s1" style="font-variant-ligatures: no-common-ligatures;"><span class="gmail-Apple-converted-space">    </span>DELZ =</span><span class="gmail-s2" style="font-variant-ligatures: no-common-ligatures; background-color: rgb(230, 230, 0);">where</span><span class="gmail-s1" style="font-variant-ligatures: no-common-ligatures;">(delz.ge.0.5,delz@_FillValue,delz)</span></div></div></div></div></blockquote></div><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="" style="margin: 0px; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);"><span class="gmail-s1" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div></div></div></div></div><div class="">What you wrote is basically "removing" all the values less than 0.5 by substituting them with fill value which is 0.5. Thus, it makes sense that the minimum of your array is 0.5 </div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 24. Dec 2017, at 17:13, Barry Lynn via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi:<div class=""><br class=""></div><div class="">I have the lines:</div><div class=""><br class=""></div><div class=""><div class=""><div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>delz@_FillValue = 0.5</span></div><div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>DELZ =</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">where</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">(delz.ge.0.5,delz,delz@_FillValue)</span></div><div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>print("DELZ")</span></div><div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>printMinMax(DELZ,False)</span></div><p class="gmail-p1" style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">







</span></p><div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">min=0.500002 <span class="gmail-Apple-converted-space">  </span>max=2.36552</span></div><div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br class=""></span></div><div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">I don't understand why DELZ is still > 0.5.</span></div><div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br class=""></span></div><div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Thank you for your suggestions,</span></div><div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 255, 255);" class=""><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Happy Holidays</span></div></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class="">Barry H. Lynn, Ph.D<div class=""><div class="">Senior Lecturer,</div><div class=""><div class=""><span style="color:rgb(136,136,136)" class="">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)" class=""></div><span style="color:rgb(136,136,136)" class="">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">Fax: (972)-25662581</span></div></div><div class=""><span style="color:rgb(136,136,136)" class=""><br class=""></span></div><div class="">C.E.O, Weather It Is, LTD<br class="">Weather and Climate Focus<br class=""><a href="http://weather-it-is.com/" target="_blank" class="">http://weather-it-is.com</a><br class="">Jerusalem, Israel<br class="">Local: 02 930 9525<br class="">Cell: 054 7 231 170<br class="">Int-IS: x972 2 930 9525<br class="">US 914 432 3108<br class=""></div></div></div>
</div></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Guido Cioni</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://guidocioni.altervista" class="">http://guidocioni.altervista</a>.org</div>

</div>
<br class=""></body></html>