Apply the specified transform to the given data and return the result.
apply_transform(transform, data);
- 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.
slsh> cr = read_file("evt.fits");
slsh> trans = get_transform(cr, "MSC");
slsh> data = _reshape([4000.0,4000.0,5000.0,5000.0],[2,2]);
slsh> odat = apply_transform(trans,data);
slsh> print(odat)
359.987 -0.0131883
0.123478 0.123478
Apply the "MSC" transform to the values (4000,4000) and (5000,5000).
See the
bug pages
on the CIAO website for an up-to-date listing of known bugs.
|