comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: INTERPOLATE Function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: INTERPOLATE Function [message #80395] Wed, 06 June 2012 14:33
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
On 6 juin, 22:17, laurisilla <laurisi...@gmail.com> wrote:
> Basically, what I want to do is fill in gaps in my time series. I´ve got an array of temperatures with some blank spaces that I want to fill.
>
> Which method will be the best?
> --http://compgroups.net/comp.lang.idl-pvwave/interpolate-fun ction/1118866
>
>

A simple method would be:
w = where(data ne 0)
interpolated_data = interpol(data[w], w, lindgen(N_elements(data)))

alx.
RE: INTERPOLATE Function [message #80396 is a reply to message #80395] Wed, 06 June 2012 13:17 Go to previous message
laurisilla is currently offline  laurisilla
Messages: 9
Registered: June 2012
Junior Member
Basically, what I want to do is fill in gaps in my time series. I´ve got an array of temperatures with some blank spaces that I want to fill.

Which method will be the best?
--http://compgroups.net/comp.lang.idl-pvwave/interpolate-fun ction/1118866
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Method Overrides
Next Topic: resampling on irregular grid

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:26:32 PDT 2025

Total time taken to generate the page: 0.00590 seconds