fringes2pistons

jwst.ami.utils.fringes2pistons(fringephases, nholes)[source]

Extract pistons out of fringes.

For nrm_model.py to use to extract pistons out of fringes, given its hole bookkeeping, which apparently matches that of this module, and is the same as Noah Gamper’s.

Parameters:
fringephases1D int array

Fringe phases

nholesint

Number of holes

Returns:
np.dot(Apinv, fringephases)1D int array

Pistons in same units as fringe phases