Alignment Utils

stcal.alignment Package

Functions

calc_rotation_matrix(roll_ref, v3i_yangle[, ...])

Calculate the rotation matrix.

compute_fiducial(wcslist[, bounding_box])

Calculates the world coordinates of the fiducial point of a list of WCS objects.

compute_s_region_imaging(wcs[, shape, center])

Update the S_REGION keyword using the WCS footprint.

compute_s_region_keyword(footprint)

Update the S_REGION keyword.

compute_scale(wcs, fiducial[, disp_axis, ...])

Compute the scale at the fiducial point on the detector..

reproject(wcs1, wcs2)

Given two WCSs or transforms return a function which takes pixel coordinates in the first WCS or transform and computes them in pixel coordinates in the second one.

sregion_to_footprint(s_region)

Parse the s_region string and return the footprint as an Nx2 array.

wcs_bbox_from_shape(shape)

Create a bounding box from the shape of the data.

wcs_from_footprints(wcs_list, ref_wcs, ...)

Create a WCS from a list of input datamodels.

wcs_from_sregions(footprints, ref_wcs, ...)

Create a WCS from a list of input s_regions or footprints.