Skip to content

Commit

Permalink
add NIRCam coron narrow positions
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrin committed Nov 16, 2017
1 parent 6dd320e commit 6d5059d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webbpsf/optics.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@ class NIRCam_BandLimitedCoron(poppy.BandLimitedCoron):
"F187N": -1.571,
"F210M": -0.071,
"F212N": 0.143,
"F200W": 0.232}
"F200W": 0.232,
'narrow':-8.00}
""" Offsets per filter along SWB occulter for module A, in arcsec"""

offset_lwb = {"F250M": 6.846,
Expand All @@ -712,7 +713,8 @@ class NIRCam_BandLimitedCoron(poppy.BandLimitedCoron):
"F430M": 1.043,
"F460M": -0.098,
"F480M": -0.619,
"F444W": -0.768}
"F444W": -0.768,
'narrow': 8.0}
""" Offsets per filter along LWB occulter for module A, in arcsec"""


Expand Down
16 changes: 16 additions & 0 deletions webbpsf/tests/test_nircam.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,20 @@ def test_validate_nircam_wavelengths():
nc._validateConfig(wavelengths=np.linspace(nc.LONG_WAVELENGTH_MAX, nc.LONG_WAVELENGTH_MAX + 1e-6, 3))
assert _exception_message_starts_with(excinfo,"The requested wavelengths are too long to be imaged with NIRCam")

def test_nircam_coron_unocculted(plot=False):
""" NIRCam with lyot mask but not an occulter
See https://github.com/mperrin/webbpsf/issues/157
"""

nc = webbpsf_core.NIRCam()
nc.pupilopd = None
nc.filter='F212N'
nc.pupil_mask='WEDGELYOT'
nc.image_mask=None

if plot:
nc.display()

psf = nc.calc_psf(monochromatic=2.12e-6)
return(psf)

0 comments on commit 6d5059d

Please sign in to comment.