Re: Interpolation

From: Joseph Zambon <jbzambon_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 31 2011 - 12:56:27 MDT


Seems like an easy way to double the time output on regular intervals would be to linearly interpolate by finding the averages between the timesteps.... Say you have regular 6-hourly output (4x daily: t0, t6, t12, t18, t24, etc...)


If the temporal spacing is irregular then a simple average would not work and you have to weight accordingly. This is assuming the spatial array is the same for all timesteps, if not, then you need to 2d or 3d interpolate spatially the same grid and then interpolate temporally.


Joseph B. Zambon
NC State University
Department of Marine, Earth and Atmospheric Sciences
Jordan 4133

On Oct 30, 2011, at 4:12 PM, jrbuzan wrote:

> Hello,
> I am attempting to take Pressure at 4x daily (time) output and interpolate it to 8x daily (time) output.
> So far, the schemes that I have found (eg. linint1) require the arrays to be the same size. Is there are way to interpolate to a larger array size (or the reverse, take 8x daily and make it 4x daily)?
> Thanks,
> Jonathan R. Buzan
> PhD Student, Earth and Atmospheric Sciences
> Purdue University
> 550 Stadium Mall Dr.
> West Lafayette, IN 47907
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Oct 31 12:56:38 2011

This archive was generated by hypermail 2.1.8 : Tue Nov 01 2011 - 13:43:04 MDT