[ncl-talk] Write NetCDF file with loop function

Rick Brownrigg brownrig at ucar.edu
Thu Jul 29 20:54:02 MDT 2021


Hi,

Wow - I have never seen that error!  I looked at the source code, and it
suggests that the variable "ntim" in your do-loop is not a scalar value,
but perhaps an array?  Maybe do a printVarSummary(ntim) to make sure that
value is what you think it should be.

Hope that helps...
Rick


On Thu, Jul 29, 2021 at 7:51 PM 소윤영 via ncl-talk <ncl-talk at mailman.ucar.edu>
wrote:

> Hi,
> I want to write NetCDF file using multiple timeseries. I have tried do
> loop, but it doesn't work. Error massage is *'Loop end must be scalar,
> can't execute loop'.*
> Below are the working example scripts. It would be great if you can give
> me some ideas.
>
> -error message
>
> [image: image.png]
>
>
> Millions of thanks and best regards,
>
> Olivia
> _______________________________________________
> 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/20210729/4db00d10/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 36908 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210729/4db00d10/attachment.png>


More information about the ncl-talk mailing list