I thought it was cleaner making this one a class method (should have used cos instead os self), but it seems that this is bad manner if the method doe not do anything to the class.

Done in https://github.com/jwoillez/astroquery/commit/42108e874e2e06c9fff261b608eff460de0851e5