[ncl-talk] Error in extracting dates when certain conditions are met
Dennis Shea
shea at ucar.edu
Thu Mar 4 12:23:47 MST 2021
Possibly, replace
ymd = YMD(ind(n_thres)) ; dates that satisfy criteria
with
ymd = YMD(n_thres) ; dates that satisfy criteria
On Wed, Mar 3, 2021 at 8:46 PM Lyndz via ncl-talk <ncl-talk at mailman.ucar.edu>
wrote:
> Dear NCL-experts,
>
> I am extracting the dates when the zero contour lines of two variables are
> both within a region.
>
> Attached is the script and sample data file.
>
> [*PROBLEM*]
> There are* four* time steps that satisfy the conditions but only *three*
> are printed in the output file.
>
> I also encounter the following warning:
>
> warning:Argument 0 of the current function or procedure was coerced to the
> appropriate type and thus will not change if the function or procedure
> modifies its value
>
>
> I'm not sure what is causing this for the first time step.
>
> The expected output is:
>
> *(0) 2017-01-16-00 *
>
> *(1) 2017-01-16-06*
>
> *(2) 2017-01-16-12*
>
> *(3) 2017-01-16-18*
>
> I'll appreciate any help on this.
>
> Sincerely,
> Lyndz
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210304/4439a89c/attachment.html>
More information about the ncl-talk
mailing list