All if the dim_* functions do varaious tasks as you request below.
See: dim_avg
http://www.ncl.ucar.edu/Document/Functions/Built-in/dim_avg.shtml
or dim_avg_Wrap
http://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_Wrap.shtml
Erik Noble wrote:
> The ncl function "avg" only returns one number:
> a=V_700mb ; [30x70 2D grid]
> average=avg(a) ; Computes the average of a variable regardless of
> dimensionality.
>
> How do I take the average to return a 1x70 matrix now consisting of average
> of each column?
> Is there an average matrix function? Is it called by another name?
> Sincerely,
> Erik
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-- ====================================================== Dennis J. Shea tel: 303-497-1361 | P.O. Box 3000 fax: 303-497-1333 | Climate Analysis Section | Climate & Global Dynamics Div. | National Center for Atmospheric Research | Boulder, CO 80307 | USA email: shea 'at' ucar.edu | ====================================================== _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Fri Jan 25 2008 - 15:55:28 MST
This archive was generated by hypermail 2.2.0 : Mon Jan 28 2008 - 17:01:44 MST