[ncl-talk] local_min_1d

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Mon Mar 11 12:31:43 MDT 2024


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.


On Mon, Mar 11, 2024 at 11:05 AM Manisha Ganeshan via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> Hello,
>
> I'm using the function local_min_1d to identify local minima in a 1
> dimensional array (non-cyclic).
>
>  qmin = local_min_1d(ref_gr_tmp, False, 0, 0)
>
> In some instances, I get a missing value. For instance, when the
> ref_gr_tmp array is as follows:
>
> (0) -32.48587
>
> (1) -29.68181
>
> (2) -25.42006
>
> (3) -20.03051
>
> (4) -19.69697
>
> Is this expected to occur when there is no isolated minimum or "peak" in
> the data?
>
> Thanks,
> Manisha
> --
> Dr. Manisha Ganeshan
> Morgan State University
> Maryland, U.S.A.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240311/fd345bc8/attachment.htm>


More information about the ncl-talk mailing list