[AstroPy] Question on astropy.coordinates internals
Hervé Aussel
herve.aussel at cea.fr
Thu Jul 6 11:20:49 EDT 2017
Hello,
I am working on a package to handle spacecrafts attitudes in python, and I would like to build on the astropy.coordinates package, especially to handle transformations between reference frames. I have a few questions regarding the internals of the package.
- What is the correct way to check that an input is a bona fide reference frame ? Playing around, I have come with this:
import astropy.coordinates as coord
isinstance(my_input_frame, coord.baseframe.FrameMeta)
- Is there a way to access the directly the coodinate tranformation matrix ? So far, I use the transformation on each of the cartesian unit vector to build the rotation matrix, but this is a bit clunky...
Thanks for your help,
Cheers,
Hervé
-----------------------------------------------------------------------------------------
Hervé Aussel
EC SPV Lead
AIM Paris-Saclay phone: (+33) 01 69 08 95 79
UMR 7158 fax : (+33) 01 69 08 65 77
Bat 709 CE-Saclay
Orme des Merisiers email: herve.aussel at cea.fr
F 91 191 Gif-sur-Yvette
More information about the AstroPy
mailing list