About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2008

URL: http://cxc.harvard.edu/chips4.1/apply_contour_transform.py.html
AHELP for ChIPS 4.1

apply_contour_transform

Context: py.chips

Synopsis

Applies a contour's transform to the contour data.

Syntax

apply_contour_transform([id])

Description

  • id - an optional ChipsId structure containing values to modify the currency state for the command, or a string to specify the id of the contour to operate on.

The apply_contour_transform command re-applies a tranform already associated with a contour. This command is part of the advanced ChIPS module; refer to "ahelp chips" for information on loading the module.

Transforms are originally applied to contours either when the contour is created or after the set_contour_transform ("ahelp set_contour_transform") function has been called. After the first application of the transform, calling apply_contour_transform will re-apply the same transform to the contour.

This functions is useful when the inverse of the transform is applied to the contour, using apply_contour_tranform_inverse ("ahelp apply_contour_transform_inverse"). Calling apply_contour_tranform multiple times will apply the transform to the data set multiple time.

Example

chips> from pychips.all import *
chips> add_contour('contour.fits','wcs=params')
chips> apply_contour_transform_inverse ()
chips> apply_contour_transform ()

Creates a contour with the params coordinate system applied. The transform is removed and then re-applied.

Bugs

See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

Last modified: December 2008



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.