I’m trying to read in the Masks present in a subset OLCI reflectance product.
I first load the mask group:
Masks = sub_product.getGroup(‘Masks’)
I then access the mask I am interested in:
glintMask = Masks.get(‘quality_flags_sun_glint_risk’)
However this return an object of type org.esa.snap.core.datamodel.ProductNode. This type does not have the readPixel method as for object types org.esa.snap.core.datamodel.Band. This is an example of what I’d like to do but for the tie points:
lon = rp.getTiePointGrid(‘TP_longitude’).readPixels(0, 0, w, h, np.zeros(w * h, np.float32))
Thus I am struggling to read the data from the [boolean] Masks. Can you help to point to methods to read in the boolean masks?