Generaladministrativeoptions:-h, --help
Give general summary about the command line options.
--long-help, --help-long
Gives a detailed list of command line options.
--wiki-help, --help-wiki, --mediawiki-help, --help-mediawiki
Gives a detailed list of command line options in Mediawiki format.
--version, --version-short, --short-version
Give some version information about the program.
-C, --comment
Comment the output.
Optionsforinput/outputspecification:
<inputfile>, -i <inputile>, --input <inputfile>
Name of the input file. If this switch is omitted, the input is read from stdin (specifying some
input is mandatory).
-o <output>, --output <output>, --output-matched <output>
Name of the output file, if the program was used for transforming coordinate lists.
-T, --input-transformation <output-transformation-file>
Name of the input transformation file (see also the notes below).
--output-transformation <output-transformation-file>
Name of the output file containing the fitted geometrical transformation, in human-readable format
(see also the notes below).
In all of the above input/output file specifications, the replacement of the file name by "-" (a single
minus sign) forces the reading from stdin or writing to stdout. Note that all parts of the any line
after "#" (hashmark) are treated as a comment, therefore ignored. Note that there is no explicit switch
for distinguishing between the fitting and the evaluating purposes of the program. If
--input-transformation has been specified, the program implies that the user wants to evaluate a
function described by this existing transformation file. On the other hand, if --output-transformation
has been specified, the program fits the parameters of the function and stores the resulted
transformation file as it specified by the argument of this option. In other words, if no WCS or
spherical (de)projection declared by the directives of --wcs, one of these two switches should be given
in the command line.
Generaloptionsforfittingpolynomialcoefficients:--col-xy <x>,<y>
Column indices for the independent values. In the current implementation, grtrans can only fit
polynomial functions of exactly 2 independent variables. Lines where these columns do not
contain valid real numbers are excluded.
--col-fit <>[,<>[,<>]...]
Column indices for the dependent values. In the current implementation, grtrans can only fit 2
dimensional polynomial functions to arbitrary dimensional data. The dimension of the fitted data
is specified indirectly, by the number of column indices specified after this switch.
-a <order>, --order <order>
Order of the fitted polynomial function. It can be any positive integer.
-n <N>, --iterations <N>; -r <S>, --rejection-level <S>
These switches specify the total number of rejection iterations of outlyer points and the
rejection level in sigma units. By default, no rejection is applied, therefore all valid
lines are used.
--col-weight <w>
Column index for optional weights. If specified, this column should contain a valid
non-negative real number which is used as a weight during the least-squares fit.
--weight [magnitude],[power=<P>]
These directives specify the weights which are used during the fit of the functions or
transformations. For example, in practice it is useful in the following situation. We try to
match star lists, then the fainter stars are believed to have higher astrometrical errors,
therefore they should have smaller influence in the fit. We can take the weights from a given
colum, specified by the index after --col-weight (see above). The weights can be derived
from stellar magnitudes, if so, specify "magnitude" to convert the read values in magnitude to
flux. The real weights then is the "power"th power of the flux. The default value of the
"power" is 1, however, for the maximum-likelihood estimation of an assumed Gaussian
distribution, the weights should be the second power of the fluxes.
-ot, --output-transformation <output-transformation-file>
Name of the output transformation file containing the result of the fit (see above).
Generaloptionsfortransformationorfunctionevaluation:--input-transformation <input-transformation-file>
Name of the input transformation file containing the desired transformation (see above).
--reverse, --inverse
Perform inverse transformation. This is a valid option only if the dimension of the fitted
function is the same as the dimension of the independent variables (namely, 2, because in the
actual implementation the latter can only be 2).
--col-xy <x>,<y>
Column indices for the independent values. In the current implementation, `grtrans` can only fit
polynomial functions of exactly 2 independent variables. Lines where these columns do not contain
valid real numbers are excluded.
--col-out <>[,<>[,<>]...]
Column indices for the evaluated output variables. The number of indices listed here should be the
same as the number of independent functions stored in the input transformation file.
Generaloptionsfortransformationcomposition:--input-transformation <input-transformation-file>
Name of the input transformation file.
--scale <s>
Scale factor.
--offset <dx>,<dy>
Shift. The affine transformation with which the input transformation is composed is going to be:
x'=dx+s*x, y'=dy+s*y.
--output-transformation <output-transformation-file>
Name of the output transformation file containing the result of the composition.
Optionsforsphericalprojectionanddeprojection:--proj, --project
[sin|arc|tan],ra=<R>,dec=<D>,[roll=<F>],[max=<max_distance>],[qr=<R>,qi=<I>,qj=<J>,qk=<K>],[degrees|radians|scale=<S>
This set of directives specify the common parameters of the spherical projection or
deprojection. The "sin", "arc" and "tan" directives set the type of projection to orthographic,
arc and gnomonic, respectively. The values after "ra" and "dec" (<R> and <D>) specify the
center of the projection (right ascension and declination, respectively, in degrees). The
optional parameter <F> is for the roll angle (in degrees). The "degrees", "radians" or the
"scale=<S>" directives specify the scaling of the output. The directive "degrees" is equivalent
to set "scale=57.29577951308232087721" (180 over \Pi), this is the default. The directive
"radians" is equivalent to set "scale=1". Alternatively to the right ascension, declination and
roll parameterization, one can use quaternion-based pointing here by specifying qr, qi, qj, qk for
the real, and the three imaginary components, respectively.By default, this projection tries to
compute the projected coordinates for all of the positions presented in the input list. However,
it might yield unexpected results in certain cases (e.g. an input list on a nearly full sphere and
orthographic projection). One can use the "max=<max_distance>" parameter to filter objects beyond
this maximum distance.
--col-radec <r>,<d>
Column indices for RA and DEC values. This option implies projection.
--col-pixel <x>,<y>
Column indices for X and Y projected values. This option implies deprojection.
--col-out <>,<>
Column indices for the output values (which are X and Y for projection and RA, DEC for
deprojection).
OptionsforfittingWCSinformation:--wcs [sin|arc|tan],ra=<R>,dec=<D>,order=<order>
This set of directives specify the common parameters of WCS fitting. The projection can be
orthographic, arc or gnomonic (however, there are dosens of projections implemented in the FITS
WCS system, but for practical purposes, such projections seem to be more than enough). The
center of the fit is set by "ra" and "dec" (RA and DEC, in degrees). The distortion order is
specified by order. Note that the RA and DEC values specified here can only be an assumed
values, however, the larger the optical distortions are, the better to have RA and DEC values
close to the optical axis.
--col-ref <>,<>
Column indices for the RA and DEC values.
--col-fit <>,<>
Column indices for the pixel values.
Note that in this case, the set of the appropriate FITS keyword=value pairs are written directly
stdout, not in the file specified by the options --output or --output-transformation.