LSST Applications g0b6bd0c080+a72a5dd7e6,g1182afd7b4+2a019aa3bb,g17e5ecfddb+2b8207f7de,g1d67935e3f+06cf436103,g38293774b4+ac198e9f13,g396055baef+6a2097e274,g3b44f30a73+6611e0205b,g480783c3b1+98f8679e14,g48ccf36440+89c08d0516,g4b93dc025c+98f8679e14,g5c4744a4d9+a302e8c7f0,g613e996a0d+e1c447f2e0,g6c8d09e9e7+25247a063c,g7271f0639c+98f8679e14,g7a9cd813b8+124095ede6,g9d27549199+a302e8c7f0,ga1cf026fa3+ac198e9f13,ga32aa97882+7403ac30ac,ga786bb30fb+7a139211af,gaa63f70f4e+9994eb9896,gabf319e997+ade567573c,gba47b54d5d+94dc90c3ea,gbec6a3398f+06cf436103,gc6308e37c7+07dd123edb,gc655b1545f+ade567573c,gcc9029db3c+ab229f5caf,gd01420fc67+06cf436103,gd877ba84e5+06cf436103,gdb4cecd868+6f279b5b48,ge2d134c3d5+cc4dbb2e3f,ge448b5faa6+86d1ceac1d,gecc7e12556+98f8679e14,gf3ee170dca+25247a063c,gf4ac96e456+ade567573c,gf9f5ea5b4d+ac198e9f13,gff490e6085+8c2580be5c,w.2022.27
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, config, version=1) |
def | getRingIndices (self, index) |
def | generateTract (self, index) |
def | findTract (self, coord) |
def | findTractIdArray (self, ra, dec, degrees=False) |
def | findAllTracts (self, coord) |
def | findTractPatchList (self, coordList) |
def | updateSha1 (self, sha1) |
Static Public Attributes | |
ConfigClass = RingsSkyMapConfig | |
Rings sky map pixelization. We divide the sphere into N rings of Declination, plus the two polar caps, which sets the size of the individual tracts. The rings are divided in RA into an integral number of tracts of this size; this division is made at the Declination closest to zero so as to ensure full overlap. Rings are numbered in the rings from south to north. The south pole cap is ``tract=0``, then the tract at ``raStart`` in the southernmost ring is ``tract=1``. Numbering continues (in the positive RA direction) around that ring and then continues in the same fashion with the next ring north, and so on until all reaching the north pole cap, which is ``tract=len(skymap) - 1``. However, ``version=0`` had a bug in the numbering of the tracts: the first and last tracts in the first (southernmost) ring were identical, and the first tract in the last (northernmost) ring was missing. When using ``version=0``, these tracts remain missing in order to preserve the numbering scheme. Parameters ---------- config : `lsst.skymap.RingsSkyMapConfig` The configuration for this SkyMap. version : `int`, optional Software version of this class, to retain compatibility with old verisons. ``version=0`` covers the period from first implementation until DM-14809, at which point bugs were identified in the numbering of tracts (affecting only tracts at RA=0). ``version=1`` uses the post-DM-14809 tract numbering.
Definition at line 42 of file ringsSkyMap.py.
def lsst.skymap.ringsSkyMap.RingsSkyMap.__init__ | ( | self, | |
config, | |||
version = 1 |
|||
) |
Reimplemented from lsst.skymap.cachingSkyMap.CachingSkyMap.
Definition at line 78 of file ringsSkyMap.py.
def lsst.skymap.ringsSkyMap.RingsSkyMap.findAllTracts | ( | self, | |
coord | |||
) |
Find all tracts which include the specified coord. Parameters ---------- coord : `lsst.geom.SpherePoint` ICRS sky coordinate to search for. Returns ------- tractList : `list` of `TractInfo` The tracts which include the specified coord.
Definition at line 252 of file ringsSkyMap.py.
def lsst.skymap.ringsSkyMap.RingsSkyMap.findTract | ( | self, | |
coord | |||
) |
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 from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 187 of file ringsSkyMap.py.
def lsst.skymap.ringsSkyMap.RingsSkyMap.findTractIdArray | ( | self, | |
ra, | |||
dec, | |||
degrees = False |
|||
) |
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 from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 205 of file ringsSkyMap.py.
def lsst.skymap.ringsSkyMap.RingsSkyMap.findTractPatchList | ( | self, | |
coordList | |||
) |
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 from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 303 of file ringsSkyMap.py.
def lsst.skymap.ringsSkyMap.RingsSkyMap.generateTract | ( | self, | |
index | |||
) |
Generate TractInfo for the specified tract index.
Reimplemented from lsst.skymap.cachingSkyMap.CachingSkyMap.
Definition at line 124 of file ringsSkyMap.py.
def lsst.skymap.ringsSkyMap.RingsSkyMap.getRingIndices | ( | self, | |
index | |||
) |
Calculate ring indices given a numerical index of a tract. The ring indices are the ring number and the tract number within the ring. The ring number is -1 for the south polar cap and increases to the north. The north polar cap has ring number = numRings. The tract number is zero for either of the polar caps.
Definition at line 93 of file ringsSkyMap.py.
def lsst.skymap.ringsSkyMap.RingsSkyMap.updateSha1 | ( | self, | |
sha1 | |||
) |
Add subclass-specific state or configuration options to the SHA1.
Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.
Definition at line 312 of file ringsSkyMap.py.
|
static |
Definition at line 75 of file ringsSkyMap.py.