Interpolate ADAF

../../../../_images/interpolate.svg

Interpolate timeseries to a single timebasis.

Documentation

The new timebasis can either be an existing timebasis in the ADAF-file or a timebasis with a timestep defined by the user. The timeseries that will be interpolated are selected in a list. The output file will contain a single system and raster with all the chosen timeseries. Signals in the configuration GUI corresponds to timeseries in the ADAF.

Interpolation methods are chosen separately for different groups of data types: non-numeric, integer, other numeric.

Methods:

zero:

Zero-order hold (preceding sample)

nearest:

Nearest neighbor interpolation (nearest sample)

linear:

Linear interpolation

quadratic:

Quadratic spline interpolation

cubic:

Cubic spline interpolation

Notable behaviors:

  • Extrapolated values are masked.

  • Non-finite values are treated as NaN.

  • Fallback to nearest when usable samples too few for the selected method (fallback might change in future versions).

Definition

Input ports

port1 adaf

Input ADAF

Output ports

port1 adaf

Interpolated ADAF

Configuration

(no label) (bool_interp_method)

Method used to interpolate boolean, text, and byte string data

Time step (dt)

Time step in new timebasis. If old timebasis is of type datetime this is considered to be in seconds.

(no label) (int_interp_method)

Method used to interpolate integer data

(no label) (interpolation_method)

Method used to interpolate other data types

Timebasis to use for interpolation (new_tb)

Timebasis to use as new timebasis for selected timeseries

Export time basis only (only_timebasis)

Choose to only export the time basis

Choose signals (ts)

Choose signals to interpolate

Time step approach (use_dt)

Choose between a custom time step and using an existing.

Examples

Implementation

class node_interpolation.InterpolateADAF[source]