get_aperture_from_model

jwst.pathloss.pathloss.get_aperture_from_model(input_model, match)[source]

Determine the correct aperture in the model to use.

Based on the value of the ‘match’ parameter:

  • For MSA, match is the shutter state string.

  • For fixed slit, match is the name of the slit.

Parameters:
input_modelJwstDataModel

Science data to be corrected

matchstr

Aperture name or shutter state

Returns:
aperturestr or None

Aperture name