NIRCam¶
-
class
webbpsf.webbpsf_core.
NIRCam
[source]¶ Bases:
webbpsf.webbpsf_core.JWInstrument
A class modeling the optics of NIRCam.
Relevant attributes include
filter
,image_mask
, andpupil_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 ofauto_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.