<div dir="ltr">Franz,<div><br></div><div>I think in your case, the solution may be as simple as loading script2.ncl before script1.ncl.</div><div><br></div><div>My understanding is that in NCL, each function must be defined or "loaded" before it is referenced. This is a simplification of what Dennis said. So if you have a function in script2.ncl that is called somewhere in script1.ncl, then script2.ncl must be loaded before script1.ncl.</div><div><br></div><div>--Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 28, 2014 at 8:30 AM, franz <span dir="ltr"><<a href="mailto:f.trotta@sincem.unibo.it" target="_blank">f.trotta@sincem.unibo.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Ncl,<br>
I have written a multi file program in NCL,<br>
There is a main script ‘main.ncl’ which is a entry point of the code<br>
in this file I load external scripts (where there are several utility<br>
function/procdure. lets call script1.ncl and script2.ncl )<br>
<br>
I have a problem when in one of this external script (script1.ncl) I<br>
call a procedure<br>
which is defined in an other external script (scrip2.ncl)<br>
<br>
fatal:syntax error: line 196 in file ./script1.ncl before or near \n<br>
<br>
tempe_myOc,saline_myOc,ssh_myOc,glAttr_description)<br>
--------------------------------------------------------------------------------^<br>
<br>
fatal:syntax error: possibly an undefined procedure<br>
<br>
<br>
How can I solve this problem?<br>
<br>
thanks<br>
Francesco T.<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>