[ncl-talk] Error in extracting dates when certain conditions are met

Lyndz olagueralyndonmark429 at gmail.com
Wed Mar 3 20:45:20 MST 2021


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210304/9f85ae51/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2_get_dates.ncl
Type: application/octet-stream
Size: 2005 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210304/9f85ae51/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chi_mar_jan2017_925hPa.nc
Type: application/octet-stream
Size: 846360 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210304/9f85ae51/attachment-0003.obj>


More information about the ncl-talk mailing list