science_detector_frame_transform

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

Swap data array from science to detector frame.

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

Parameters:
datanp.array

Data array containing at least two dimensions in science 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 detector orientation.