NIRCam

class webbpsf.NIRCam[source]

Bases: webbpsf.webbpsf_core.JWInstrument

A class modeling the optics of NIRCam.

Relevant attributes include filter, image_mask, and pupil_mask.

The NIRCam class is smart enough to automatically select the appropriate pixel scale for the short or long wavelength channel based on the selected detector (NRCA1 vs NRCA5, etc), and also on whether you request a short or long wavelength filter. The auto-selection based on filter name can be disabled, if necessary, by setting auto_channel = False. Setting the detector name always toggles the channel regardless of auto_channel.

Note, if you use the monochromatic option for calculating PSFs, that does not invoke the automatic channel selection. Make sure to set the correct channel prior to calculating any monochromatic PSFs.

Special Options: The ‘bar_offset’ option allows specification of an offset position along one of the coronagraph bar occulters, in arcseconds. ` nc.image_mask = 'MASKLWB' nc.options['bar_offset'] = 3 # 3 arcseconds towards the right (narrow end on module A) `

The ‘nd_squares’ option allows toggling on and off the ND squares for TA in the simulation. Note that these of course aren’t removable in the real instrument; this option exists solely for some simulation purposes.

Attributes Summary

LONG_WAVELENGTH_MAX

LONG_WAVELENGTH_MIN

SHORT_WAVELENGTH_MAX

SHORT_WAVELENGTH_MIN

channel

filter

Currently selected filter name (e.g.

module

Attributes Documentation

LONG_WAVELENGTH_MAX = 5.299999999999999e-06
LONG_WAVELENGTH_MIN = 2.35e-06
SHORT_WAVELENGTH_MAX = 2.35e-06
SHORT_WAVELENGTH_MIN = 6e-07
channel
filter

Currently selected filter name (e.g. F200W)

module