What do the flags in the second extension of the CALEXP fits files mean?

I’m processing HSC data. Looking at the output of the processccd.py stage, I see that the second extension of the CORR-0123456-041.fits files represents flags for each pixel. What is the meaning of each of the flags?

This is referred to in the Science Pipelines documentation as the “mask” plane.

Getting started tutorial part 3: displaying exposures and source tables output by processCcd.py — LSST Science Pipelines has a way to retrieve the names of the bits (and the bit position, although that’s not printed in the code snippet). You can also see the bit numbers for each plane in the MP_* headers within the mask plane HDU in the FITS file.

LSST Applications: How Mask Planes are handled in @c afw gives a bit more low-level information.

As to translating the mask names into what they actually mean, I’ll leave that for someone else.

1 Like

The second link is what I wanted, thanks!