LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, config=None) |
def | __getstate__ (self) |
def | __setstate__ (self, stateDict) |
def | getVersion (self) |
def | updateSha1 (self, sha1) |
def | findTract (self, coord) |
def | findTractIdArray (self, ra, dec, degrees=False) |
def | findTractPatchList (self, coordList) |
def | findClosestTractPatchList (self, coordList) |
def | __getitem__ (self, ind) |
def | __iter__ (self) |
def | __len__ (self) |
def | __hash__ (self) |
def | __eq__ (self, other) |
def | __ne__ (self, other) |
def | logSkyMapInfo (self, log) |
def | getSha1 (self) |
def | register (self, name, butler) |
Public Attributes | |
config | |
Static Public Attributes | |
ConfigClass = EquatSkyMapConfig | |
string | SKYMAP_RUN_COLLECTION_NAME = "skymaps" |
string | SKYMAP_DATASET_TYPE_NAME = "skyMap" |
Equatorial sky map pixelization, e.g. for SDSS stripe 82 image data. EquatSkyMap represents an equatorial band of sky divided along declination into overlapping tracts. Parameters ---------- config : `lsst.skymap.BaseSkyMapConfig` (optional) The configuration for this SkyMap; if None use the default config.
Definition at line 50 of file equatSkyMap.py.
def lsst.skymap.equatSkyMap.EquatSkyMap.__init__ | ( | self, | |
config = None |
|||
) |
Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 64 of file equatSkyMap.py.
|
inherited |
Definition at line 305 of file baseSkyMap.py.
|
inherited |
Reimplemented in lsst.skymap.cachingSkyMap.CachingSkyMap.
Definition at line 293 of file baseSkyMap.py.
def lsst.skymap.equatSkyMap.EquatSkyMap.__getstate__ | ( | self | ) |
Support pickle. Returns ------- stateDict : `dict` a dict containing: - version: a pair of ints - config: the config
Definition at line 100 of file equatSkyMap.py.
|
inherited |
Definition at line 302 of file baseSkyMap.py.
|
inherited |
Reimplemented in lsst.skymap.cachingSkyMap.CachingSkyMap.
Definition at line 296 of file baseSkyMap.py.
|
inherited |
Reimplemented in lsst.skymap.cachingSkyMap.CachingSkyMap.
Definition at line 299 of file baseSkyMap.py.
|
inherited |
Definition at line 311 of file baseSkyMap.py.
def lsst.skymap.equatSkyMap.EquatSkyMap.__setstate__ | ( | self, | |
stateDict | |||
) |
Support unpickle Parameters ---------- stateDict : `dict` a dict containing: - version: a pair of ints - config: the config
Definition at line 115 of file equatSkyMap.py.
|
inherited |
Find closest tract and patches that overlap coordinates. Parameters ---------- coordList : `lsst.geom.SpherePoint` List of ICRS sky coordinates to search for. Returns ------- retList : `list` list of (TractInfo, list of PatchInfo) for tracts and patches that contain, or may contain, the specified region. The list will be empty if there is no overlap.
Definition at line 270 of file baseSkyMap.py.
|
inherited |
Find the tract whose center is nearest the specified coord. Parameters ---------- coord : `lsst.geom.SpherePoint` ICRS sky coordinate to search for. Returns ------- result : `TractInfo` TractInfo of tract whose center is nearest the specified coord. Notes ----- - If coord is equidistant between multiple sky tract centers then one is arbitrarily chosen. - The default implementation is not very efficient; subclasses may wish to override. **Warning:** If tracts do not cover the whole sky then the returned tract may not include the coord.
Reimplemented in lsst.skymap.ringsSkyMap.RingsSkyMap, lsst.skymap.healpixSkyMap.HealpixSkyMap, and lsst.skymap.dodecaSkyMap.DodecaSkyMap.
Definition at line 170 of file baseSkyMap.py.
|
inherited |
Find array of tract IDs with vectorized operations (where supported). If a given sky map does not support vectorized operations, then a loop over findTract will be called. Parameters ---------- ra : `np.ndarray` Array of Right Ascension. Units are radians unless degrees=True. dec : `np.ndarray` Array of Declination. Units are radians unless degrees=True. degrees : `bool`, optional Input ra, dec arrays are degrees if True. Returns ------- tractId : `np.ndarray` Array of tract IDs Notes ----- - If coord is equidistant between multiple sky tract centers then one is arbitrarily chosen. **Warning:** If tracts do not cover the whole sky then the returned tract may not include the given ra/dec.
Reimplemented in lsst.skymap.ringsSkyMap.RingsSkyMap.
Definition at line 203 of file baseSkyMap.py.
|
inherited |
Find tracts and patches that overlap a region. Parameters ---------- coordList : `list` of `lsst.geom.SpherePoint` List of ICRS sky coordinates to search for. Returns ------- reList : `list` of (`TractInfo`, `list` of `PatchInfo`) For tracts and patches that contain, or may contain, the specified region. The list will be empty if there is no overlap. Notes ----- **warning:** This uses a naive algorithm that may find some tracts and patches that do not overlap the region (especially if the region is not a rectangle aligned along patch x, y).
Reimplemented in lsst.skymap.ringsSkyMap.RingsSkyMap.
Definition at line 242 of file baseSkyMap.py.
|
inherited |
Return a SHA1 hash that uniquely identifies this SkyMap instance. Returns ------- sha1 : `bytes` A 20-byte hash that uniquely identifies this SkyMap instance. Notes ----- Subclasses should almost always override ``updateSha1`` instead of this function to add subclass-specific state to the hash.
Definition at line 338 of file baseSkyMap.py.
def lsst.skymap.equatSkyMap.EquatSkyMap.getVersion | ( | self | ) |
Return version (e.g. for pickle). Returns ------- result : `tuple` of `int` Version as a pair of integers.
Definition at line 130 of file equatSkyMap.py.
|
inherited |
Write information about a sky map to supplied log Parameters ---------- log : `lsst.log.Log` Log object that information about skymap will be written
Definition at line 314 of file baseSkyMap.py.
|
inherited |
Add skymap, tract, and patch Dimension entries to the given Gen3 Butler. Parameters ---------- name : `str` The name of the skymap. butler : `lsst.daf.butler.Butler` The butler to add to. Raises ------ lsst.daf.butler.registry.ConflictingDefinitionError Raised if a different skymap exists with the same name. Notes ----- Registering the same skymap multiple times (with the exact same definition) is safe, but inefficient; most of the work of computing the rows to be inserted must be done first in order to check for consistency between the new skymap and any existing one. Re-registering a skymap with different tract and/or patch definitions but the same summary information may not be detected as a conflict but will never result in updating the skymap; there is intentionally no way to modify a registered skymap (aside from manual administrative operations on the database), as it is hard to guarantee that this can be done without affecting reproducibility.
Definition at line 381 of file baseSkyMap.py.
def lsst.skymap.equatSkyMap.EquatSkyMap.updateSha1 | ( | self, | |
sha1 | |||
) |
Add subclass-specific state or configuration options to the SHA1.
Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 140 of file equatSkyMap.py.
|
inherited |
Definition at line 160 of file baseSkyMap.py.
|
static |
Definition at line 61 of file equatSkyMap.py.
|
staticinherited |
Definition at line 379 of file baseSkyMap.py.
|
staticinherited |
Definition at line 377 of file baseSkyMap.py.