[ncl-talk] the script runs forever ,how to optimize ?

Alan Brammer abrammer at albany.edu
Mon Oct 13 15:16:22 MDT 2014


!! These lines are example and not intended to work without editing. !!

You need to define ntimes.

See dimsizes() function. I'm not going to type it out for sake of
education.
On 13 Oct 2014 17:11, "Saurabh Singh" <saurabhsingh123op at gmail.com> wrote:

>
> On Tue, Oct 14, 2014 at 4:59 AM, Alan Brammer <abrammer at albany.edu> wrote:
>
>> rhp= new( (/ntimes, 3/), float)
>>
>> do t=0,ntimes-1
>> rhp(t,:) = wrf_interp_1d(rh(t,:,60,41), p(t,:,60,41), (/500,850,1000/))
>> end do
>>
>
> the error persists mate
>
> fatal:Variable (ntimes) is undefined
> fatal:["Execute.c":7743]:Execute: Error occurred at or near line 10 in
> file chota.ncl
>
> fatal:Variable (ntimes) is undefined
> fatal:["Execute.c":7743]:Execute: Error occurred at or near line 11 in
> file chota.ncl
>
> even t the #0 subscript seems to be undefined .sorry for all the trouble
> but i hardly use loops in NCL .
>
>
> --
> With regards
> Saurabh Kumar singh
>
>  *P** : * *Please consider the environment before printing this e-mail*
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141013/bf77230e/attachment.html 


More information about the ncl-talk mailing list