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.cachingSkyMap.CachingSkyMap.__reduce__ |
( |
|
self | ) |
|
|
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.
59 """To support pickling.
63 **Warning:** This method assumes that the constructor is be defined:
64 __init__(self, config, version=defaultVersion)
65 The use of 'config' is effectively set by the registry mechanism.
66 If additional optional arguments are added, this method should be
67 overridden to correspond.
69 return (self.__class__, (self.config, self._version))
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))