USGS

Isis 2 Documentation


warp2 Documentation

warp2 - Transform cube with weighted 2nd order fit
Uses up to 10000 control points to change the shape of a cube.  These
points are used in a weighted least-squares fit to a 2nd order
polynomial equation to create regional distortions.  All points are
scaled between 0 and 1.  The scaled distance is calculated from each
point in question to all control points.  1/dist**2 is used for the
weighting factor.

WARP2 creates a transformation file (TFILE) for GEOM.  GEOM must be
used to actually transform the cube.

PROGRAMMER: Kay Edwards, U.S.G.S. Flagstaff, AZ

ParmDescriptionDefault
FROM
Input cube file name
 (Default extension is .cub)
NONE
TFILE
Transformation file
 (No default extension)
"tfile.dat"
CFILE
Control point file
 (No default extension)
NONE
DEG
Degree of polynomial to fit
(1 or 2)
2
NS
Number of output samples
--
NL
Number of output lines
--

ADDITIONAL NOTES:

ParmDescription
FROM
Input cube file name.  If the file extension is omitted,
then ".cub" will be assumed.
TFILE
This is the name of the transformation file needed by GEOM.
After this program has finished, GEOM must be run to
actually transform the cube.
CFILE
CFILE is the ascii control point file which was created by
SUBPREG, or some other program, or by the user by manually
editing a file.  There must be at least 6 control points in
this file.  This file must be in the following format
(I5,4F10.0):

point number,input line,input samp,output line,output samp
EX:    1,10,1,15,30

NS
The default will calculate the number of output samples
from the input samples and the control points.  NS will
override the calculated output number of samples if used.
If NS is used, NL must be input also.
NL
The default will calculate the number of output lines from
the input lines and the control points.  NL will override
the calculated output number of lines if used.  If NL is
used, NS must be input also.

Last updated: Jan 31 2005
File: pdfs2.html

Contact us online at the Isis Support Center: http://isisdist.wr.usgs.gov

ISIS Documentation Home Page