Extract selected data based on time wave
erickbermont
Hi, I have 3 waves:
DataWave - The data with number of points equal to number of points in TimeWave
TimeWave - The time wave of the DataWave
2ndTimeWave - A time wave to use for the selection of data, it has much more less number of points than DataWave or TimeWave
I want to create a NewDataWave from the extraction of DataWave, but employing the times from 2ndTimeWave as indexer, so then, NewDataWave will have the same number of points as 2ndTimeWave.
I hope somebody can help me, thanks in advance.
Try using the interpolate dialog. Create the four waves first, then take select the 2nd time wave as destination coordinates.
Interpolate2/T=1/Y=shortdatawave/X=shorttimewave/I=3 longtimewave,longdatawave
February 8, 2021 at 11:21 am - Permalink
In reply to Try using the interpolate… by tony
Thanks a lot! That worked perfectly, I would have never found interpolate2 as a solution, since in the help browser that function is described as a smoothing technique.
February 8, 2021 at 07:33 pm - Permalink
Great that your problem has been resolved. Just to avoid confusion: You may have misread the possible option to use a 'smoothing spline' for interpolation as some kind of smoothing operation. But Interpolate2 does as the name says just an interpolation, i.e., it constructs new values between a discrete set of given values. In fact, with the option /T=1 (linear interpolation) as proposed by Tony there is no smoothing done at all.
February 8, 2021 at 11:42 pm - Permalink