On 7/28/2009 8:03:50 PM, Tom_Gutman wrote:
>You're pretty brave, doing a
>cubic spline on such jagged
>data.
Not really. I looked at it on a fine mesh, and decided it was 6 of one and half a dozen of the other. As an example, picking one strong absorption band, if you were to look at 758.6 at the edge of the band the spline is clearly wrong, and a linear interpolation would be closer. On the other hand, if you look at the absorption maximum at 760.6 the spline is clearly better than the linear interpolation.
> Doesn't make much
>diffference to the integral,
>though.
I didn't bother to check that, but it doesn't surprise me. Neither interpolant is ideal, and I suspect that the high and low errors somewhat cancel in both cases.
It makes things a little painful that the spectral data has unequal x. There are delta x values of 0.5, 1, 2, 3, and 5. If they were equal a good approach would be to FFT the data, zero pad, apodize, and IFFT to increase the data point density. With a suitable choice of apodization you get a good preservation of band shape. I suppose this could still be done, by breaking the data into chunks, but it's too much work 🙂
>But why did you limit the
>integration to 300-1000 when
>the data appear to be
>available from 280 to 1200?
I didn't know what the desired range was, so I just picked some numbers that were within the allowed limits.
Richard