Chandra X-Ray Observatory (CXC)
Skip to the navigation links
Last modified: December 2012

URL: http://cxc.harvard.edu/chips/set_contour_transform.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.5 ChIPS v1

set_contour_transform

Context: contours

Synopsis

Sets transform, then applies it to a contour

Syntax

apply_contour_transform([id], transform)

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.
  • transform - the Transform structure containing tranform parameters that should be applied to the contour

The set_contour_transform function applies a transform to a contour. Setting the contour transform also associates the transform to the contour for subsequent transform functions to work on. This command is part of the advanced ChIPS module; refer to "ahelp chips" for information. To load the module:

from pychips.advanced import *

The input transform must be a valid Transform structure ("ahelp transform"). Passing None to instead of a transform will remove from the contour the transform currently associated with the it, causing the contour to be redisplayed without any transformations. At most one transform can be associated with a contour at a given time.

Example

chips> from pychips.all import *
chips> add_contour('image.fits')
chips> image = read_file ('image2.fits')
chips> t = get_transform (image, 'params')
chips> set_contour_transform (t)

Create a contour from one image. Load a second image into a crate. Extract the params transform from that image and apply it to the contour of the original image.

Bugs

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

See Also

contours
add_contour, apply_contour_transform, apply_contour_transform_inverse, current_contour, delete_contour, display_contour, get_contour, get_contour_transform, hide_contour, set_contour, shuffle_contour

Last modified: December 2012
CXC logo

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-2012. All rights reserved.