normal_shape
- jwst.ipc.x_irs2.normal_shape(input_model, n=None, r=None, detector=None)[source]
Determine the shape of the ‘normal’ pixel data when excluding interleaved reference pixels.
- Parameters:
- input_model
JwstDataModelor ndarray Either the input science data model or the data array from the input data model.
- nint or None
If not None, this value will be used for the
nrs_normalparameter. Ifnis None, the value will be obtained from the metadata forinput_model, or, if this fails (e.g., ifinput_modelis actually an ndarray), a default value will be used. None is the default.- rint or None
If not None, this value will be used for the
nrs_referenceparameter. See also the description forn. None is the default.- detectorstr or None
When
input_modelis aJwstDataModel, the detector name can be gotten from the metadata. Ifinput_modelis an ndarray, the detector name should be explicitly specified. For NIRSpec data, the value should be either “NRS1” or “NRS2”.
- input_model
- Returns:
- tuple of int
The shape of the input science data array.