detector_science_frame_transform

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

Swap data array between detector and science frames.

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

Parameters:
datanp.array

Science array containing at least two dimensions.

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 between detector and science frames.