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: