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

Skip the navigation links

The Chandra website, including data archive access, will be offline for a planned power outage starting at 8 AM EDT on Saturday, 9 August. The site is expected to be back online before 12 PM EDT on Sunday, 10 August.

Last modified: December 2007

URL: http://cxc.harvard.edu/ciao4.0/apply_transform.py.html
AHELP for CIAO 4.0 apply_transform Context: py.transform

Synopsis

Apply the specified transform to the given data and return the result.

Syntax

apply_transform(transform, data)

Description

  • transform - input Transform object
  • data - data to be transformed

The apply_transform command applies the transform to the provided data. The resulting transformed data are returned. It is assumed that the data is appropriate for the transform definition.

Example

>>> cr = read_file("evt.fits")
>>> trans = get_transform(cr, "MSC")
>>> data = numpy.array( [[4000.0,
4000.0],[5000.0,5000.0]],dtype=numpy.double)
>>> odat = apply_transform(trans,data)
>>> print odat
[[ 3.59986812e+02 -1.31883328e-02]
[ 1.23478142e-01 1.23477855e-01]]

Apply the "MSC" transform to the values (4000,4000) and (5000,5000).

Bugs

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

Last modified: December 2007



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.