Skip to content

Commit

Permalink
TODO: Legendre polynomial fits
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Apr 15, 2019
1 parent d5528ac commit e5dc149
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pynrc/nrc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,9 @@ def psf_coeff(filter_or_bp, pupil=None, mask=None, module='A',

# Simultaneous polynomial fits to all pixels using linear least squares
# 7th-degree polynomial seems to do the trick
# TODO: Look into Legendre polynomial fits
# - numpy.polynomial.legendre.Legendre.fit
# - numpy.polynomial.legendre.legfit
if ndeg is None:
ndeg = 7 if quick else 10
coeff_all = jl_poly_fit(waves, images, ndeg)
Expand Down

0 comments on commit e5dc149

Please sign in to comment.