Skip to the navigation links
Last modified: December 2009

URL: http://cxc-newtest.cfa.harvard.edu/ciao4.2/copy_transform.sl.html
AHELP for CIAO 4.2

copy_transform

Context: sl.transform

Synopsis

Copy the transform.

Syntax

copy_transform(transform);

Description

  • transform - input Transform object

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

Example

slsh> cr = read_file("evt2.fits");
slsh> trans = get_transform(cr, "MSC");
slsh> t2 = copy_transform(trans);
slsh> py_call(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

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

The "py_call" command is used to call a Python command from slsh because there isn't a method to retrieve low-level functions in S-Lang.

Bugs

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

See Also

sl.transform
apply_transform, get_transform_type

Last modified: December 2009