Skip to content

Commit

Permalink
option to manually specify positions for SIP fit
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrammer committed Sep 22, 2023
1 parent 34d91e8 commit 368cb84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions grizli/jwst_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ def model_wcs_header(datamodel, get_sip=True, degree=4, fit_crval=True, fit_rot=
return header


def pipeline_model_wcs_header(datamodel, step=64, degrees=[3,4,5,5], lsq_args=LSQ_ARGS, crpix=None, verbose=True, initial_header=None, max_rms=1.e-4, set_diff_step=False, get_guess=False, fast_coeffs=True):
def pipeline_model_wcs_header(datamodel, step=64, degrees=[3,4,5,5], lsq_args=LSQ_ARGS, crpix=None, verbose=True, initial_header=None, max_rms=1.e-4, set_diff_step=False, get_guess=False, fast_coeffs=True, uvxy=None):
"""
Iterative pipeline to refine the SIP headers
"""
Expand Down Expand Up @@ -1984,7 +1984,8 @@ def pipeline_model_wcs_header(datamodel, step=64, degrees=[3,4,5,5], lsq_args=LS
get_sip=True,
get_guess=get_guess,
crpix=crpix,
set_diff_step=set_diff_step)
set_diff_step=set_diff_step,
uvxy=uvxy)

xrms = h['SIPRAMAD']
yrms = h['SIPDEMAD']
Expand Down

0 comments on commit 368cb84

Please sign in to comment.