[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: array dimensions
"Richard G. French" wrote:
>
> Craig Markwardt wrote:
>
> > If you are interested in important keywords, I've found
> > SMOOTH(/EDGE_TRUNCATE) indispensable, as well as CONVOL(/CENTER). I
> > don't do *that* much time series analysis but it seems I always need
> > these keywords when I do.
> >
>
> Now that you mention SMOOTH, one of my pet peeves is that
> y=SMOOTH(array,n) gives an error message when n=1. There are lots of
> instances where the degree of smoothing is calculated on the fly,
> and one common instance is that you want no smoothing at all - i.e.
> just give me the original array, unsmoothed.
Jeez, how about:
IF ( n GT 1 ) THEN SMOOTH( array, n )
?
--
Paul van Delst A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP Drink deep, or taste not the Pierian spring;
Ph: (301)763-8000 x7274 There shallow draughts intoxicate the brain,
Fax:(301)763-8545 And drinking largely sobers us again.
paul.vandelst@noaa.gov Alexander Pope.