Region mapping for TweakReg

drizzlepac.mapreg Module

This module provides functions for mapping DS9 region files given in sky coordinates to DS9 region files specified in image coordinates of multiple images using the WCS information from the images.

MapReg() provides an automated interface for converting a region file to the image coordinate system (CS) of multiple images (and their extensions) using WCS information from the image(s) header(s). This conversion does not take into account pointing errors and, therefore, an examination and adjustment (if required) of output region files is highly recommended. This task is designed to simplify the creation of the exclusions and/or inclusions region files used with TweakReg() task for sources finding.

Functions

MapReg(input_reg, images[, img_wcs_ext, ...])

Primary interface to map DS9 region files given in sky coordinates.