lsst.meas.extensions.astrometryNet  17.0.1-3-gd08d533+25
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__ (self, filenameList, healpix, nside)
 Constructor. More...
 
def fromFilenameList (cls, filenameList)
 
def read (self)
 
def reload (self)
 
def unload (self)
 
def isWithinRange (self, coord, distance)
 Is the index within range of the provided coordinates? More...
 
def __getitem__ (self, i)
 
def __len__ (self)
 
def __iter__ (self)
 

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 63 of file multiindex.py.

Constructor & Destructor Documentation

◆ __init__()

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 71 of file multiindex.py.

Member Function Documentation

◆ __getitem__()

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

Definition at line 158 of file multiindex.py.

◆ __iter__()

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

Definition at line 165 of file multiindex.py.

◆ __len__()

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

Definition at line 162 of file multiindex.py.

◆ fromFilenameList()

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 90 of file multiindex.py.

◆ isWithinRange()

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

Is the index within range of the provided coordinates?

Parameters
coordICRS coordinate to check (lsst.afw.geom.SpherPoint)
distanceAngular distance (lsst.afw.geom.Angle)

Definition at line 150 of file multiindex.py.

◆ read()

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

Definition at line 107 of file multiindex.py.

◆ reload()

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

Definition at line 133 of file multiindex.py.

◆ unload()

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

Definition at line 143 of file multiindex.py.

Member Data Documentation

◆ log

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

Definition at line 87 of file multiindex.py.


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