| tevalfit | stsdas.hst_calib.foc.focgeom | tevalfit |
tevalfit -- Evaluate a transformation on a set of points in an ASCII file.
tevalfit input output inpoly entry
This task applies a transformation to a grid of points. The transformation is defined by an entry in a text data base file, and the grid of points is a pair of columns in an ASCII file. The user specifies whether the transformation is to be applied forward (i.e., applying the transformation directly) or backward (i.e., the inverse transformation). The output is written to two columns in an ASCII file. Comments and blank lines in the input file are copied to output.
1. Apply the distortions in entry "f48" in the text data base file stopt.fit to the positions in the ASCII file regular.lis. The output will be written to the ASCII file opt.lis. If stopt.fit contained details of the telescope's optical distortions and regular.lis contained a regularly spaced reseau grid, then the output file opt.lis will show the distortions produced by the Space Telescope's optics on a regular grid in the sky.
fo> tevalfit regular.lis opt.lis stopt.fit f48
2. Apply the distortions of entry "respos" in the file fitt.fit to the positions in the ASCII file opt.lis. The output should go to a file called final.lis. If the reference grid "opt.lis" contained optical chain distorted points and the input file fitt.fit contained detector distortion, then the output file final.lis will combine optical and detector distortions.
fo> tevalfit opt.lis final.lis fitt.fit respos
The "backwards" option uses a rather primitive algorithm which may not work for unusual cases. In particular, there may be a problem if the transformation involves a large rotation.
This task was written by Phil Hodge based on revalfitx.
Type "help focgeom option=sys" for a higher-level description of the focgeom package.