visualize_nrs_fov

breads.jwst_tools.visualize_nrs_fov(comp_name, comp_sep, comp_pa, v3pa, center_on='star', show_inner_diff_spikes=True, diff_spike_len=2, psf_core_check_radius=0.15, nirspec_aperture='ifu', offset_star=None, ax=None, disk_pa=None, disk_semimajor_axis=None, disk_inclination=None, verbose=False)[source]

Visualize NIRSpec IFU or slit FOV for a companion

Parameters:
comp_namestr

Name of a companion. Used only for plot label. Can be a list.

comp_sepastropy.units.Quantity

Separation of companion, in arcseconds or equivalent unit. Can be a list.

comp_paastropy.units.Quantity

PA of companion, in degrees or equivalent unit. Can be a list.

v3pafloat

JWST observatory V3 PA value to use when creating the figure

center_onstr

Where to center the IFU FOV. May be “star”, “companion”, “midpoint” between them. Alternatively use offset_star

offset_starlist or ndarray of floats

Offset [∆V2, ∆V3] for where the star should be positioned. CAUTION THESE ARE NOT THE SAME VALUES AS WOULD BE NEEDED IN AN APT OFFSET REQUIREMENT. THAT OFFSET REQUIREMENT NEEDS VALUES IN THE INSTRUMENT LOCAL IDEAL COORDINATE SYSTEM.

show_inner_diff_spikesbool

Also display lines to indicate the inner smaller set of diffraction spikes in JWST’s complex PSF.

diff_spike_lenfloat

length to draw the spikes, in arcseconds

nirspec_aperture: str

e.g., “ifu” or “S200A1”, etc.

psf_core_check_radiusfloat

Radius in arcseconds to use when checking for proximity to the stellar PSF core. The code will check and warn about potentially saturated pixels near the PSF core, and will flag those IFU slices in red. You can adjust this parameter based on expectations for how many spaxels may saturate for your target.

Returns:
None