http://www.ncl.ucar.edu/Document/Functions/Contributed/month_to_annual.shtml
You can rearrange the order of your variable to
match the order requires by the 'month_to_annual' question.
http://www.ncl.ucar.edu/Document/Language/reorder.shtml
xyear = month_to_annual(x(Time|:,Lat|:,Lon|:), 1)
printVarSummary(xyear)
Good Luck
On 01/30/2013 01:40 PM, Jiang, Lifen wrote:
> Hello,
>
> I have a dataset which has three dimensions (Lon, Lat, Time). And the
> time scale is monthly.
>
> Which function can I use to get average for a certain year? (Average the
> data of 12 months for each grid)
>
> I greatly appreciate your time to answer my question!
>
> Lifen
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jan 31 10:13:39 2013
This archive was generated by hypermail 2.1.8 : Fri Feb 01 2013 - 15:31:04 MST