Added 'get_indices' function from Filipe Fernandes' oceans module.