nsrdb.utilities.interpolation.agg

agg(data, indices)[source]

Spatal interpolation by aggregation of nearest neighbors.

Parameters:
  • data (np.array) – Coarse resolution NSRDB data to be interpolated. Must be for a single timestep and be flattened/raveled.

  • indices (np.ndarray) – Index array generated by a sklearn Tree query.

Returns:

out (np.array) – NSRDB data that has been aggregated.