LSSTApplications  17.0+103,17.0+11,17.0+61,18.0.0+13,18.0.0+25,18.0.0+5,18.0.0+52,18.0.0-4-g68ffd23,18.1.0-1-g0001055+8,18.1.0-1-g03d53ef+1,18.1.0-1-g1349e88+28,18.1.0-1-g2505f39+22,18.1.0-1-g380d4d4+27,18.1.0-1-g5315e5e+1,18.1.0-1-g5e4b7ea+10,18.1.0-1-g7e8fceb+1,18.1.0-1-g85f8cd4+23,18.1.0-1-g9a6769a+13,18.1.0-1-ga1a4c1a+22,18.1.0-1-gd55f500+17,18.1.0-12-g42eabe8e+10,18.1.0-14-gd04256d+15,18.1.0-16-g430f6a53+1,18.1.0-17-gd2166b6e4,18.1.0-18-gb5d19ff+1,18.1.0-2-gfbf3545+7,18.1.0-2-gfefb8b5+16,18.1.0-3-g52aa583+13,18.1.0-3-g62b5e86+14,18.1.0-3-g8f4a2b1+17,18.1.0-3-g9bc06b8+7,18.1.0-3-gb69f684+9,18.1.0-4-g1ee41a7+1,18.1.0-5-g6dbcb01+13,18.1.0-5-gc286bb7+3,18.1.0-6-g48bdcd3+2,18.1.0-6-gd05e160+9,18.1.0-7-gc4d902b+2,18.1.0-7-gebc0338+8,18.1.0-9-gae7190a+10,w.2019.38
LSSTDataManagementBasePackage
Public Member Functions | Static Public Attributes | List of all members
lsst.meas.extensions.astrometryNet.astrometryNetDataConfig.AstrometryNetDataConfig Class Reference

Public Member Functions

def load (self, fn)
 
def __init__ (self, kwargs)
 
def setDefaults (self)
 
def set (self, k, v)
 
def __setattr__ (self, k, v)
 

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 57 of file astrometryNetDataConfig.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 100 of file astrometryNetDataConfig.py.

100  def __init__(self, **kwargs):
101  self.setDefaults()
102  for k, v in kwargs.items():
103  self.set(k, v)
104 
def __init__(self, minimum, dataRange, Q)

Member Function Documentation

◆ __setattr__()

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

Definition at line 112 of file astrometryNetDataConfig.py.

112  def __setattr__(self, k, v):
113  for nm, typ, deef, check, doc in AstrometryNetDataConfig.fields:
114  if k != nm:
115  continue
116  if typ is not None:
117  if v is None:
118  pass
119  elif not isinstance(v, typ):
120  raise RuntimeError(('Attempted to set AstrometryNetDataConfig'
121  ' field \"%s\" to type %s, but need type %s') %
122  (nm, str(typ), str(type(v))))
123  if check is not None:
124  check(v)
125  # Looks ok; set it!
126  object.__setattr__(self, nm, v)
127  return
128 
129  raise RuntimeError('Attempted to set invalid AstrometryNetDataConfig'
130  ' field \"%s\"' % k)
131 
table::Key< int > type
Definition: Detector.cc:167

◆ load()

def lsst.meas.extensions.astrometryNet.astrometryNetDataConfig.AstrometryNetDataConfig.load (   self,
  fn 
)

Definition at line 93 of file astrometryNetDataConfig.py.

93  def load(self, fn):
94  # Hold on to your socks!
95  loc = dict(root=self)
96  with open(fn, 'rb') as file:
97  code = compile(file.read(), fn, 'exec')
98  exec(code, globals(), loc)
99 

◆ set()

def lsst.meas.extensions.astrometryNet.astrometryNetDataConfig.AstrometryNetDataConfig.set (   self,
  k,
  v 
)

Definition at line 109 of file astrometryNetDataConfig.py.

109  def set(self, k, v):
110  setattr(self, k, v)
111 
daf::base::PropertySet * set
Definition: fits.cc:884

◆ setDefaults()

def lsst.meas.extensions.astrometryNet.astrometryNetDataConfig.AstrometryNetDataConfig.setDefaults (   self)

Definition at line 105 of file astrometryNetDataConfig.py.

105  def setDefaults(self):
106  for nm, typ, deef, check, doc in AstrometryNetDataConfig.fields:
107  self.set(nm, deef)
108 

Member Data Documentation

◆ fields

list lsst.meas.extensions.astrometryNet.astrometryNetDataConfig.AstrometryNetDataConfig.fields
static
Initial value:
= [
('idColumn', str, 'id', None,
'Column name (in the index files) of the ID number of reference sources'),
('defaultMagColumn', str, 'mag', None,
'Default column name (in the index files) of the reference source mag'),
('defaultMagErrorColumn', str, '', None,
'Default column name (in the index files) of the reference source mag error'),
('starGalaxyColumn', str, None, None,
'Column name of the star/galaxy flag'),
('variableColumn', str, None, None,
'Column name of the star variability flag'),
('magErrorColumnMap', dict, {}, _checkMagMap,
'Mapping from LSST filter name to mag error column name'),
('magColumnMap', dict, {}, _checkMagMap,
'Mapping from LSST filter name to mag column name'),
('indexFiles', list, [], _checkIndexList,
'List of Astrometry.net index filenames'),
('multiIndexFiles', list, [], _checkMultiIndexList,
'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.'),
('allowCache', bool, True, None,
'Allow use of cache for reading index file regions?'),
]

Definition at line 65 of file astrometryNetDataConfig.py.


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