LSSTApplications
11.0-22-g33de520,12.1+25,13.0+25,13.0+30,13.0-1-g174df6e+3,13.0-1-g41367f3+3,13.0-1-g47a359c+3,13.0-1-g52a7baa+3,13.0-1-g976b40b+3,13.0-10-gcc6134a+6,13.0-10-gf7c21d5+2,13.0-13-gdd29b46+5,13.0-14-gc9904b0,13.0-2-g15de9a1+3,13.0-2-ga4f5e85+6,13.0-2-gf5c5ced+6,13.0-2-gf9e84ea+5,13.0-22-g8f1d162,13.0-3-g7fa07e0+4,13.0-34-ga37f01a,13.0-4-g0bde1de,13.0-5-g0db1a30+1,13.0-5-g6708b9e+9,13.0-6-g7b63e3f+6,13.0-8-gba0f85f,13.0-9-gc47bba1,master-gb637561bb9
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 60 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 67 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.__getitem__ | ( | self, | |
i | |||
) |
Definition at line 154 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.__iter__ | ( | self | ) |
Definition at line 161 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.__len__ | ( | self | ) |
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 86 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 146 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.read | ( | self | ) |
Read the indices
Definition at line 103 of file multiindex.py.
def lsst.meas.astrom.multiindex.MultiIndexCache.reload | ( | self | ) |
def lsst.meas.astrom.multiindex.MultiIndexCache.unload | ( | self | ) |
|
private |
Definition at line 78 of file multiindex.py.
|
private |
Definition at line 79 of file multiindex.py.
|
private |
Definition at line 82 of file multiindex.py.
|
private |
Definition at line 81 of file multiindex.py.
|
private |
Definition at line 80 of file multiindex.py.
lsst.meas.astrom.multiindex.MultiIndexCache.log |
Definition at line 83 of file multiindex.py.