create_shadow

jwst.barshadow.bar_shadow.create_shadow(shutter_elements, shutter_status)[source]

Create a bar shadow reference array from the shutter elements.

Parameters:
shutter_elementsdict

The shutter elements dictionary.

shutter_statusstr

String describing the shutter status:

  • 0: Closed

  • 1: Open

  • x: Contains source

Returns:
shadow_arrayndarray

The constructed bar shadow array.