Skip to content

Commit

Permalink
update MAST query for OPDs to also check FP6. And include field point…
Browse files Browse the repository at this point in the history
… in load_wss_opd verbose message
  • Loading branch information
mperrin committed Dec 6, 2024
1 parent 2c8affb commit 7283bbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webbpsf/mast_wss.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def infer_pre_or_post_correction(row):
return 'UNKNOWN'


def retrieve_mast_opd_table(aperture_list=['NRCA3_FP1'], verbose=False):
def retrieve_mast_opd_table(aperture_list=['NRCA3_FP1', 'NRCA1_FP6'], verbose=False):
"""Retrieve table of OPDs from MAST.
Returns : Astropy table listing available OPDs and metadata such as dates and sensing type.
Expand Down
6 changes: 3 additions & 3 deletions webbpsf/webbpsf_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1697,12 +1697,12 @@ def load_wss_opd(self, filename, output_path=None, backout_si_wfe=True, verbose=
axes[0, 0].set_xlabel(f'RMS: {utils.rms(opdhdu[0].data*1e9, ote_pupil_mask):.2f} nm rms')

if backout_si_wfe:
if verbose:
print('Backing out SI WFE and OTE field dependence at the WF sensing field point')

# Check which field point was used for sensing
sensing_apername = opdhdu[0].header['APERNAME']

if verbose:
print(f'Backing out SI WFE and OTE field dependence at the WF sensing field point ({sensing_apername})')

# Create a temporary instance of an instrument, for the sensng instrument and field point,
# in order to model and extract the SI WFE and OTE field dep WFE at the sensing field point.

Expand Down

0 comments on commit 7283bbb

Please sign in to comment.