<div dir="ltr"><div>My interpretation of the function documentation is yes, a missing value is possible.  The documentation does not give an exact reason.  If you need a more complete understanding of how it works, please examine the source code.</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 11, 2024 at 11:05 AM Manisha Ganeshan via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I'm using the function local_min_1d to identify local minima in a 1 dimensional array (non-cyclic). </div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(128,0,128)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>qmin = local_min_1d(ref_gr_tmp, False, 0, 0)</span></p></div><div><br></div><div>In some instances, I get a missing value. For instance, when the ref_gr_tmp array is as follows: </div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(128,0,128)"><span style="font-variant-ligatures:no-common-ligatures">(0)<span>  </span>-32.48587</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(128,0,128)"><span style="font-variant-ligatures:no-common-ligatures">(1)<span>  </span>-29.68181</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(128,0,128)"><span style="font-variant-ligatures:no-common-ligatures">(2)<span>  </span>-25.42006</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(128,0,128)"><span style="font-variant-ligatures:no-common-ligatures">(3)<span>  </span>-20.03051</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(128,0,128)"><span style="font-variant-ligatures:no-common-ligatures">(4)<span>  </span>-19.69697</span></p><div><br></div><div>Is this expected to occur when there is no isolated minimum or "peak" in the data? <br></div><div><br></div><div>Thanks,</div><div>Manisha</div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Dr. Manisha Ganeshan<div>Morgan State University</div><div>Maryland, U.S.A.</div></div></div></div></div>
</blockquote></div></div>