Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/TCC/html/namespacetcc_1_1parse_1_1get_coord_sys.html
Дата изменения: Tue Sep 15 02:25:41 2015
Дата индексирования: Sun Apr 10 05:10:10 2016
Кодировка:

Поисковые слова: arp 220
lsst.tcc: tcc.parse.getCoordSys Namespace Reference
lsst.tcc  1.2.2-3-g89ecb63
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
tcc.parse.getCoordSys Namespace Reference

Functions

def getCoordSys
 Obtain a coordinate system from a parsed parameter. More...
 
def makeCoordSys
 Make a coordinate system from its name and date. More...
 

Variables

list __all__ = ["getCoordSys", "makeCoordSys", "OldCoordSysCodeNameDict", "CoordCmdNameDict"]
 
 SecPerYear = coordConv.SecPerDay*coordConv.DaysPerYear
 
tuple _CoordSysDict
 
tuple _OtherCoordSysSet = set(("mount", "instrument", "gimage", "gprobe", "ptcorr", "rotator"))
 
tuple CoordCmdNameDict = dict((key, val[0]) for key, val in _CoordSysDict.iteritems())
 
dictionary OldCoordSysCodeNameDict
 

Function Documentation

def tcc.parse.getCoordSys.getCoordSys (   param)

Obtain a coordinate system from a parsed parameter.

Parameters
[in]paramthe parsed parameter
Returns
a coordinate system as a shared_ptr to a subclass of coordConv.CoordSys, or None if not present (returning a shared_ptr allows the result to be used to set Obj.userSys)
Exceptions
twistedActor.CommandErrorif the coordinate system is unrecognized

Definition at line 31 of file getCoordSys.py.

def tcc.parse.getCoordSys.makeCoordSys (   name,
  date 
)

Make a coordinate system from its name and date.

Unlike coordConv.makeCoordSys this supports focal plane coordinate systems

Parameters
[in]namecoordinate system name used by the command parser (case insensitive)
[in]datecoordinate system date, or None for default date

Definition at line 57 of file getCoordSys.py.

Variable Documentation

list tcc.parse.getCoordSys.__all__ = ["getCoordSys", "makeCoordSys", "OldCoordSysCodeNameDict", "CoordCmdNameDict"]

Definition at line 6 of file getCoordSys.py.

tuple tcc.parse.getCoordSys._CoordSysDict
Initial value:
1 = dict(
2  icrs = ("icrs", 0),
3  fk5 = ("fk5", 2000.0),
4  fk4 = ("fk4", 1950.0),
5  galactic = ("gal", 0),
6  geocentric = ("appgeo", 0),
7  topocentric = ("apptopo", 0),
8  observed = ("obs", 0),
9  none = ("none", 0),
10 )

Definition at line 12 of file getCoordSys.py.

tuple tcc.parse.getCoordSys._OtherCoordSysSet = set(("mount", "instrument", "gimage", "gprobe", "ptcorr", "rotator"))

Definition at line 24 of file getCoordSys.py.

tuple tcc.parse.getCoordSys.CoordCmdNameDict = dict((key, val[0]) for key, val in _CoordSysDict.iteritems())

Definition at line 27 of file getCoordSys.py.

dictionary tcc.parse.getCoordSys.OldCoordSysCodeNameDict
Initial value:
1 = {
2  -9: "GImage",
3  -8: "GProbe",
4  -7: "Rotator",
5  -6: "Instrument",
6 
7  -5: "Mount",
8  #-4: "Physical", # the new TCC does not support physical coordinates
9 
10  -3: "Observed",
11  -2: "Topocentric",
12  -1: "Geocentric",
13 
14  0: "None",
15 
16  1: "FK4",
17  2: "FK5",
18  3: "Galactic",
19  4: "ICRS",
20 }

Definition at line 80 of file getCoordSys.py.

tcc.parse.getCoordSys.SecPerYear = coordConv.SecPerDay*coordConv.DaysPerYear

Definition at line 8 of file getCoordSys.py.