<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Do you need to read all times in at once? &nbsp;You could instead loop through and process each time individually.&nbsp;<div class=""><br class=""></div><div class="">times = a-&gt;XTIME &nbsp;;&nbsp;</div><div class=""><br class=""></div><div class="">do t=0, dimsizes(times)-1</div><div class="">print( (/t/) )</div><div class=""><div class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">&nbsp;slp = wrf_user_getvar(a,”slp",t)</div><div class="">printMinMax(slp,0)</div></div></div></div></div><div class="">end do</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 17 May 2016, at 02:58, Saurabh Singh &lt;<a href="mailto:saurabhsingh123op@gmail.com" class="">saurabhsingh123op@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><br class=""></div>NCL Version : 6.3.0<div class="">OS: UBUNTU 16.04</div><div class=""><br clear="all" class=""><div class="">I have an hourly 1 year WRF output. I am tring to extract slp from the data and write in on the file. using the following code :</div><div class=""><br class=""></div><div class=""><div class="">ncl 0&gt; setfileoption("nc", "SuppressClose", False)</div><div class="">ncl 1&gt; files=systemfunc("ls -1 wrfout_d01_2000-*")+".nc"</div><div class="">ncl 2&gt; a=addfiles(files,"w")</div><div class="">ncl 3&gt; slp = wrf_user_getvar(a,"slp",-1)<br class=""></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">However, the code gets stuck on the third line, and the system literraly hangs. Is there any way to achieve this task. NCL or any software outside NCL (in case if NCL is not capable toa chieve this on big file data) ?&nbsp;</div><div class=""><br class=""></div><div class="">As SLP is a derived variable i am ruling out use of NCO and CDO in this problem.</div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><font style="font-family: arial, helvetica, sans-serif;" size="2" class=""><span class="">With regards</span><span class=""></span></font><font style="font-family:arial,helvetica,sans-serif" size="2" class=""><span style="" class=""><span class=""><br class=""></span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2" class=""><span style="" class=""><span class="">Saurabh Kumar singh</span><span class=""></span>
</span></font><br style="color:rgb(51,204,0)" class=""><br class=""><font style="color:rgb(102,102,102)" size="1" class="">&nbsp;<b class=""><i class=""><span style="font-family:Webdings" lang="EN-GB" class="">P</span></i></b><b class=""><i class=""><span style="font-family:Tahoma,sans-serif" lang="EN-GB" class=""> :&nbsp;</span></i></b><b class=""><i class=""><span style="font-family:Arial,sans-serif" lang="EN-GB" class=""> </span></i></b><b class=""><i class=""><span style="font-family:Tahoma,sans-serif" lang="EN-GB" class="">Please consider the environment before printing this e-mail</span></i></b> </font><br style="color:rgb(102,102,102)" class=""><br class=""><br class=""><br class=""></div></div>
</div></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></div></div></body></html>