[ncl-talk] Loop Breaking on 3rd pass

Dennis Shea shea at ucar.edu
Thu May 9 07:51:42 MDT 2019


NCL is strongly typed. By default, NCL will not allow different size arrays
to the left and right of the assignment operator [ *=* ].

Use NCL's reassignment operator   *:=*

WRF_gridpoints *:=* f_in[:]->PREC_ACC_NC(s_time3:e_time3,553,412)
===
*https://www.ncl.ucar.edu/Document/Language/varb_assign.shtml*
<https://www.ncl.ucar.edu/Document/Language/varb_assign.shtml>

On Wed, May 8, 2019 at 7:02 PM Zach Rieck <zrr817 at gmail.com> wrote:

> To Whom it May Concern-
>
> I have a loop where I am trying to pull precip for different time periods
> for each winter. The loop is successfully pulling in the write dates and
> totals, and runs EXACTLY how it is supposed to until the 3rd pass through.
> I'm confused by this since if the loop wasn't repeatable it should error
> out no later than the 2nd pass. The error I am getting is that on the 3rd
> pass, the left and right side dimensions do not match when I try to pull in
> the gridpoint data
>
> I have verified the lengths on my variable and all are long enough to pass
> through the loop as they are meant to. The loop is at the end of the code,
> from ~ line 73-78.
>
> Thanks for the help!
>
> -Zach Rieck
> zrr817 at gmail.com
> (513)-502-5652
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190509/def4fb72/attachment.html>


More information about the ncl-talk mailing list