DOKK / manpages / debian 10 / fitsh / fitrans.1.en
FITRANS(1) User Commands FITRANS(1)

fitrans - performing spatial transformations on the input image

fitrans [transformation and options] <input> [-o|--output <output>]

The main purpose of this program is to perform specific or generic geometric transformations on the input image.

Gives general summary about the command line options.
Gives a detailed list of command line options.
Gives a detailed list of command line options in Mediawiki format.
Gives some version information about the program.
Name of the input FITS image file.
Name of the output FITS image file.
Standard FITS output bitpix value.
Output pixel data format specification.

Name of the file which contains the transformation description.Such a file can be created e.g. by the programs `grtrans` or `grmatch`. This file contains basically the same set of <keyword> = <value> pairs as it is used after the -t|--transformation option (see there).
Comma-separated list of parameters for the spatial transformation, see section "Parameters for spatial transformations" below.
Imply a transformation that shifts the image by <dx>,<dy>.
Apply the inverse transformation to the image rather than the original one.
Simple linear interpolation between pixels, with no exact flux conservation (just a multiplication by the Jacobian of the transformation).
Linear interpolation between the pixels involving exact flux conservation by integrating on the image surface.
Bicubic spline interpolation between pixels, with no exact flux conservation (just a multiplication by the Jacobian of the transformation).
Interpolation by integrationg the flux on a biquadratic interpolation surface, yielding exact flux conservation.
The size of the output image if it should differ from the original image size.
Zero-point coordinate of the output image in the input image.

Type of the transformation. In the actual implementation, the only supported type for a transformation is "polynomial".
Polynomial order for the transformation.
Comma-separated list of the polynomial coefficients for the X coordinate. The number of coefficients must be 1, 3, 6, ... for the orders 0, 1, 2, ... respectively.
Comma-separated list of the polynomial coefficients for the Y coordinate.

Zoom the image by the given (integer) factor, involving a biquadratic subpixel-level interpolation and therefore exact flux conservation.
Shrink the image by the given (integer) factor.
Use a median-based averaging during the shrinking operation.
Imply some optimism during the shrinking operation: masked pixels are ignored during the averaging process and the final mask will be computed in a complement manner.
Same as zooming the image but there is no subpixel-level interpolation.

Perform a smoothing on the image. The parameters of the smoothing are the following:
Do a spline interpolation smoothing
Do a polynomial interpolation smoothing
[xy]order=<order>
Spatial order of the smoothing function. The order in the X and Y coordinates can be set independently, by setting "xorder=..." or "yorder=...".
Scale the resulting smoothed image to have a mean of 1.
The resulting image will be the original image divided by the best fit smoothed surface.
[xy]hsize=<halfsize>
Do a box filtering with the given halfsize.
Use the mean value of the pixels for the box filtering.
Use the median value of the pixels for the box filtering.
Number of iterations to reject outlier pixels from the box.
Lower, upper or symmetric rejection level in the units of standard deviation.

Derive an image which reflects the "noise level" of the image.

Layer (z-axis index) of the desired image slice.
Explode the input image into individual planar (two dimensional) FITS image. The basename must contain at least one printf-like tag of %d, %i, %o, %x or %X that is replaced by the appropriate layer number index.
Use the specified value for the first layer index. The subsequent layer indices are incremented normally. By default, the index of the first data cube layer is 0.

Report bugs to <apal@szofi.net>, see also http://fitsh.net/.

Copyright © 1996, 2002, 2004-2008, 2010-2015; Pal, Andras <apal@szofi.net>

September 2016 fitrans 0.9z6 (0.9.2@2016.09.23)