<div dir="ltr">Hi all,<div><br></div><div style="">I have run into something of a problem. I have a lot of code that needs to run on a lot of data and anticipated being able to use the loadscript function within do loops but it works in an odd way: a much simpler example:<br><br>&quot;Original script&quot;<br><div>do ray=0,3</div><div>   loadscript(&quot;sunshine.ncl&quot;)</div><div>end do<br><br>Where sunshine.ncl is:</div><div><br></div><div><div>xx=ray*2</div><div>print(xx)</div><br>The output of this combination of scripts is:</div><div><br></div><div>8</div><div>8</div><div>8</div><div>8</div><div><br></div><div style="">But I want to be able to use the value of ray in &quot;Sunshine.ncl&quot; as it loops and get:</div><div style=""><br></div><div style="">0</div><div style="">2</div><div style="">4</div><div style="">6</div><div style=""><br></div><div style="">If anyone knows how to achieve something like this or a workaround that would be greatly appreciated.</div><div style=""><br></div><div style="">Regards</div><div style="">Luke</div><div style=""><br></div><div style=""><br></div><div style=""><div>There were no errors reported.</div><div>NCAR Command Language Version 6.3.0<br></div><div>Linux s0000965 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux</div><div><br></div></div><div style=""><br></div><div style=""><br></div><div><br></div></div></div>