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 | |
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 | |
Private Attributes | |
_filenameList | |
_healpix | |
_nside | |
_mi | |
_loaded | |
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 53 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.__init__ | ( | self, | |
filenameList, | |||
healpix, | |||
nside | |||
) |
Constructor.
filenameList | List of filenames; first is the multiindex, then follows the individual index files |
healpix | Healpix number |
nside | Healpix nside |
Definition at line 59 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.__getitem__ | ( | self, | |
i | |||
) |
Definition at line 146 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.__iter__ | ( | self | ) |
Definition at line 153 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.__len__ | ( | self | ) |
Definition at line 150 of file multiindex.py.
def lsst.meas.astrom.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 78 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.isWithinRange | ( | self, | |
coord, | |||
distance | |||
) |
Is the index within range of the provided coordinates?
coord | Coordinate to check (lsst.afw.coord.Coord) |
distance | Angular distance (lsst.afw.geom.Angle) |
Definition at line 138 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.read | ( | self | ) |
Read the indices
Definition at line 95 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.reload | ( | self | ) |
def lsst.meas.astrom.multiindex.MultiIndexCache.unload | ( | self | ) |
|
private |
Definition at line 70 of file multiindex.py.
|
private |
Definition at line 71 of file multiindex.py.
|
private |
Definition at line 74 of file multiindex.py.
|
private |
Definition at line 73 of file multiindex.py.
|
private |
Definition at line 72 of file multiindex.py.
lsst.meas.astrom.multiindex.MultiIndexCache.log |
Definition at line 75 of file multiindex.py.