fregcon -- region file converter from one instrument/detector to another
fregcon infil1 infil2 regfile outfile
This task converts a selected region from one observation to another either based on the reference values contained in the FITS image files for the two observations or on a single multiplicative scale factor. The list of selected regions (up to 40) are specified in the regionfile (regfile). The region file is produced by SAOimage or SAOtng. Possible shapes for the regions are the following:
* circle * box * ellipse * point * polygon (up to 40 points) * annulus
If the factor parameter is specified then the infil1 and infil2 are not required and the regions will be modified by scaling the image size by the value of the factor parameter.
The following reference keyword values read from the two input FITS image files. They are passed to the ftwldp.f and xy2sky.f routines which compute the new coordinates.
CRPIX1 = X axis reference pixel CRPIX2 = Y axis reference pixel CRVAL1 = Sky coord of X ref pixel (degrees) CRVAL2 = Sky coord of Y ref pixel (degrees) CDELT1 = X axis increment (degrees) CDELT2 = Y axis increment (degrees) CROTA2 = ROLL angle CTYPE1 = RA projection CTYPE2 = DEC projection
ftwldp.f xy2sky.f