interp_helper

jwst.residual_fringe.utils.interp_helper(mask)[source]

Create a convenience function for indexing low-weight values.

Low-weight is defined to be a value less than 1e-5.

Parameters:
maskndarray

The 1D mask array (weights).

Returns:
index_arrayndarray of bool

Boolean index array for low weight pixels.

index_functioncallable

A function, with signature indices = index_function(index_array), to convert logical indices to equivalent direct index values.