general/tplot/
data_cut.pro
Routines
top source data_cut
result = data_cut(name, t, COUNT=COUNT, EXTRAPOLATE=EXTRAPOLATE, INTERP_GAP=INTERP_GAP, gap_thresh=gap_thresh, GAP_DIST=GAP_DIST, MISSING=MISSING)
FUNCTION: A = data_cut(name, t) PURPOSE: Interpolates data from a data structure. INPUT: name: Either a data structure or a string that can be associated with a data structure. (see "get_data" routine) the data structure must contain the element tags: "x" and "y" the y array may be multi dimensional. t: (scalar or array) x-values for interpolated quantities. RETURN VALUE: a data array: the first dimension is the dimension of t the second dimension is the dimension of name NOTE!! keyword options have been temporarily removed!!!! KEYWORDS: EXTRAPOLATE: Controls interpolation of the ends of the data. Effects: 0: Default action. Set new y data to NAN or to MISSING. 1: Extend the endpoints horizontally. 2: Extrapolate the ends. If the range of 't' is significantly larger than the old time range, the ends are likely to blow up. INTERP_GAP: Determines if points should be interpolated between data gaps, together with the GAP_DIST. IF the data gap > GAP_DIST, follow the action of INTERP_GAP 0: Default action. Set y data to MISSING. 1: Interpolate gaps GAP_DIST: Determines the size of a data gap above which interpolation is regulated by INTERP_GAP. Default value is 5, in units of the average time interval: delta_t = (t(end)-t(start)/number of data points) MISSING: Value to set the new y data to for data gaps. Default is NAN. CREATED BY: Davin Larson LAST MODIFICATION: @(#)data_cut.pro 1.19 02/04/17 Added the four keywords. (fvm 9/27/95)
Parameters
- name
- t
Keywords
- COUNT
- EXTRAPOLATE
- INTERP_GAP
- gap_thresh
- GAP_DIST
- MISSING
File attributes
Modification date: | Thu Feb 13 16:43:15 2014 |
Lines: | 37 |