create_slitlets

jwst.msaflagopen.msaflag_open.create_slitlets(shutter_refname)[source]

Create slitlets for each failed open shutter.

For the created slit objects, “shutter_id” is an integer that uniquely defines the shutter in the quadrant, calculated from the x and y center of the shutter.

In the Slit tuple, the only values that matter are “name” (must be unique), xcen, ycen, quadrant (from msaoper file), ymin, ymax (should be -0.5, 0.5), and shutter state (should be ‘x’, for one open shutter). Default values are assigned for all other values.

Returns:
slitletslist of Slit

A list of slitlets. Each slitlet is a named tuple with elements (“name”, “shutter_id”, “dither_position”, “xcen”, “ycen”, “ymin”, “ymax”, “quadrant”, “source_id”, “shutter_state”, “source_name”, “source_alias”, “stellarity”, “source_xpos”, “source_ypos”, “source_ra”, “source_dec”).