Skip to main content

Interp4DPath

Interp4DPath dWave, pathWave

The Interp4DPath operation computes the (4D) linearly interpolated values of 4dWave for each position specified by a row of pathWave. Here pathWave is a 4 column numeric wave in which the first column contains the X coordinate, the second column contains the Y coordinate, the third column contains the Z coordinate and the fourth contains the T coordinate. Interp4DPath stores the resulting interpolated values in the wave W_Interpolated4DPath or as specified by the /DEST flag. Interp4DPath is equivalent to calling the Interp4D() function for each row in pathWave, but it is computationally more efficient.

If the position specified by the pathWave is outside the domain of 4dWave, or if it contains a NaN, the operation stores a NaN in the corresponding output entry.

Both 4dWave and pathWave can be of any numeric type, but the output W_Interpolated4DPath is always of type NT_FP64.

Flags

/DEST=dWaveSpecify the destination wave for the interpolation. If you do not use this flag, the operation saves the output in the wave W_Interpolated4DPath in the current data folder.
/FREECreates the user-specified destination wave as a free wave.
/FREE is allowed only in functions, and only if the destination waves are simple names or wave reference structure fields.
See Free Waves for more discussion.

See Also

Interpolation overview. The ImageInterpolate, Interpolate2, Interp3DPath, Interpolate3D, SphericalInterpolate, operations and the interp, Interp2D, Interp3D, and Interp4D functions.