Skip to content

← signal_processing package

InterpolateGaps

Finds and interpolate gaps in data.

Automatically finds gaps, ets a new timestamp using sampling rate (if provided) or determines sampling rate from input data, then interpolates data to new timestamps. Optionally this node can fill in missing data points with NaN values instead of interpolation. Currently only does 1-d interpolation on offline chunks for timeaxes. More Info... Version 1.0.1

Ports/Properties

data

Data to process.

verbose name
Data
default value
None
port type
DataPort
value type
Packet (can be None)
data direction
INOUT

kind

Specifies the kind of interpolation. ‘zero’, ‘slinear’, ‘quadratic’ and ‘cubic’ refer to a spline interpolation of zeroth, first, second or third order. If specify_order is selected then the order param must also be specified.

verbose name
Kind Of Interpolation
default value
linear
port type
EnumPort
value type
str (can be None)

order

Order parameter if kind is 'specify_order'.

verbose name
Order Parameter (Kind Specify_order Only)
default value
None
port type
IntPort
value type
int (can be None)

srate

Set the desired sampling rate. If none is specified the sampling rate is determined the rate previously set, or if no rate is set then it will calculate the rate based on the median timestamps'.

verbose name
Sampling Rate
default value
None
port type
FloatPort
value type
float (can be None)

use_markers

Check this box if you want to use marker times for start and/or end points. This is desirable if your marker endpoints extend beyond the data timestamps because of missing data.

verbose name
Use Markers For Endpoints
default value
False
port type
BoolPort
value type
bool (can be None)

marker_start

Specify marker name (as string) to determine starting timepoint.

verbose name
Marker Startpoint
default value
None
port type
StringPort
value type
str (can be None)

marker_end

Specify marker name (as string) to determine ending timepoint.

verbose name
Marker Endpoint
default value
None
port type
StringPort
value type
str (can be None)

allow_extrapolation

You probably shouldn't use this. Extrapolation is only warranted in extreme circumstances where the data being interpolated/extrapolated is highly smoothed and the extrapolated samples are within 1/fs sec away. This might be the case if e.g. you are trying to align two time series after already using SelectRange to slice their axes to the minimum overlap.

verbose name
Allow Extrapolation
default value
False
port type
BoolPort
value type
bool (can be None)

fill_nans

Checking this box will not use interpolation, but instead fill missing data points with NaN ("not a number") values.

verbose name
Insert Nans
default value
False
port type
BoolPort
value type
bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)