This needs a vastly better name. The parameter names should be longer. What is `ra`? What is it supposed to stand for? Code needs to be self-documenting, especially with no comments or doc-strings.