BaseRepresentation¶
-
class
astropy.coordinates.BaseRepresentation[source] [edit on github]¶ Bases:
objectBase Representation object, for representing a point in a 3D coordinate system.
Notes
All representation classes should subclass this base representation class. All subclasses should then define a
to_cartesianmethod and afrom_cartesianclass method. By default, transformations are done via the cartesian system, but classes that want to define a smarter transformation path can overload therepresent_asmethod. Furthermore, all classes must define anattr_classesattribute, anOrderedDictwhich maps component names to the class that creates them. They can also define arecommended_unitsdictionary, which maps component names to the units they are best presented to users in. Note that frame classes may override this with their own preferred units.Attributes Summary
componentsA tuple with the in-order names of the coordinate components isscalarrecommended_unitsshapeMethods Summary
from_cartesian()from_representation(representation)get_name()represent_as(other_class)to_cartesian()Attributes Documentation
-
components¶ A tuple with the in-order names of the coordinate components
-
isscalar¶
-
recommended_units= {}¶
-
shape¶
Methods Documentation
-
from_cartesian()[source] [edit on github]¶
-
classmethod
from_representation(representation)[source] [edit on github]¶
-
classmethod
get_name()[source] [edit on github]¶
-
represent_as(other_class)[source] [edit on github]¶
-
to_cartesian()[source] [edit on github]¶
-