LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Static Public Attributes | List of all members
lsst.meas.astrom.astrometryNetDataConfig.AstrometryNetDataConfig Class Reference
Inheritance diagram for lsst.meas.astrom.astrometryNetDataConfig.AstrometryNetDataConfig:

Public Member Functions

def load
 
def __init__
 
def setDefaults
 
def set
 
def __setattr__
 

Static Public Attributes

list fields
 

Detailed Description

Astrometry.net data config object.  This is a plain-python config
structure similar to pexConfig.

For examples of use, see tests/astrometry_net_data/photocal/andConfig*.py

Definition at line 51 of file astrometryNetDataConfig.py.

Constructor & Destructor Documentation

def lsst.meas.astrom.astrometryNetDataConfig.AstrometryNetDataConfig.__init__ (   self,
  kwargs 
)

Member Function Documentation

def lsst.meas.astrom.astrometryNetDataConfig.AstrometryNetDataConfig.__setattr__ (   self,
  k,
  v 
)

Definition at line 99 of file astrometryNetDataConfig.py.

99 
100  def __setattr__(self, k, v):
101  for nm,typ,deef,check,doc in AstrometryNetDataConfig.fields:
102  if k != nm:
103  continue
104  if typ is not None:
105  if v is None:
106  pass
107  elif not isinstance(v, typ):
108  raise RuntimeError(('Attempted to set AstrometryNetDataConfig'
109  ' field \"%s\" to type %s, but need type %s') %
110  (nm, str(typ), str(type(v))))
111  if check is not None:
112  check(v)
113  # Looks ok; set it!
114  object.__setattr__(self, nm, v)
115  return
116 
117  raise RuntimeError('Attempted to set invalid AstrometryNetDataConfig'
118  ' field \"%s\"' % k)
def lsst.meas.astrom.astrometryNetDataConfig.AstrometryNetDataConfig.load (   self,
  fn 
)

Definition at line 82 of file astrometryNetDataConfig.py.

82 
83  def load(self, fn):
84  # Hold on to your socks!
85  loc = dict(root=self)
86  execfile(fn, globals(), loc)
def lsst.meas.astrom.astrometryNetDataConfig.AstrometryNetDataConfig.set (   self,
  k,
  v 
)

Definition at line 96 of file astrometryNetDataConfig.py.

96 
97  def set(self, k, v):
98  setattr(self, k, v)
def lsst.meas.astrom.astrometryNetDataConfig.AstrometryNetDataConfig.setDefaults (   self)

Definition at line 92 of file astrometryNetDataConfig.py.

92 
93  def setDefaults(self):
94  for nm,typ,deef,check,doc in AstrometryNetDataConfig.fields:
95  self.set(nm, deef)

Member Data Documentation

list lsst.meas.astrom.astrometryNetDataConfig.AstrometryNetDataConfig.fields
static
Initial value:
1 = [
2  ('idColumn', str, 'id', None,
3  'Column name (in the index files) of the ID number of reference sources'),
4  ('defaultMagColumn', str, 'mag', None,
5  'Default column name (in the index files) of the reference source mag'),
6  ('defaultMagErrorColumn', str, '', None,
7  'Default column name (in the index files) of the reference source mag error'),
8  ('starGalaxyColumn', str, None, None,
9  'Column name of the star/galaxy flag'),
10  ('variableColumn', str, None, None,
11  'Column name of the star variability flag'),
12  ('magErrorColumnMap', dict, {}, _checkMagMap,
13  'Mapping from LSST filter name to mag error column name'),
14  ('magColumnMap', dict, {}, _checkMagMap,
15  'Mapping from LSST filter name to mag column name'),
16  ('indexFiles', list, [], _checkIndexList,
17  'List of Astrometry.net index filenames'),
18  ('multiIndexFiles', list, [], _checkMultiIndexList,
19  'Astrometry.net multi-index filename lists. Each item in this list must itself be a list of filenames. The first filename is the file that contains the star kd-tree and tag-along tables. Subsequent filenames must be files containing just the non-star index parts (quads and code kd-tree). Note that this means you may need to repeat the first filename if it contains a star kd-tree and the first index.'),
20  ('allowCache', bool, True, None,
21  'Allow use of cache for reading index file regions?'),
22  ]

Definition at line 59 of file astrometryNetDataConfig.py.


The documentation for this class was generated from the following file: