lsst.meas.extensions.astrometryNet  master-g43362ee2f3+10
 All Classes Namespaces Files Functions Variables Properties Groups Pages
Public Member Functions | Public Attributes | List of all members
lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache Class Reference
Inheritance diagram for lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache:

Public Member Functions

def __init__
 Constructor. More...
 
def fromFilenameList
 
def read
 
def reload
 
def unload
 
def isWithinRange
 Is the index within range of the provided coordinates? More...
 
def __getitem__
 
def __len__
 
def __iter__
 

Public Attributes

 log
 

Detailed Description

A wrapper for the multiindex_t, which only reads the data when it needs to

The MultiIndexCache may be instantiated directly, or via the 'fromFilenameList'
class method, which loads it from a list of filenames.

Definition at line 62 of file multiindex.py.

Constructor & Destructor Documentation

def lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache.__init__ (   self,
  filenameList,
  healpix,
  nside 
)

Constructor.

Parameters
filenameListList of filenames; first is the multiindex, then follows the individual index files
healpixHealpix number
nsideHealpix nside

Definition at line 69 of file multiindex.py.

Member Function Documentation

def lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache.__getitem__ (   self,
  i 
)

Definition at line 156 of file multiindex.py.

def lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache.__iter__ (   self)

Definition at line 163 of file multiindex.py.

def lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache.__len__ (   self)

Definition at line 160 of file multiindex.py.

def lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache.fromFilenameList (   cls,
  filenameList 
)
Construct from a list of filenames

The list of filenames should contain the multiindex filename first,
then the individual index filenames.  The healpix and nside are
determined by reading the indices, so this is not very efficient.

Definition at line 88 of file multiindex.py.

def lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache.isWithinRange (   self,
  coord,
  distance 
)

Is the index within range of the provided coordinates?

Parameters
coordCoordinate to check (lsst.afw.coord.Coord)
distanceAngular distance (lsst.afw.geom.Angle)

Definition at line 148 of file multiindex.py.

def lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache.read (   self)
Read the indices

Definition at line 105 of file multiindex.py.

def lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache.reload (   self)
Reload the indices.

Definition at line 131 of file multiindex.py.

def lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache.unload (   self)
Unload the indices

Definition at line 141 of file multiindex.py.

Member Data Documentation

lsst.meas.extensions.astrometryNet.multiindex.MultiIndexCache.log

Definition at line 85 of file multiindex.py.


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