X-GEN Manual, Section 5 AMASK (active-pixel bitmask) File Formats

The AMASK file (.ams) is a binary file containing a bitmask that defines which pixels on the detector face is active. Each byte of the file will contain eight separate values (0 or 1), corresponding to eight consecutive pixels within a single row of the detector face. Thus if the detector is (NxM) pixels in size, then the Mth row of the file will be (N/8) bytes long; the (ith) byte of that row will contain information describing pixels (8i), (8i+1), . . . (8i+7). Each bit will be 0 if the pixel is inactive; it will be 1 if the pixel is active.

The AMASK file is created in the border and spots functionalities, and can be manually or semi-manually edited in the editbord functionality. It gets used in all the other applications that need to be able to distinguish between active and inactive pixels, including "refine1", "refall", "refine", "integrate", and "reduce."

Usage: $WORK/<idname>.ams
Written from: border and spots
Edited in: editbord
Read in: "refine1", "refall", "refine", "integrate", "reduce".

Report bugs to Andy Howard at howard@iit.edu or 312-567-5881.