Determines transformations between lists of positions REGISTER
X’ = A
BX
CY
Y’ = D
EX
FY
and allow:
shift of origin
shift of origin and rotation
shift of origin and magnification
shift of origin, rotation and magnification (solid body)
or a full six parameter fit
The self defined transform can be any mapping given as an algebraic expression (including functions) using the methods allowed by TRANSFORM (SUN/61).
When determining linear transformations REGISTER allows many lists to be processed at once performing a simultaneous registration of all the lists. When using a self defined transform only two lists may be registered at any time.
The results from REGISTER are reported via the logging system and then coded as new coordinate systems attached to images. Normally, the new coordinate systems will be attached to the images with which the lists are associated, but if the lists are not associated with images then they can be attached to a named list of images, or a single named one. The new coordinate system is a copy of the Pixel coordinate system of the refernce image, and so is guaranteed to be a sensible one in which to resample. The resampling can be done by TRANNDF.
"
sub-expressions"
used in the expressions XFOR, YFOR, XINV and YINV. These parameters should be used when
repeated expressions are present in complex transformations. Sub-expressions may contain references
to other sub-expressions and the variables (PA-PZ). An example of using sub-expressions
is:
XFOR
PAASIND(FA/PA)X/FA
YFOR
PAASIND(FA/PA)Y/FA
XINV
PASIND(FB/PA)XX/FB
YINV
PASIND(FB/PA)YY/FB
FA
SQRT(XXYY)
FB
SQRT(XXXXYYYY)
FITTYPE = _INTEGER (Read)
1 – shift of origin
2 – shift of origin and rotation
3 – shift of origin and magnification
4 – shift of origin, rotation and magnification (solid body)
5 – a full six parameter fit
6 – self defined function
If more than two position lists are provided, then only the values 1–5 may be used. [5]
If TRUE then you will also be prompted for XINV and YINV in response to which the inverse mappings for X’ and Y’ are required. Not performing a full fit will affect the later uses of the transformation. At present not providing an inverse mapping means that image resampling (TRANNDF) may not be performed. [FALSE]
"
EACH"
then a list of image names in which to store the WCS frames is required. This
list of names must correspond exactly to the order of the associated input lists. A listing of the order of
inputs is shown before this parameter is accessed.
The image names may (although this is probably not advisable) be specified using
wildcards, or may be specified using an indirection file (the indirection character is
"
"
).
If NDFNAMES is FALSE then the actual names of the position lists should be given. These may not use
wildcards but may be specified using indirection (other CCDPACK position list processing routines will
write the names of their results files into files suitable for use in this manner) the indirection character
is "
"
.
If the logging system has been initialised using CCDSETUP then the value specified there will be
used. Otherwise, the default is "
CCDPACK.LOG"
. [CCDPACK.LOG]
TERMINAL – Send output to the terminal only
LOGFILE – Send output to the logfile only (see the LOGFILE parameter)
BOTH – Send output to both the terminal and the logfile
NEITHER – Produce no output at all
If the logging system has been initialised using CCDSETUP then the value specified there will be
used. Otherwise, the default is "
BOTH"
. [BOTH]
If the names of the lists are stored in the CCDPACK NDF extension then the new coordinate system is attached to the associated image.
If a global value for this parameter has been set using CCDSETUP then that value will be used. [TRUE]
If PLACEIN is "
SINGLE"
, then the new coordinate systems are all attached to a single image. In this
case the domains are OUTDOMAIN_1, OUTDOMAIN_2, ....
The name is converted to upper case, and whitespace is removed. [CCD_REG]
EACH – attach them one per image in a set of images
SINGLE – attach them all to a single image
If the EACH option is chosen then you will have the option of supplying the image names via the parameter IN. If the SINGLE option is chosen then the name of an image should be given in response to the WCSFILE parameter; if no NDF by this name exists, a new dummy one will be created. [EACH]
’
s SimpFI attribute (whether it is legitimate to simplify the forward
followed by the inverse transformation to a unit transformation). [TRUE] ’
s SimpIF attribute
(whether it is legitimate to simplify the inverse followed by the forward transformation to a unit
transformation). [TRUE] If USESET is false, all Set header information is ignored. If NDFNAMES is false, USESET will be ignored. If the input images have no Set headers, or if they have no CCD_SET frame in their WCS components, the setting of USESET will make no difference.
If a global value for this parameter has been set using CCDSETUP then that value will be used. [FALSE]
This parameter is ignored if NDFNAMES is not TRUE. [TRUE]
"
SINGLE"
then the value of this parameter gives the the name of
an image which will have the new coordinate systems attached to it. They will be added
with domains given by the OUTDOMAIN parameter with ’
_1’
, ’
_2’
, … appended. If the
image named by this parameter does not exist, a dummy one will be created. PAPBX
which is the same as the linear X transformation which just applies an offset and a scale factor.
(XX-PA)/PB
which is the same as the inverse linear X transformation for an offset and scale.
PCPDY
which is the same as the linear Y transformation which just applies an offset and a scale factor.
(YY-PC)/PD
which is the same as the inverse linear Y transformation for an offset and scale.
’
’
fittype=1 ’
s position. These offsets are between the Current
coordinate systems of the images. The results are then attached as new coordinate systems, labelled
’
CCD_REG’
, in the WCS component of the images. Actual registration of the images can then be
achieved by aligning all the images in the CCD_REG domain using TRANNDF. ’
’
trtype=5 outdomain=result-set1 ’
RESULT-SET1’
. ’
"
myimage1,myimage2"
’
fittype=4 refpos=2 ’
"
one,two"
’
fittype=6
xfor=’
papbx’
yfor=’
papby’
"
papbx"
and "
papby"
,
which indicates that a single offset applies in both directions and a single scale factor. A solution for
the values PA and PB is found using a general least-squares minimization technique. Starting values
for PA and PB can be given using the parameters PA and PB. Since the fittype is 6, only two
position lists may be registered in the same run. ’
"
image1,image2"
’
fittype=6
xfor=’
papbxpcypdxy’
yfor=’
pepfxpgyphxy’
’
"
list1.acc,list2.acc,list3.acc"
’
fittype=3 placein=each in=’
"
image1,image2,image3"
’
"
SINGLE"
in
which case the coordinate systems would be attached to a single image with Domain names
CCD_REG_1, CCD_REG_2, ... Position list formats.
CCDPACK supports data in two formats.
CCDPACK format - the first three columns are interpreted as the following.
Column 1: an integer identifier
Column 2: the X position
Column 3: the Y position
The column one value must be an integer and is used to identify positions which are the same but which have different locations on different images. Values in any other (trailing) columns are usually ignored.
EXTERNAL format - positions are specified using just an X and a Y entry and no other entries.
In all casese, the coordinates in position lists are pixel coordinates.
Column 1: the X position
Column 2: the Y position
This format is used by KAPPA applications such as CURSOR.
Comments may be included in a file using the characters "
#"
and "
!"
. Columns may be separated by
the use of commas or spaces.
Files with EXTERNAL format may be used with this application but all positions have to be present in all lists, no missing positions are allowed.
NDF extension items.
If NDFNAMES is TRUE then the item "
CURRENT_LIST"
of the .MORE.CCDPACK structure of the
input NDFs will be located and assumed to contain the names of the lists whose positions are to be
used for registration.
On exit, a new coordinate frame with a Domain as given by the OUTDOMAIN parameter will be inserted in the WCS component of the input images. Taken together these contain the registration information and can be inspected using WCSEDIT.
"
current"
value is the value assigned on the last run of the
application. If the application has not been run then the "
intrinsic"
defaults, as shown in the
parameter help, apply.
Retaining parameter values has the advantage of allowing you to define the default behaviour of the application but does mean that additional care needs to be taken when using the application on new datasets or after a break of sometime. The intrinsic default behaviour of the application may be restored by using the RESET keyword on the command line.
Certain parameters (LOGTO, LOGFILE, NDFNAMES and USESET) have global values. These global values will always take precedence, except when an assignment is made on the command line. Global values may be set and reset using the CCDSETUP and CCDCLEAR commands.