sup3r.utilities.utilities.enforce_limits

Contents

sup3r.utilities.utilities.enforce_limits#

enforce_limits(features, data, nn_fill=False)[source]#

Enforce physical limits for feature data

Parameters:
  • features (list) – List of features with ordering corresponding to last channel of data array.

  • data (ndarray) – Array of feature data

  • nn_fill (bool) – Whether to fill values outside of limits with nearest neighbor interpolation. If False, values outside of limits are set to the limits.

Returns:

data (ndarray) – Array of feature data with physical limits enforced