<div dir="ltr"><div><div><div><div>Dear Rick and Denis,<br><br></div>Thank you for replies. I was under the same impression but heed to check it. I'll add necessary loop in my ncl script and hopefully it will be faster.<br><br></div>Until next time.<br></div>Happy New Year! <br></div>Damjan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 3, 2018 at 6:46 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>As Rick mentioned, the file <b>must</b> be read in a 'driver script', then some form of loop to invoke 'options' that access the file's data.<br></div><div><br>FYI: <br><br>Rick created (6.5.0):<br>   <a href="http://www.ncl.ucar.edu/Applications/" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/</a><br></div>   Under <i>Miscellaneous,</i> click "Task Parallelism"<br>       <a href="http://www.ncl.ucar.edu/Applications/task_parallelism.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/task_parallelism.<wbr>shtml</a><br><br></div>   Click the NCL scripts: <br>       task_parallelism_driver_1.ncl<br>       task_parallelism_driver_2.ncl<br><br>======<br></div>Also, 6.5.0 but attached so it can be used with pre-6.5.0:<br><br><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/keyword_values.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Functions/<wbr>Contributed/keyword_values.<wbr>shtml</a><br></div><div>See Examples<br>=======================<br></div><div>load "./keyword_values.ncl"<br><br></div><div>- Read NAMELIST file names (asciiread)<span class=""><br><br>- Read the NetCDF file into memory<br><br></span></div><div>- LOOP "namelist file(s) until done"<br><br>=========================<br></div><div>Happy New Year<br></div> <br><div>  <br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 3, 2018 at 10:12 AM, Rick Brownrigg via ncl-talk <span dir="ltr"><<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br><br></div>Its not possible to preserve the data in memory between successive runs of NCL, in the way you are trying to do it.  You would need to move the eventing and system-level stuff that causes your bash script to run periodically into NCL. Without knowing what you are trying to do, its hard to make a specific recommendation, but it might look something like:<br><br></div>- Read the NetCDF file into memory<br><br></div>- loop "until done"<br></div>  check for condition/event, and if its time, run the main part of the NCL script to create a new NetCDF file<br></div>  otherwise, wait/sleep for some time to elapse and then loop<br><br></div>Useful NCL functions for this purpose are system(), systemfunc(), and sleep(), and possibly getenv().<br><br></div>Make sense?<br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_3584563546334786459h5">On Wed, Jan 3, 2018 at 7:47 AM, Damjan Jelic via ncl-talk <span dir="ltr"><<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_3584563546334786459h5"><div dir="ltr"><div><div><div><div><div><div>Dear support,<br><br></div>suppose i have one big 2dfield (time/values) and i have ncl program to extract particular time intervals delivered with bash script.<br></div>Every time the bash script sets new time interval ncl script is run again and the problem is it takes some time to load this big 2dfield.<br></div>How can i convince ncl script to leave this big data in ram/environment so it dos not need to load every time?</div><div>big 2d field is in .nc format and ncl script just sorts data and saves new .nc subset.</div><div><br></div>maybe its a silly question but i never needed that and im not able to goggle out the issue.<br><br></div>Thank aloft.<span class="m_3584563546334786459m_1299842695786642087HOEnZb"><font color="#888888"><br></font></span></div><span class="m_3584563546334786459m_1299842695786642087HOEnZb"><font color="#888888">Damjan<br></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>