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, version=0) |
def | findTract (self, coord) |
def | generateTract (self, index) |
def | updateSha1 (self, sha1) |
def | __reduce__ (self) |
def | __iter__ (self) |
def | __len__ (self) |
def | __getitem__ (self, index) |
def | findTractIdArray (self, ra, dec, degrees=False) |
def | findTractPatchList (self, coordList) |
def | findClosestTractPatchList (self, coordList) |
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 = HealpixSkyMapConfig | |
int | numAngles = 4 |
string | SKYMAP_RUN_COLLECTION_NAME = "skymaps" |
string | SKYMAP_DATASET_TYPE_NAME = "skyMap" |
HEALPix-based sky map pixelization. We put a Tract at the position of each HEALPixel. Parameters ---------- config : `lsst.skymap.BaseSkyMapConfig` The configuration for this SkyMap. version : `int` or `tuple` of `int` (optional) Software version of this class, to retain compatibility with old instances.
Definition at line 86 of file healpixSkyMap.py.
def lsst.skymap.healpixSkyMap.HealpixSkyMap.__init__ | ( | self, | |
config, | |||
version = 0 |
|||
) |
Definition at line 104 of file healpixSkyMap.py.
|
inherited |
Definition at line 305 of file baseSkyMap.py.
|
inherited |
Get the TractInfo for a particular index. The tract is returned from a cache, if available, otherwise generated on the fly.
Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 80 of file cachingSkyMap.py.
|
inherited |
Definition at line 302 of file baseSkyMap.py.
|
inherited |
Iterator over tracts.
Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 71 of file cachingSkyMap.py.
|
inherited |
Length is number of tracts.
Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 76 of file cachingSkyMap.py.
|
inherited |
Definition at line 311 of file baseSkyMap.py.
|
inherited |
To support pickling. Notes ----- **Warning:** This method assumes that the constructor is be defined: __init__(self, config, version=defaultVersion) The use of 'config' is effectively set by the registry mechanism. If additional optional arguments are added, this method should be overridden to correspond.
Definition at line 58 of file cachingSkyMap.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.
def lsst.skymap.healpixSkyMap.HealpixSkyMap.findTract | ( | self, | |
coord | |||
) |
Find the tract whose inner region includes the coord. Parameters ---------- coord : `lsst.geom.SpherePoint` ICRS sky coordinate to search for. Returns ------- tractInfo : `TractInfo` Info for tract whose inner region includes the coord.
Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 109 of file healpixSkyMap.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.
def lsst.skymap.healpixSkyMap.HealpixSkyMap.generateTract | ( | self, | |
index | |||
) |
Generate TractInfo for the specified tract index.
Reimplemented from lsst.skymap.cachingSkyMap.CachingSkyMap.
Definition at line 126 of file healpixSkyMap.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.
|
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.healpixSkyMap.HealpixSkyMap.updateSha1 | ( | self, | |
sha1 | |||
) |
Add subclass-specific state or configuration options to the SHA1.
Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 134 of file healpixSkyMap.py.
|
inherited |
Definition at line 160 of file baseSkyMap.py.
|
static |
Definition at line 100 of file healpixSkyMap.py.
|
static |
Definition at line 102 of file healpixSkyMap.py.
|
staticinherited |
Definition at line 379 of file baseSkyMap.py.
|
staticinherited |
Definition at line 377 of file baseSkyMap.py.