Re:Re: [ncl-talk] average wind field

From: nlcheng <cnl88_at_nyahnyahspammersnyahnyah>
Date: Sat Jun 16 2012 - 19:49:53 MDT

I have upload my scripts. I want to caculate the average wind field in April 2011
I use files = systemfunc("ls -1 /storage/sdc1/nlcheng/nudge/box/box/*00:00.nc-box.nc")
and wrf_user_getvar . and line 13 is ua = wrf_user_getvar(a,"ua",-1) ; u on mass points
it turns out errors
please help me to find it
thank you very much

At 2012-06-11 23:55:45,"Mary Haley" <haley@ucar.edu> wrote:
>It would help if you include the error messages that you're getting.
>
>If you are trying to use a list of files with "wrf_user_getvar", you must have NCL V6.0.0 or later. You can see what version you have by typing:
>
> ncl -V
>
>If this is not the issue, then the other problem might be with the system call for "files". You should print out the "files" variable to make sure it is valid.
>
>If neither of these are the issue, then respond back to ncl-talk with the exact error message(s).
>
>Thanks,
>
>--Mary
>
>On Jun 10, 2012, at 11:43 PM, nlcheng wrote:
>
>>
>> I want to caculate the average wind field in April 2011
>> the script I have download can only caculate one day average wind field.
>> when I modify the script such as below:
>> from :
>>
>> a = addfile("/storage/sdc1/nlcheng/nudge/box/box/wrfout_d01_2011-03-26_18:00:00.nc-box.nc","r")
>>
>> to:
>>
>> files = systemfunc("ls -1 /storage/sdc1/nlcheng/nudge/box/box/*00:00.nc-box.nc")
>> a = addfiles(files,"r")
>>
>> it turns out errors. I want to caculate the average month wind field.how can i do ?
>>
>> need your help
>>
>> thank you !
>>
>>
>>
>>
>>
>>
>> <monthuvp.ncl>_______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

____1.png
Received on Sat Jun 16 19:50:05 2012

This archive was generated by hypermail 2.1.8 : Mon Jun 25 2012 - 09:57:23 MDT