biochem-fan / eiger2cbf

Converts HDF5 files from EIGER detectors to miniCBF format
Other
10 stars 12 forks source link

Heavily saturated pixels #2

Closed biochem-fan closed 8 years ago

biochem-fan commented 8 years ago

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.

biochem-fan commented 8 years ago

Fixed to respect the pixel_mask. Confirmed that the output is identical to H5ToXds.