[ncl-talk] Daily average not working
ali mughal
mughalali655 at gmail.com
Wed Sep 22 08:06:39 MDT 2021
Yes thanks solved.
I now have average over 28 days.
In order to have a 24 hour average for these 28 days is there a similar
function available or do I need to write a do loop ?
On Wednesday, September 22, 2021, Rick Brownrigg <brownrig at ucar.edu> wrote:
> HI,
>
> The docs say that function should be in:
>
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
> which in your case, looks like that would be:
>
> /opt/ncl-6.5/lib/ncarg/nclscripts/csm/contributed.ncl
>
> and in ncl vers. >= 6.4.0 that script should be loaded automatically. Do
> you have this file on your system and does it contain the function?
>
> (see http://ncl.ucar.edu/Document/Functions/Contributed/
> calculate_daily_values.shtml)
>
> Rick
>
>
> On Wed, Sep 22, 2021 at 1:10 AM ali mughal via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Why is the following script providing error? I am using ncl 6.5
>>
>> load "/opt/ncl-6.5/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"
>>
>> a=addfile("BEM_April","r")
>> xb=a->TA_MEAN(24:695,0,:,:)
>> times=a->Times(24:695,:)
>> xb&Time := wrf_times_c(times, 0)
>> xbDayAvg = calculate_daily_values(xb, "avg", 0, False)
>>
>> *Error*
>>
>> fatal:Undefined identifier: (calculate_daily_values) is undefined, can't
>> continue
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210922/48924d52/attachment.html>
More information about the ncl-talk
mailing list