next up previous 256
Next: Acknowledgements
Up: CCDPACK
Previous: Output names


Bad data masks (ARD)

The CCDPACK routine DEBIAS allows regions to be defined as having poor quality by two basic methods, by use of an image whose data component values are set bad (either explicitly or by use of the NDF quality component and the badbits flag -- see SUN/33) or by interpreting bad-region commands within an ordinary text file (an ASCII region definition file -- ARD file).

Setting regions of an image to bad can be done graphically using the GAIA display tool (SUN/214) which can also create an ARD file to describe these regions. Alternatively KAPPA (SUN/95) also provides applications for this task (see ZAPLIN, SEGMENT ARDGEN and ARDMASK).

The capabilities of the ARD option (which uses considerably less disk space than the ``image with bad regions'' option and hence could form part of a `database') are described below (for more details see SUN/183).

The shapes of regions which can be defined are specified by the following KEYWORDS:

BOX, CIRCLE, COLUMN, ELLIPSE, LINE, PIXEL, POLYGON, RECT, ROTBOX, ROW

Regions are specified using the keywords suffixed by the following information:

The angles are measured X through Y positive.

A sample ARD description follows:

#
# ARD description file for bad regions of my CCD.

COLUMN( 41, 177, 212 )        # Three bad columns
PIXEL( 201, 143, 153, 167 )   # Two Bad pixels
BOX( 188, 313, 5, 5 )         # One Hot spot centred at 188,313
ELLIPSE( 99, 120, 21.2, 5.4, 45.0 )

# Polygons defining badly vignetted corners
POLYGON( 2.2, 96.4, 12.1, 81.5, 26.9, 63.7, 47.7, 41.9,
         61.5, 24.1, 84.3, 0.0 , 0.0, 0.0 )
POLYGON( 6.2, 294.3, 27.9, 321.0, 52.6, 348.7, 74.4, 371.5,
         80.0, 384.0, 0.0, 384.0 )
#

But you should use the ARDGEN application to produce these files.


next up previous 256
Next: Acknowledgements
Up: CCDPACK
Previous: Output names

CCDPACK
Starlink User Note 139
Peter W. Draper, Mark Taylor, Alasdair Allan
1 February 2006
E-mail:ussc@star.rl.ac.uk

Copyright © 2009 Science and Technology Facilities Council