Similar to radex, with a different way to solve the statistical equilibrium problem