LSSTApplications  11.0-24-g0a022a1,14.0+77,15.0,15.0+1
LSSTDataManagementBasePackage
Functions
lsst.afw.coord.coord Namespace Reference

Functions

def __repr__ (self)
 
def __iter__ (self)
 
def __len__ (self)
 
def _reduceCoord (self)
 
def _reduceFk5Coord (self)
 
def _reduceEclipticCoord (self)
 
def _reduceGalacticCoord (self)
 
def _reduceIcrsCoord (self)
 

Function Documentation

◆ __iter__()

def lsst.afw.coord.coord.__iter__ (   self)

Definition at line 31 of file coord.py.

31 def __iter__(self):
32  for i in (0, 1):
33  yield self[i]
34 
35 
36 Coord.__iter__ = __iter__
37 Fk5Coord.__iter__ = __iter__
38 IcrsCoord.__iter__ = __iter__
39 GalacticCoord.__iter__ = __iter__
40 EclipticCoord.__iter__ = __iter__
41 TopocentricCoord.__iter__ = __iter__
42 
def __iter__(self)
Definition: coord.py:31

◆ __len__()

def lsst.afw.coord.coord.__len__ (   self)

Definition at line 46 of file coord.py.

46 def __len__(self):
47  return 2
48 
49 
50 Coord.__len__ = __len__
51 Fk5Coord.__len__ = __len__
52 IcrsCoord.__len__ = __len__
53 GalacticCoord.__len__ = __len__
54 EclipticCoord.__len__ = __len__
55 TopocentricCoord.__len__ = __len__
56 
def __len__(self)
Definition: coord.py:46

◆ __repr__()

def lsst.afw.coord.coord.__repr__ (   self)

Definition at line 6 of file coord.py.

6 def __repr__(self):
7  coordSystem = self.getCoordSystem()
8  argList = ["%r*afwGeom.degrees" % (pos.asDegrees(),) for pos in self]
9  if coordSystem == TOPOCENTRIC:
10  argList += [
11  repr(self.getEpoch()),
12  "(%r)" % (self.getObservatory(),),
13  ]
14  elif coordSystem not in (ICRS, GALACTIC):
15  argList.append(repr(self.getEpoch()))
16  return "%s(%s)" % (self.getClassName(), ", ".join(argList))
17 
18 
19 Coord.__repr__ = __repr__
20 Fk5Coord.__repr__ = __repr__
21 IcrsCoord.__repr__ = __repr__
22 GalacticCoord.__repr__ = __repr__
23 EclipticCoord.__repr__ = __repr__
24 TopocentricCoord.__repr__ = __repr__
25 
def __repr__(self)
Definition: coord.py:6

◆ _reduceCoord()

def lsst.afw.coord.coord._reduceCoord (   self)
private

Definition at line 60 of file coord.py.

60 def _reduceCoord(self):
61  return (Coord, (self.getLongitude(), self.getLatitude(), self.getEpoch()))
62 
63 
64 Coord.__reduce__ = _reduceCoord
65 
66 
def _reduceCoord(self)
Definition: coord.py:60

◆ _reduceEclipticCoord()

def lsst.afw.coord.coord._reduceEclipticCoord (   self)
private

Definition at line 74 of file coord.py.

74 def _reduceEclipticCoord(self):
75  return (EclipticCoord, (self.getLongitude(), self.getLatitude(), self.getEpoch()))
76 
77 
78 EclipticCoord.__reduce__ = _reduceEclipticCoord
79 
80 
def _reduceEclipticCoord(self)
Definition: coord.py:74

◆ _reduceFk5Coord()

def lsst.afw.coord.coord._reduceFk5Coord (   self)
private

Definition at line 67 of file coord.py.

67 def _reduceFk5Coord(self):
68  return (Fk5Coord, (self.getLongitude(), self.getLatitude(), self.getEpoch()))
69 
70 
71 Fk5Coord.__reduce__ = _reduceFk5Coord
72 
73 
def _reduceFk5Coord(self)
Definition: coord.py:67

◆ _reduceGalacticCoord()

def lsst.afw.coord.coord._reduceGalacticCoord (   self)
private

Definition at line 81 of file coord.py.

81 def _reduceGalacticCoord(self):
82  return (GalacticCoord, (self.getLongitude(), self.getLatitude()))
83 
84 
85 GalacticCoord.__reduce__ = _reduceGalacticCoord
86 
87 
def _reduceGalacticCoord(self)
Definition: coord.py:81

◆ _reduceIcrsCoord()

def lsst.afw.coord.coord._reduceIcrsCoord (   self)
private

Definition at line 88 of file coord.py.

88 def _reduceIcrsCoord(self):
89  return (IcrsCoord, (self.getLongitude(), self.getLatitude()))
90 
91 
92 IcrsCoord.__reduce__ = _reduceIcrsCoord
93 
def _reduceIcrsCoord(self)
Definition: coord.py:88