Skip to the navigation links
Last modified: December 2009

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

apply_transform

Context: sl.transform

Synopsis

Apply a transform to the given data.

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

chips> cr = read_file("evt2.fits");
chips> trans = get_transform(cr, "MSC");
chips> data = _reshape([4000.0,4000.0,5000.0,5000.0], [2,2]);
chips> odat = apply_transform(trans, data);
chips> print(odat);
359.987 -0.0131883
0.123478 0.123478

The "MSC" transform from evt2.fits is applied 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.

See Also

sl.transform
copy_transform, get_transform_type

Last modified: December 2009