A fancy way to get the indices of gtab.b0s_mask