Alignment Utils

stcal.alignment Package

Functions

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

Calculate the rotation matrix.

combine_footprints(footprints)

Combine a list of footprints into one or more combined footprints using a Shapely union.

combine_sregions(sregion_list, det2world[, ...])

Combine s_regions from input models to compute the s_region for the resampled data.

compute_fiducial(wcslist[, bounding_box])

Calculate the world coordinates of the fiducial point from 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..

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_sregions(footprints, ref_wcs, ...)

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