[ncl-talk] Fwd: sub: loop testing...

Milinski, Sebastian sebastian.milinski at mpimet.mpg.de
Fri Mar 10 01:04:39 MST 2017


Hi Dale,

In line 92, write end instead of return.
Return is used in functions and procedures. Have a look at this page for more information: http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml

Cheers,
Sebastian

> On 10 Mar 2017, at 08:49, dale zuri <dalezuri at gmail.com> wrote:
> 
> 
> 
> Hi ,
> I have been trying to reproduce the excel calculation attached here  in ncl. Could someone help me to fix this bug and get the loop right?
> 
> Thank you
> DaleZ
> 
> 
> 
> This is the error I get
> fatal:syntax error: line -1 before or near
> 
> ^
> 
> fatal:error in statement
> 
> 
> <testloop.ncl><test.xlsx>_______________________________________________
> 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/20170310/de998556/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170310/de998556/attachment.bin 


More information about the ncl-talk mailing list