Dodecahedron-based sky map pixelization.
DodecaSkyMap divides the sky into 12 overlapping Tracts arranged as the
faces of a dodecahedron.
Parameters
----------
config : `lsst.skymap.BaseSkyMapConfig` (optional)
The configuration for this SkyMap; if None use the default config.
Definition at line 54 of file dodecaSkyMap.py.
def lsst.skymap.baseSkyMap.BaseSkyMap.findClosestTractPatchList |
( |
|
self, |
|
|
|
coordList |
|
) |
| |
|
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 177 of file baseSkyMap.py.
177 def findClosestTractPatchList(self, coordList):
178 """Find closest tract and patches that overlap coordinates.
182 coordList : `lsst.geom.SpherePoint`
183 List of ICRS sky coordinates to search for.
188 list of (TractInfo, list of PatchInfo) for tracts and patches
189 that contain, or may contain, the specified region.
190 The list will be empty if there is no overlap.
193 for coord
in coordList:
194 tractInfo = self.findTract(coord)
195 patchList = tractInfo.findPatchList(coordList)
196 if patchList
and not (tractInfo, patchList)
in retList:
197 retList.append((tractInfo, patchList))
def lsst.skymap.baseSkyMap.BaseSkyMap.findTractPatchList |
( |
|
self, |
|
|
|
coordList |
|
) |
| |
|
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 149 of file baseSkyMap.py.
149 def findTractPatchList(self, coordList):
150 """Find tracts and patches that overlap a region.
154 coordList : `list` of `lsst.geom.SpherePoint`
155 List of ICRS sky coordinates to search for.
159 reList : `list` of (`TractInfo`, `list` of `PatchInfo`)
160 For tracts and patches that contain, or may contain, the specified
161 region. The list will be empty if there is no overlap.
166 This uses a naive algorithm that may find some tracts and patches
167 that do not overlap the region (especially if the region is not a
168 rectangle aligned along patch x, y).
171 for tractInfo
in self:
172 patchList = tractInfo.findPatchList(coordList)
174 retList.append((tractInfo, patchList))