general/misc/
interp.pro
Routines
top source interp
result = interp(y, x, u, index=index, no_check_monotonic=no_check_monotonic, no_extrapolate=no_extrapolate, interp_threshold=interp_threshold, ignore_nan=ignore_nan)
FUNCTION: interp(y,x,u) PURPOSE: Linearly Interpolates vectors with an irregular grid. INTERP is functionally the same as INTERPOL, however it is typically much faster for most applications. USAGE: result = interp(y,x,u) INPUTS: Y: The input vector can be any type except string. X: The absicissae values for Y. This vector must have same # of elements as Y. The values MUST be monotonically ascending or descending. U: The absicissae values for the result. The result will have the same number of elements as U. U does not need to be monotonic. KEYWORDS: NO_CHECK_MONOTONIC: set this keyword to skip the check for monotonic data. INDEX: Set to named variable to return the index of the closest x less than u. (same dimensons as u) NO_EXTRAPOLATE: Set this keyword to prevent extrapolation. INTERP_THRESHOLD: Set to minimum allowed gap size. CREATED BY: Davin Larson 4-30-96 FILE: interp.pro VERSION: 1.15 LAST MODIFICATION: 02/04/17
Parameters
- y
- x
- u
Keywords
- index
- no_check_monotonic
- no_extrapolate
- interp_threshold
- ignore_nan
File attributes
Modification date: | Fri Nov 21 06:43:18 2014 |
Lines: | 60 |