[cctbxbb] getting indices of selected grid elements of a map