If your data exists in HDS container files so that one container file contains all the images from a single exposure, then adding Set headers is easier. By running MAKESET with MODE=CONTAINER, it will assume that each HDS container file corresponds to a single Set. In this case you can just type something like
and the correct headers will be added.% makeset in='obs*' mode=container accept
Note that if your data initially exists in the form of one Multi-Extension FITS file (MEF) per observation you can convert these quite easily to HDS container files using the FITS2NDF command with CONTAINER=TRUE. So supposing you have three exposures, each stored in a 2-HDU MEF, you can do:
% convert
CONVERT commands are now available -- (Version 1.3-5 2001 January)
Defaults for automatic NDF conversion are set.
Type conhelp for help on CONVERT commands.
Type "showme sun55" to browse the hypertext documentation.
% fits2ndf 'obs*.fits' 'conv-*' container=true
3 files selected.
% makeset 'conv-obs*' mode=container accept
MAKESET
=======
6 input NDFs accessed using parameter IN
Set name Set index NDF name
-------- --------- --------
conv-obs1:
1 conv-obs1.HDU_1
2 conv-obs1.HDU_2
conv-obs2:
1 conv-obs2.HDU_1
2 conv-obs2.HDU_2
conv-obs3:
1 conv-obs3.HDU_1
2 conv-obs3.HDU_2
For subsequent work you need only
supply the names of the container files (conv-obs*)
and the CCDPACK commands will look inside and find the
data frames with their
associated Set header information.
See SUN/55 for a full description of the CONVERT
facility.
CCDPACK