[ncl-talk] NCL takes forever to run the code
abrammer at albany.edu
Tue May 17 09:23:13 MDT 2016
Do you need to read all times in at once? You could instead loop through and process each time individually.
times = a->XTIME ;
do t=0, dimsizes(times)-1
print( (/t/) )
slp = wrf_user_getvar(a,”slp",t)
> On 17 May 2016, at 02:58, Saurabh Singh <saurabhsingh123op at gmail.com> wrote:
> NCL Version : 6.3.0
> OS: UBUNTU 16.04
> 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 :
> ncl 0> setfileoption("nc", "SuppressClose", False)
> ncl 1> files=systemfunc("ls -1 wrfout_d01_2000-*")+".nc"
> ncl 2> a=addfiles(files,"w")
> ncl 3> slp = wrf_user_getvar(a,"slp",-1)
> 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) ?
> As SLP is a derived variable i am ruling out use of NCO and CDO in this problem.
> With regards
> Saurabh Kumar singh
> P : Please consider the environment before printing this e-mail
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ncl-talk