Ok, I think this post may answer my first question: Idepix pixel_classif_flags interpretation
For others: it is an integer field. When I read it in, I think it must be big-endian (otherwise I get negative values). And the interpretation key is in the file “target.dim”.