|
| | __init__ (self, config, version=0) |
| | findTract (self, coord) |
| | generateTract (self, index) |
| | updateSha1 (self, sha1) |
| | __reduce__ (self) |
| | __iter__ (self) |
| | __len__ (self) |
| | __getitem__ (self, index) |
| | findTractIdArray (self, ra, dec, degrees=False) |
| | findTractPatchList (self, coordList) |
| | findClosestTractPatchList (self, coordList) |
| | findTractIdPatchIdArray (self, ra, dec, degrees=False) |
| | __hash__ (self) |
| | __eq__ (self, other) |
| | __ne__ (self, other) |
| | logSkyMapInfo (self, log) |
| | getSha1 (self) |
| | register (self, name, butler) |
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 90 of file healpixSkyMap.py.
| lsst.skymap.baseSkyMap.BaseSkyMap.findTractIdArray |
( |
| self, |
|
|
| ra, |
|
|
| dec, |
|
|
| degrees = False ) |
|
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 : `numpy.ndarray`
Array of Right Ascension. Units are radians unless
degrees=True.
dec : `numpy.ndarray`
Array of Declination. Units are radians unless
degrees=True.
degrees : `bool`, optional
Input ra, dec arrays are degrees if `True`.
Returns
-------
tractId : `numpy.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 206 of file baseSkyMap.py.
| lsst.skymap.baseSkyMap.BaseSkyMap.findTractIdPatchIdArray |
( |
| self, |
|
|
| ra, |
|
|
| dec, |
|
|
| degrees = False ) |
|
inherited |
Find array of tract IDs and patch IDs with vectorized operations
(where supported).
If a given sky map does not support vectorized operations, then
loops will be called.
Parameters
----------
ra : `numpy.ndarray`
Array of Right Ascension. Units are radians unless
degrees=True.
dec : `numpy.ndarray`
Array of Declination. Units are radians unless
degrees=True.
degrees : `bool`, optional
Input ra, dec arrays are degrees if `True`.
Returns
-------
tractId : `numpy.ndarray`
Array of tract IDs.
patchId : `numpy.ndarray`
Array of sequential patch IDs. -1 if there is no appropriate
patch.
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.
Definition at line 299 of file baseSkyMap.py.
| 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 247 of file baseSkyMap.py.
| lsst.skymap.baseSkyMap.BaseSkyMap.register |
( |
| self, |
|
|
| name, |
|
|
| butler ) |
|
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 452 of file baseSkyMap.py.