foxes.input.states.PointCloudData.interpolate_data(idims, icrds, d, pts, vrs, times)[source]

Interpolates data to points.

This function should be implemented in derived classes.

Parameters

idims: list of str

The input dimensions, e.g. [x, y, height]

icrds: list of numpy.ndarray

The input coordinates, each with shape (n_i,) where n_i is the number of grid points in dimension i

d: numpy.ndarray

The data array, with shape (n1, n2, …, nv) where ni represents the dimension sizes and nv is the number of variables

pts: numpy.ndarray

The points to interpolate to, with shape (n_pts, n_idims)

vrs: list of str

The variable names, length nv

times: numpy.ndarray

The time coordinates of the states, with shape (n_states,)

Returns

d_interp: numpy.ndarray

The interpolated data array with shape (n_pts, nv)