Re: cumulative sum

From: Sijikumar S <sijikumar_at_nyahnyahspammersnyahnyah>
Date: Fri, 16 Feb 2007 09:27:46 +0100

Dennis,
I am looking for a function that described by Keith, not sum over a
dimension.
Siji

> >
> > sum, dim_sum
> >
> > http://www.ncl.ucar.edu/Document/Functions/Built-in/sum.shtml
> > http://www.ncl.ucar.edu/Document/Functions/Built-in/dim_sum.shtml
> >
> > ----
> > If you are looking for a function that does "something" [eg, sum]
> > type sum in the Search box in the upper left of all NCL web pages.
> >
>
> Dennis,
>
> I don't think sum and dim_sum do what the original poster is asking for.
> He is looking for a cumulative sum, which is sometimes called an
> indefinite or running sum. At times I have wanted the same
> functionality. In matlab you can use cumsum and in ferret you can use
> the @rsu transformation. I have not come across a way to do it in NCL
> without resorting to a loop. If someone knows how to do this and avoid
> the loop, I'd love to hear about it as well.
>
> Keith
>
> --
> ******************************************************************
> Keith Lindsay http://www.cgd.ucar.edu/oce/klindsay/
> email: klindsay_at_ucar.edu phone: 303-497-1722 fax: 303-497-1700
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Feb 16 2007 - 01:27:46 MST

This archive was generated by hypermail 2.2.0 : Thu Feb 22 2007 - 14:54:01 MST