[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: array dimensions

Paul van Delst wrote:
> IF ( n GT 1 ) THEN SMOOTH( array, n )
> ?
That's fine if you want this to be on a single line, but there are
of times when SMOOTH(array, n) is in a plot command, or in part of a
expression. I think the argument about rebin is exactly similar - of
you can do the checking ahead of time, but who wants to add this check
for every time you do dynamic smoothing? adds lots of unneeded hair to
the code. Smoothing by 1 is not the same as dividing by zero. It is like
convolving with a one-element array, which IDL is perfectly willing to
without complaining and dying.

DIck French