general/misc/
xdegap.pro
Routines
top source xdegap
xdegap, dt, margin, ct0, y, ct_out, y_out, nowarning=nowarning, iindices=iindices, maxgap=maxgap, flag=flag, onenanpergap=onenanpergap, output_message=output_message, display_object=display_object, twonanpergap=twonanpergap, gap_begin=gap_begin, gap_end=gap_end, _extra=_extra
NAME:
xdegap
PURPOSE:
Locates gaps in data, and fills in with NaN
This subroutine accepts the time array (can be cline time) t and the
multi-dimensional array yarr that matches with the time array.
It outputs the same arrays but with a different number of rows
depending on how many rows were added. It then figures out where to
add rows by checking which time differences are greater than or equal to
deltat plus a margin and adds an array of rows of equispaced times of
size tstep=gap/(number_of_points_that_fit_with_minimum_cumulative_error).
The same number of rows is added to yarr with values equal to
FLAGs.
NOTE: ARRAYS AND STRUCTURES THAT NEED DEGAPPING ARE REDEFINED TO BE
LARGER THAN BEFORE. THUS THE TIME COLUMN THAT HAS BEEN DEGAPPED
WILL NOT CORRESPOND TO THE ELEMENTS OF AN ARRAY THAT HAS NOT BEEN
DEGAPPED. CAUTION: DEGAP ALL ARRAYS OR STRUCTURES YOU ARE GOING TO USE
TOGETHER, I.E., WITH ONE DEGAP CALL.
ADDITIONAL NOTE: To conserve memory, see the ONENANPERGAP keyword.
CALLING SEQUENCE:
xdegap, dt, margin, ct, y, ct_out, y_out [,/nowarning] [,maxgap =
Parameters
- dt
- margin
- ct0
- y
- ct_out
- y_out
Keywords
- nowarning
- iindices
- maxgap
- flag
- onenanpergap
- output_message
- display_object
- twonanpergap
- gap_begin
- gap_end
- _extra
File attributes
Modification date: | Mon Jun 9 05:59:05 2014 |
Lines: | 208 |