[ncl-talk] NCL takes forever to run the code

Alan Brammer 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)
printMinMax(slp,0)
end do



> 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:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160517/74ce4931/attachment.html 


More information about the ncl-talk mailing list