Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update MAST query for OPDs to also retrieve OPDs from FP6 #945

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading