Add method to get raw index from a cube