mast_exposure_apertures

grizli.jwst_utils.mast_exposure_apertures(filename='jw06640052001_0310h_00001_nrs1_rate.fits', mast_apertures={'MIRI': ['MIRIM_ILLUM', 'MIRIM_TALRS', 'MIRIM_SLIT'], 'NIRCAM': ['NRCA1_FULL', 'NRCA2_FULL', 'NRCA3_FULL', 'NRCA4_FULL', 'NRCA5_FULL', 'NRCB1_FULL', 'NRCB2_FULL', 'NRCB3_FULL', 'NRCB4_FULL', 'NRCB5_FULL'], 'NIRISS': ['NIS_CEN'], 'NIRSPEC': ['NRS_S200A1_SLIT', 'NRS_S200A2_SLIT', 'NRS_S400A1_SLIT', 'NRS_S1600A1_SLIT', 'NRS_S200B1_SLIT', 'NRS_FULL_IFU', 'NRS_VIGNETTED_MSA1', 'NRS_VIGNETTED_MSA2', 'NRS_VIGNETTED_MSA3', 'NRS_VIGNETTED_MSA4']}, attitude=None, output='list', siaf_frame='sky', **kwargs)[source]

Generate pysiaf apertures associated with a particular telescope pointing

Parameters
filenamestr

JWST exposure filename

mast_aperturesdict

List of apertures to generate with keys of the instrument name

attitudearray-like

pysiaf attitude matrix. If not provided, try to generate from filename and other inputs

outputstring
Output type:
  • list: list of pysiaf.Aperture objects

  • sregion: list of sregion.SRegion objects

  • reg: list of DS9 region strings

Returns
resultlist

List of aperture information based on output