1 from __future__
import absolute_import, division, print_function
7 coordSystem = self.getCoordSystem()
8 argList = [
"%r*afwGeom.degrees" % (pos.asDegrees(),)
for pos
in self]
9 if coordSystem == TOPOCENTRIC:
11 repr(self.getEpoch()),
12 "(%r)" % (self.getObservatory(),),
14 elif coordSystem
not in (ICRS, GALACTIC):
15 argList.append(repr(self.getEpoch()))
16 return "%s(%s)" % (self.getClassName(),
", ".join(argList))
19 Coord.__repr__ = __repr__
20 Fk5Coord.__repr__ = __repr__
21 IcrsCoord.__repr__ = __repr__
22 GalacticCoord.__repr__ = __repr__
23 EclipticCoord.__repr__ = __repr__
24 TopocentricCoord.__repr__ = __repr__
36 Coord.__iter__ = __iter__
37 Fk5Coord.__iter__ = __iter__
38 IcrsCoord.__iter__ = __iter__
39 GalacticCoord.__iter__ = __iter__
40 EclipticCoord.__iter__ = __iter__
41 TopocentricCoord.__iter__ = __iter__
50 Coord.__len__ = __len__
51 Fk5Coord.__len__ = __len__
52 IcrsCoord.__len__ = __len__
53 GalacticCoord.__len__ = __len__
54 EclipticCoord.__len__ = __len__
55 TopocentricCoord.__len__ = __len__
61 return (Coord, (self.getLongitude(), self.getLatitude(), self.getEpoch()))
64 Coord.__reduce__ = _reduceCoord
68 return (Fk5Coord, (self.getLongitude(), self.getLatitude(), self.getEpoch()))
71 Fk5Coord.__reduce__ = _reduceFk5Coord
75 return (EclipticCoord, (self.getLongitude(), self.getLatitude(), self.getEpoch()))
78 EclipticCoord.__reduce__ = _reduceEclipticCoord
82 return (GalacticCoord, (self.getLongitude(), self.getLatitude()))
85 GalacticCoord.__reduce__ = _reduceGalacticCoord
89 return (IcrsCoord, (self.getLongitude(), self.getLatitude()))
92 IcrsCoord.__reduce__ = _reduceIcrsCoord
def _reduceFk5Coord(self)
def _reduceGalacticCoord(self)
def _reduceEclipticCoord(self)
def _reduceIcrsCoord(self)