Inversion of the RAMI data