Transform lists of positions TRANLIST
"
Sky
Co-ordinate System"
specification is supplied (using parameter FRAMEIN) for a celestial
co-ordinate system, then an epoch value is needed to qualify it. This is the epoch at which the
supplied sky positions were determined. It should be given as a decimal years value, with or
without decimal places ("
1996.8"
for example). Such values are interpreted as a Besselian
epoch if less than 1984.0 and as a Julian epoch otherwise. [Dynamic] "
Sky Co-ordinate System"
specification is supplied (using parameter
FRAMEOUT) for a celestial co-ordinate system, then an epoch value is needed to qualify it. This is
the epoch at which the supplied sky positions were determined. It should be given as a
decimal years value, with or without decimal places ("
1996.8"
for example). Such values are
interpreted as a Besselian epoch if less than 1984.0 and as a Julian epoch otherwise. [Dynamic] "
sub-expressions"
used
in the expressions XFOR and YFOR. These parameters should be used when repeated
expressions are present in complex transformations. Sub-expressions may contain references
to other sub-expressions and constants (PA-PZ). An example of using sub-expressions
is:
XFOR
PAASIND(FA/PA)X/FA
YFOR
PAASIND(FA/PA)Y/FA
FA
SQRT(XXYY)
PA
100D0
FORWARD = _LOGICAL (Read)
"
STRUCT"
is chosen then this parameter’s value
controls whether the forward or inverse mapping in the transform structure is used. [TRUE] "
WCS"
then the transformation is a mapping from the
frame specified by this parameter to that specified by the FRAMEOUT parameter. The value of this
parameter can be one of the following: "
Sky
Co-ordinate System"
(SCS) value such as EQUAT(J2000) (see section "
Sky Co-ordinate
Systems"
in SUN/95). "
WCS"
then the transformation is a mapping
from the frame specified by the FRAMEIN parameter to that specified by this parameter.
The value of this parameter can be one of the following: "
Sky Co-ordinate System"
(SCS) value such as EQUAT(J2000) (see section "
Sky
Co-ordinate Systems"
in SUN/95). "
WCS"
), then this parameter controls whether or not the WCS
component should be located in each of the NDFs. If set FALSE, the WCSFILE parameter will be
used.
If NDFNAMES is TRUE and the transformation is to be specified using a TRANSFORM structure
(TRTYPE="
STRUCT"
) then this parameter controls whether or not the structure should be located in
the CCDPACK extension of each of the images. If set FALSE, the TRANSFORM parameter will be
used.
If this option is chosen then the WCS component or transform structure in EACH image will be applied to the associated position list. So for instance if you have a set of registered images and positions these may be transformed all at once to and from the reference coordinate system. [TRUE]
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 a file 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]
"
CURRENT_LIST"
. The names will be present in the
extension if the positions were located using a CCDPACK application (such as FINDOBJ).
Using this facility allows the transparent propagation of position lists through processing
chains.
If a global value for this parameter has been set using CCDSETUP then that value will be used. [TRUE]
OUTLIST .FIND
If no image names are given (NDFNAMES is FALSE) then if you want to change the extension of the
files (from "
.CENT"
to "
.TRAN"
in this case) use:
OUTLIST CENTTRAN
Or alternatively you can use an explicit list of names. These may use indirection elements as well as names separated by commas.
XFOR
SQRT(FXFXFYFY)
YFOR
ATAN2D(-FY,FX)
FX
X-PA
FY
Y-PB
PA
X-centre-value
PB
Y-centre-value
This maps (X,Y) to (R,THETA) about a specified centre.
COEFF
EXPRES
WCS
STRUCT
or unique abbreviations of.
COEFF means that a linear transformation of the form:
X’ = A
BX
CY
Y’ = D
EX
FY
is to be applied to the data. In this case a prompt for the values of the coefficients A-F is made.
EXPRES indicates that you want to supply algebraic-like expressions to transform the data. In this case the parameters XFOR and YFOR are used to obtain the expressions. Things like:
XFOR
2.5COS(X)LOG10(Y)
YFOR
2.5SIN(X)EXP(Y)
are allowed. The expression functions must be in terms of X and Y. For a full set of possible functions see SUN/61 (TRANSFORM).
WCS means that the transformation will be taken from the WCS component of an image. In this case the name of the image containing the WCS component should be supplied (this will be picked up automatically through the association of an image and a position list if NDFNAMES and INEXT are both TRUE). The transformation will be that between the frames defined by the FRAMEIN and FRAMEOUT parameters.
STRUCT signifies that a transform structure (probably created by REGISTER or CCDEDIT) is to be applied to the data. In this case the name of the object containing the structure should be supplied (this will be picked up automatically through the association of an image and a position list if NDFNAMES and INEXT are both TRUE) and whether to use the forward or inverse mappings (the FORWARD parameter). [COEFF]
"
COEFF"
is chosen
then the values of this parameter are the 6 coefficients of a linear transformation of the
type:
X’ = PA
PBX
PCY
Y’ = PD
PEX
PFY
The default is the identity transformation. [0,1,0,0,0,1] [PA,PB,PC,PD,PE,PF]
"
STRUCT"
and INEXT=FALSE then this parameter is used to access the HDS object
which contains the transform structure. The standard place to store a transform structure (in
CCDPACK) is
NDF_NAME.MORE.CCDPACK.TRANSFORM
Only one structure can be used at a time.
"
WCS"
and INEXT is false, then this parameter gives the name of the image containing the WCS
component which is to be used for the transformation. "
EXPRES"
is chosen then this parameter specifies the transformation that maps
to the new X coordinate. The expression can contain constants, arithmetic operators
(,-,/,,)
and the functions described in SUN/61 (SIN,COS,TAN, etc.).
As an inverse mapping is not required in this application there is no need to use the X’=func(X,Y)
form only func(X,Y) is required, however, the variables must be given as "
X"
and "
Y"
.
"
EXPRES"
is chosen then this parameter specifies the transformation
that maps to the new Y coordinate. The expression can contain constants, arithmetic operators
(,-,/,,)
and the functions described in SUN/61 (SIN,COS,TAN, etc.).
As an inverse mapping is not required in this application there is no need to use the Y’=func(X,Y) form
only func(X,Y) is required, however, the variables must be given as "
X"
and "
Y"
.
’
’
outlist=’
.reg’
trtype=wcs framein=pixel "
"
outlist="
.tran"
trtype=struct forward=false ’
_reduced’
outlist=’
.off’
trtype=coeff tr=’
[10,1,0,20,0,1]’
’
_resam’
outlist=’
.rot’
trtype=coeff tr=’
[0,0.707,-0.707,0,0.707,0.707]’
’
.tran’
trtype=express
xfor=’
(fx(1d0pa(fxfxfyfy)))pspx’
’
(fy(1d0pa(fxfxfyfy)))pspy’
fx=’
(x-px)/ps’
fy=’
(y-py)/ps’
pa=pincushion_distortion_factor px=X-centre-value py=Y-centre-value
ps=scale_factor ’
"
list1,list2,list3"
’
outlist=’
"
outlist1,outlist2,outlist3"
’
namelist=newfiles 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.
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.
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
transformed. On exit this item will be updated to reference the name of the transformed list of
positions.
This application may also access the item "
TRANSFORM"
from the NDF extensions if NDFNAMES
and INEXT are TRUE and TRTYPE="
STRUCT"
.
In this application data following the third column are copied without modification into the results files.
"
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 and NDFNAMES) 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.