science_detector_frame_transform

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

Swap data array between science and detector frames.

Use the fastaxis and slowaxis keywords to invert and/or transpose data array axes to move between the science frame and the detector 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 science and detector frames.