create_shutter_elements

jwst.barshadow.bar_shadow.create_shutter_elements(barshadow_model)[source]

Create half-shutter pieces for assembling a full barshadow array.

The pieces are:

  1. shutter_elements['first']: Goes from the bottom edge of the array (at 1 shutter width from the center of the first shutter) to the center of the first shutter

  2. shutter_elements['open_open']: Goes from the center of an open shutter to the center of the next shutter, if that shutter is open

  3. shutter_elements['open_closed']: Goes from the center of an open shutter to the center of the next shutter, if that shutter is closed

  4. shutter_elements['closed_open']: Goes from the center of a closed shutter to the center of the next shutter, if that shutter is open

  5. shutter_elements['closed_closed']: Goes from the center of a closed shutter to the center of the next shutter, if that shutter is also closed

  6. shutter_elements['last']: Goes from the center of the last open shutter to the top edge of the shutter array (1 shutter width from the center of the last open shutter)

Parameters:
barshadow_modelBarshadowModel

The barshadow model used to construct these pieces.

Returns:
shutter_elementsdict

Dictionary (specified above) with the pieces.