getOmegaIndexes function

Get the indexes of the omegas.