From 350f65e83f32b0b6743b29b029d7dcf90d024f6f Mon Sep 17 00:00:00 2001 From: Rachel Cooper Date: Wed, 31 Jul 2024 14:10:33 -0400 Subject: [PATCH] Use MASK_NRM to match AMI data --- webbpsf/match_data.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webbpsf/match_data.py b/webbpsf/match_data.py index 8b8e372a..2f0fb098 100644 --- a/webbpsf/match_data.py +++ b/webbpsf/match_data.py @@ -78,6 +78,10 @@ def setup_sim_to_match_file(filename_or_HDUList, verbose=True, plot=False, choic if header['APERNAME'] == 'MIRIM_SLIT': inst.image_mask = 'LRS slit' + elif inst.name == 'NIRISS': + if header['PUPIL'] == 'NRM': # else could be CLEARP for KPI observations + inst.pupil_mask = 'MASK_NRM' + # TODO add other per-instrument keyword checks if verbose: