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:
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 shuttershutter_elements['open_open']: Goes from the center of an open shutter to the center of the next shutter, if that shutter is openshutter_elements['open_closed']: Goes from the center of an open shutter to the center of the next shutter, if that shutter is closedshutter_elements['closed_open']: Goes from the center of a closed shutter to the center of the next shutter, if that shutter is openshutter_elements['closed_closed']: Goes from the center of a closed shutter to the center of the next shutter, if that shutter is also closedshutter_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_model
BarshadowModel The barshadow model used to construct these pieces.
- barshadow_model
- Returns:
- shutter_elementsdict
Dictionary (specified above) with the pieces.