So I\'m recreating a Matlab project they made last year, part of which involves creating mask that pull out the RGB bands. They did this by an array of logical zeroes.
You can translate Matlab's
GMask_Whole(1:2:end,2:2:end) = true;
to python by
green_mask_whole[::2,1::2] = True
(assuming green_mask_whole is a numpy array)
green_mask_whole