Writes Set header information to images MAKESET
MAKESET writes the following items of data to the .MORE.CCDPACK.SET extension of each image:
’
s position within the Set)and it will also optionally (if ADDWCS is set true) write:
’
s WCS component with the
Domain ’
CCD_SET’
).Normally by just presenting a list of image names to the program the values of these attributes will be taken care of automatically, but various options exist to tune how it is done.
’
CCD_SET’
; CCDPACK tasks concerned with registration know about
this name and will use those coordinates on the assumption that they constitute a correct
registration of images if they are present. Therefore this parameter should be set true if the
images which will form a Set are known to be aligned in their common Current coordinate
system.
If MODE=SPLIT, this parameter is ignored and a new CCD_SET coordinate system which is a copy of the Pixel coordinate system will be added in any case. [TRUE]
’
CCD_SET’
; CCDPACK tasks concerned with registration know about this name and
will use those coordinates on the assumption that they constitute a correct registration of images if
they are present. The newly added coordinate system will become the Current coordinate system of
the image.
The file named by this parameter will normally have been written by the ASTEXP program, saving a known correct alignment of images within a Set that corresponds to the one being created by this program. This parameter is ignored if MODE=SPLIT. [!]
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]
LIST
CONTAINER
FITS
SPLIT
When MODE=LIST, new Sets will be formed according to the order in which images are named in the IN list. In the most straightforward case, all the named files will become part of the same new Set, with a Set Name derived from the name of the first file in the list and consecutive Set Index values 1, 2, 3, …The SETSIZE and INDICES parameters can be used to create multiple sets in one invocation and to modify the ordering.
When MODE=CONTAINER, one new Set will be formed for each HDS container file; thus each image will be grouped with the other images in the same container file, being given a Set Name based on the name of the container file and a Set Index based on its position within it. HDS container files suitable for feeding to MAKESET with MODE=CONTAINER are often the result of converting multi-extension FITS files to NDF format.
When MODE=FITS the Set attributes of each image are determined by the value of FITS header cards with keywords given by the FITSINDEX and FITSNAME parameters. The Set Name attribute is given directly by the value of the FITSNAME- chosen header. The Set Index attribute is given by the position of the value of the FITSINDEX-chosen header in the list determined by the INDEXVALS parameter. Note this can only be used if both a Name-like and an Index-like header card is available in the FITS header of each file.
When MODE=SPLIT, a new Set is created for each of the members of the IN list. Each Set will consist of the data from the input image split up into pieces according to the XSTART and YSTART parameters, or the SECTIONS parameter. A new HDS container file will be written for each IN file, with a name given by the OUT parameter. Each split piece of the input file will be written as a separate NDF structure in the container file, with a Set Name given by the name of the original image and a Set Index given by the position in the list of pieces. Unlike the other modes, this does not alter the input file, but creates a new output file to contain the rearranged data. [LIST]
"
"
they
are applied to the name of the first image in each Set.
The default value is "
"
,
which means the Set NAME is the same as the name of the image first entered into each
Set (if MODE=LIST) or the name of the HDS container file (if MODE=CONTAINER). If
MODE=FITS it is ignored. There is normally no need to use a value other than the default.
[]
’
’
, meaning the same name
as the input file, so out="
-set"
would create output files with the same name as the input files but with "
-set"
appended.
If MODE is not SPLIT then no new output files are created, so this parameter is ignored.
"
NDF Sections"
section of SUN/33;
typically it will be of the form "
(xmin:xmax,ymin:ymax)"
. Note that if supplying this parameter on the
command line it will be necessary to include each element in quotes and the whole list in square
brackets, e.g.: sections=["
(17:500,1:1024)"
,"
(525:1000,1:1024)"
]
When using a Unix shell the whole thing will have to be placed in single quotes as well.
If a null value (!) is given for this parameter the XSTART and YSTART parameters are used instead; if the sections into which the input images are to be split tile the whole of the input image, this is usually more convenient. This parameter is ignored unless MODE=SPLIT. [!]
’
th
element of XSTART. The XSTART and YSTART parameters are given for convenience; the same
information can be given by specifying an appropriate value for the more flexible SECTIONS parameter. ’
th
element of YSTART. The XSTART and YSTART parameters are given for convenience; the same
information can be given by specifying an appropriate value for the more flexible SECTIONS
parameter. "
data1,data2,data3,data4"
addwcs mode=list "
data1"
) and
will be given the Set Index attributes 1, 2, 3 and 4 respectively. Additionally, a new attached
coordinate system with the Domain "
CCD_SET"
will be added to the World Coordinate System
(WCS) component of each; this will be a copy of each one’
s Current attached coordinate
system. If not all of them have the same Current coordinate system when the program is
run (i.e. they do not all have the same Domain), then a warning will be issued. "
"
character is expanded in, which depends on the details of the shell that you are using. Typically shells
expand alphabetically, so that if the directory contains files with the names d08.sdf, d09.sdf, d10.sdf,
d11.sdf they will be presented in that order, but files with the names d8.sdf, d9.sdf, d10.sdf, d11.sdf
would be presented in the order d10.sdf, d11.sdf, d8.sdf, d9.sdf. Unless you are confident
of how your shell behaves in this respect, then when using wildcards you should pay
careful attention to the log output of MAKESET to check that the order is correct. It is safest
to list Set members explicitly as in the previous example. "
d1,d2,d3,e1,e2,e3"
name=night1-
setsize=3 addwcs=no "
night1-d1"
and "
night1-e1"
respectively. You might want to do this if you are going to use these files
along with other Sets generated from files with the names the same as these. No additions are
made to the WCS componnent of the images. "
d1,d3"
indices=[1,3] "
(1:32,1:48)"
,"
(1:32,49:96)"
, "
(33:64,1:48)"
,"
(33:64,49:96)"
] A
new HDS container file called multi-s is created which contains the data from the single
image multi, split up into four new images. A new coordinate system with the domain
CCD_SET will be added which is a copy of the Pixel coordinates, and the Pixel coordinate of
each of the new images will be the same as it was in the original. "
(:32,:48)"
,"
(:32,49:)"
,"
(33:,:48)"
,"
(33:,49:)"
] If the input image ‘multi’
has X pixels in the range 1:64 and Y pixels in the range 1:96, this does exactly the same as
the previous example, cutting multi into quarters. The abbreviated NDF section specifier
syntax allows omission of a pixel bound when it is at the edge of the image. "
1,33"
ystart="
1,49"
This does the same as the previous example again, using
the somewhat simpler XSTART and YSTART parameters. This time a new Set is created
for each of the images in the current directory, and written into a container file with the
same name but ’
-s’
appended. When MODE=CONTAINER, membership of a Set is not strictly determined by the identity of the
HDS container file in which it resides, but by the pathname supplied to the IN parameter which
identifies that HDS container file. Thus it is possible to create members of two Sets within a single
container file in one invocation of MAKESET, but it’
s most unlikely that this will result unless you are
deliberately invoking it in a bizarre way.
When a non-null ASTFILE parameter is supplied, this program duplicates much of the functionality of ASTIMP.
"
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. The intrinsic default behaviour of the application may be restored by using the RESET keyword on the command line.
Certain parameters (LOGTO and LOGFILE) 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.