When pixel_mask_applied is TRUE, invalid pixels (e.g. gaps) are represented by (2 \ image_depth) - 1 in /entry/data/data_NNNNNN. So eiger2cbf converts this value to -1. However, heavily saturated pixels, too, can have this value. They can be distinguished by looking at pixel_mask.
Should we also convert them to -1? Or keep them as they are? The converter from Dectris takes the latter strategy.
When pixel_mask_applied is TRUE, invalid pixels (e.g. gaps) are represented by (2 \ image_depth) - 1 in /entry/data/data_NNNNNN. So eiger2cbf converts this value to -1. However, heavily saturated pixels, too, can have this value. They can be distinguished by looking at pixel_mask.
Should we also convert them to -1? Or keep them as they are? The converter from Dectris takes the latter strategy.