Sorry for not being precise, I tried all the possible combinations includind this:
my_real_mask.loadRasterData()
my_real_mask.getPixels(0,0,w,h, data)
but still didn’t work.
Could it be a problem with the snappy version as pointed out by this thread?
Concerning the Sea-land mask it’s exactly what i’d like to achieve, thanks! Is there any example on how I should use it with python instead of the GUI?