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

URL: http://cxc.harvard.edu/ciao/ahelp/copy_transform.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.9

copy_transform

Context: transform

Synopsis

Copy the transform.

Syntax

copy_transform(transform)

The copy method of the transform object can also be used.

Description

The function arguments.

Argument Description
transform A transform object.

The copy_transform command generates a complete copy of the provided transform.

Example

>>> import pycrates as pyc
>>> import pytransform as pyt
>>> cr = pyc.read_file("evt2.fits")
>>> trans = cr.get_transform("MSC")
>>> t2 = pyt.copy_transform(trans)
>>> print(t2.print_parameter_list())
Name: CRPIX	Type: dmDOUBLE	Value: 4096.500000, 4096.500000	   	Desc: Reference Point Pixel Coordinates	Parent: MSC
Name: CRVAL	Type: dmDOUBLE	Value: 0.000000, 0.000000	   	Desc: Center Coordinate in decimal degrees	Parent: MSC
Name: CDELT	Type: dmDOUBLE	Value: 0.000137, 0.000137	   	Desc: Transform Scale in degrees/pixel	Parent: MSC
Name: CROTA	Type: dmDOUBLE	Value: 0.000000	   	Desc: Rotation Angle	Parent: MSC
Name: EQUINOX	Type: dmSHORT	Value: 2000	   	Desc: Equinox of Coordinates	Parent: MSC
Name: EPOCH	Type: dmDOUBLE	Value: 2000.000000	   	Desc: Epoch of Coordinates	Parent: MSC
Name: CTYPE	Type: dmCHAR	Value: LONG-TAN   , NPOL-TAN	   	Desc: Coordinate Projection Type	Parent: MSC

Copy the "MSC" transform from the file evt2.fits to "t2".

Direct access via the object

Note that you can also use the copy method of the transform object - e.g.

>>> t2 = trans.copy()

Bugs

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

Refer to the CIAO bug pages for an up-to-date listing of known issues.

See Also

transform
apply_transform, get_transform_type

Last modified: December 2014
Smithsonian Institute Smithsonian Institute

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