readValidMask and isPixelValid methods

Hi again

I need some help in understanding the readValidMask and the isPixelValid methods …
How are they computed? Is the result of flags applications? in case … which ones?
Are they supposed to yield the same value on the same pixels?
Is there any documentation on such methods?
I’ve seen
http://step.esa.int/docs/v5.0/apidoc/engine/org/esa/snap/core/datamodel/RasterDataNode.html#readValidMask-int-int-int-int-boolean:A-
but it isn’t very verbose … :slight_smile:
Thanks a lot in advance for any help.
Mario

Yes, you are right. It is very silent.
I’ve added some documentation to it (readValidMask() on GitHub).

The mask is derived from the valid pixel expression (getValidPixelExpression()) and from the no-data value (getNoDataValue())

If you call getValidMaskExpression() you get a string which shows how the mask is build.