find_rotation
- jwst.ami.find_affine2d_parameters.find_rotation(imagedata, nrm_model, psf_offset, rotdegs, pixel, npix, bandpass, over, holeshape)[source]
Create an affine2d object using the known rotation and scale.
- Parameters:
- imagedata2D float array
Image data
- nrm_modelNRMModel datamodel
Datamodel containing mask geometry information
- psf_offset2D float array
Offset from image center in detector pixels
- rotdegslist of floats
Range of rotations to search (degrees)
- pixelfloat
Pixel size in radians
- npixint
Number of detector pixels on a side
- bandpass2D float array, default=None
Array of the form: [(weight1, wavl1), (weight2, wavl2), …]
- overint
Oversampling factor
- holeshapestr
Shape of hole; possible values are ‘circ’, ‘hex’, and ‘fringe’
- Returns:
- new_affine2dAffine2d object
Affine2d object using the known rotation and scale.