detector_science_frame_transform

jwst.lib.reffile_utils.detector_science_frame_transform(data, fastaxis, slowaxis)[source]

Swap data array from detector to science frame.

Use the fastaxis and slowaxis keywords to invert and/or transpose data array axes to move from the detector frame to the science frame.

Parameters:
datanp.array

Data array containing at least two dimensions in detector orientation.

fastaxisint

Value of the fastaxis keyword for the data array to be transformed.

slowaxisint

Value of the slowaxis keyword for the data array to be transformed.

Returns:
np.array

Data array transformed to science orientation.