|
| | __init__ (self, nSide, ident, nest, tractBuilder, ctrCoord, tractOverlap, wcs) |
| |
| | getSequentialPatchIndex (self, patchInfo) |
| |
| | getSequentialPatchIndexFromPair (self, index) |
| |
| | getPatchIndexPair (self, sequentialIndex) |
| |
| | findPatch (self, coord) |
| |
| | findPatchList (self, coordList) |
| |
| | getBBox (self) |
| |
| | getCtrCoord (self) |
| |
| | getId (self) |
| |
| | getNumPatches (self) |
| |
| | getPatchBorder (self) |
| |
| | getPatchInfo (self, index) |
| |
| | getPatchInnerDimensions (self) |
| |
| | getTractOverlap (self) |
| |
| | getVertexList (self) |
| |
| | getInnerSkyPolygon (self) |
| |
| | getInnerSkyRegion (self) |
| |
| | getOuterSkyPolygon (self) |
| |
| | getWcs (self) |
| |
| | __str__ (self) |
| |
| | __repr__ (self) |
| |
| | __iter__ (self) |
| |
| | __len__ (self) |
| |
| | __getitem__ (self, index) |
| |
| | contains (self, coord) |
| |
Tract for the HealpixSkyMap
Definition at line 64 of file healpixSkyMap.py.
◆ __init__()
| lsst.skymap.healpixSkyMap.HealpixTractInfo.__init__ |
( |
| self, |
|
|
| nSide, |
|
|
| ident, |
|
|
| nest, |
|
|
| tractBuilder, |
|
|
| ctrCoord, |
|
|
| tractOverlap, |
|
|
| wcs ) |
◆ __getitem__()
| lsst.skymap.tractInfo.TractInfo.__getitem__ |
( |
| self, |
|
|
| index ) |
|
inherited |
◆ __iter__()
| lsst.skymap.tractInfo.TractInfo.__iter__ |
( |
| self | ) |
|
|
inherited |
◆ __len__()
| lsst.skymap.tractInfo.TractInfo.__len__ |
( |
| self | ) |
|
|
inherited |
◆ __repr__()
| lsst.skymap.tractInfo.TractInfo.__repr__ |
( |
| self | ) |
|
|
inherited |
◆ __str__()
| lsst.skymap.tractInfo.TractInfo.__str__ |
( |
| self | ) |
|
|
inherited |
◆ _finalOrientation()
| lsst.skymap.tractInfo.TractInfo._finalOrientation |
( |
| self, |
|
|
| bbox, |
|
|
| wcs ) |
|
protectedinherited |
Determine the final orientation
We offset everything so the lower-left corner is at 0,0
and compute the final Wcs.
Parameters
----------
bbox : `lsst.geom.Box2I`
Current bounding box.
wcs : `lsst.afw.geom.SkyWcs
Current Wcs.
Returns
-------
finalBBox : `lsst.geom.Box2I`
Revised bounding box.
wcs : `lsst.afw.geom.SkyWcs`
Revised Wcs.
Definition at line 123 of file tractInfo.py.
◆ _minimumBoundingBox()
| lsst.skymap.tractInfo.TractInfo._minimumBoundingBox |
( |
| self, |
|
|
| wcs ) |
|
protectedinherited |
Calculate the minimum bounding box for the tract, given the WCS.
The bounding box is created in the frame of the supplied WCS,
so that it's OK if the coordinates are negative.
We compute the bounding box that holds all the vertices and the
desired overlap.
Reimplemented in lsst.skymap.tractInfo.ExplicitTractInfo.
Definition at line 99 of file tractInfo.py.
◆ contains()
| lsst.skymap.tractInfo.TractInfo.contains |
( |
| self, |
|
|
| coord ) |
|
inherited |
Does this tract contain the coordinate?
Definition at line 418 of file tractInfo.py.
◆ findPatch()
| lsst.skymap.tractInfo.TractInfo.findPatch |
( |
| self, |
|
|
| coord ) |
|
inherited |
Find the patch containing the specified coord.
Parameters
----------
coord : `lsst.geom.SpherePoint`
ICRS sky coordinate to search for.
Returns
-------
result : `lsst.skymap.PatchInfo`
PatchInfo of patch whose inner bbox contains the specified coord
Raises
------
LookupError
Raised if coord is not in tract or we cannot determine the
pixel coordinate (which likely means the coord is off the tract).
Definition at line 192 of file tractInfo.py.
◆ findPatchList()
| lsst.skymap.tractInfo.TractInfo.findPatchList |
( |
| self, |
|
|
| coordList ) |
|
inherited |
Find patches containing the specified list of coords.
Parameters
----------
coordList : `list` of `lsst.geom.SpherePoint`
ICRS sky coordinates to search for.
Returns
-------
result : `list` of `lsst.skymap.PatchInfo`
List of PatchInfo for patches that contain, or may contain, the
specified region. The list will be empty if there is no overlap.
Notes
-----
**Warning:**
- This may give incorrect answers on regions that are larger than a
tract.
- This uses a naive algorithm that may find some patches that do not
overlap the region (especially if the region is not a rectangle
aligned along patch x,y).
Definition at line 224 of file tractInfo.py.
◆ getBBox()
| lsst.skymap.tractInfo.TractInfo.getBBox |
( |
| self | ) |
|
|
inherited |
Get bounding box of tract (as an geom.Box2I)
Definition at line 270 of file tractInfo.py.
◆ getCtrCoord()
| lsst.skymap.tractInfo.TractInfo.getCtrCoord |
( |
| self | ) |
|
|
inherited |
Get ICRS sky coordinate of center of tract
(as an lsst.geom.SpherePoint)
Definition at line 277 of file tractInfo.py.
◆ getId()
| lsst.skymap.tractInfo.TractInfo.getId |
( |
| self | ) |
|
|
inherited |
◆ getInnerSkyPolygon()
| lsst.skymap.tractInfo.TractInfo.getInnerSkyPolygon |
( |
| self | ) |
|
|
inherited |
Get inner on-sky region as a sphgeom.ConvexPolygon.
Definition at line 361 of file tractInfo.py.
◆ getInnerSkyRegion()
| lsst.skymap.tractInfo.TractInfo.getInnerSkyRegion |
( |
| self | ) |
|
|
inherited |
◆ getNumPatches()
| lsst.skymap.tractInfo.TractInfo.getNumPatches |
( |
| self | ) |
|
|
inherited |
Get the number of patches in x, y.
Returns
-------
result : `lsst.skymap.Index2D`
The number of patches in x, y
Definition at line 292 of file tractInfo.py.
◆ getOuterSkyPolygon()
| lsst.skymap.tractInfo.TractInfo.getOuterSkyPolygon |
( |
| self | ) |
|
|
inherited |
Get outer on-sky region as a sphgeom.ConvexPolygon
Definition at line 380 of file tractInfo.py.
◆ getPatchBorder()
| lsst.skymap.tractInfo.TractInfo.getPatchBorder |
( |
| self | ) |
|
|
inherited |
◆ getPatchIndexPair()
| lsst.skymap.tractInfo.TractInfo.getPatchIndexPair |
( |
| self, |
|
|
| sequentialIndex ) |
|
inherited |
Convert sequential index into patch index (x,y) pair.
Parameters
----------
sequentialIndex : `int`
Returns
-------
x, y : `lsst.skymap.Index2D`
Definition at line 179 of file tractInfo.py.
◆ getPatchInfo()
| lsst.skymap.tractInfo.TractInfo.getPatchInfo |
( |
| self, |
|
|
| index ) |
|
inherited |
Return information for the specified patch.
Parameters
----------
index : `typing.NamedTuple` ['x': `int`, 'y': `int`]
Index of patch, as a pair of ints;
or a sequential index as returned by getSequentialPatchIndex;
negative values are not supported.
Returns
-------
result : `lsst.skymap.PatchInfo`
The patch info for that index.
Raises
------
IndexError
Raised if index is out of range.
Definition at line 309 of file tractInfo.py.
◆ getPatchInnerDimensions()
| lsst.skymap.tractInfo.TractInfo.getPatchInnerDimensions |
( |
| self | ) |
|
|
inherited |
Get dimensions of inner region of the patches (all are the same)
Definition at line 331 of file tractInfo.py.
◆ getSequentialPatchIndex()
| lsst.skymap.tractInfo.TractInfo.getSequentialPatchIndex |
( |
| self, |
|
|
| patchInfo ) |
|
inherited |
Return a single integer that uniquely identifies
the given patch within this tract.
Parameters
----------
patchInfo : `lsst.skymap.PatchInfo`
Returns
-------
sequentialIndex : `int`
Definition at line 151 of file tractInfo.py.
◆ getSequentialPatchIndexFromPair()
| lsst.skymap.tractInfo.TractInfo.getSequentialPatchIndexFromPair |
( |
| self, |
|
|
| index ) |
|
inherited |
Return a single integer that uniquely identifies
the patch index within the tract.
Parameters
----------
index : `lsst.skymap.Index2D`
Returns
-------
sequentialIndex : `int`
Definition at line 165 of file tractInfo.py.
◆ getTractOverlap()
| lsst.skymap.tractInfo.TractInfo.getTractOverlap |
( |
| self | ) |
|
|
inherited |
Get minimum overlap of adjacent sky tracts.
Definition at line 338 of file tractInfo.py.
◆ getVertexList()
| lsst.skymap.tractInfo.TractInfo.getVertexList |
( |
| self | ) |
|
|
inherited |
Get list of ICRS sky coordinates of vertices that define the
boundary of the inner region.
Notes
-----
**warning:** this is not a deep copy.
Definition at line 345 of file tractInfo.py.
◆ getWcs()
| lsst.skymap.tractInfo.TractInfo.getWcs |
( |
| self | ) |
|
|
inherited |
Get WCS of tract.
Returns
-------
wcs : `lsst.afw.geom.SkyWcs`
The WCS of this tract
Definition at line 387 of file tractInfo.py.
◆ _bbox
| lsst.skymap.tractInfo.TractInfo._bbox |
|
protectedinherited |
◆ _ctrCoord
| lsst.skymap.tractInfo.TractInfo._ctrCoord = ctrCoord |
|
protectedinherited |
◆ _id
| lsst.skymap.tractInfo.TractInfo._id = id |
|
protectedinherited |
◆ _innerBoxCorners
| lsst.skymap.tractInfo.TractInfo._innerBoxCorners = innerBoxCorners |
|
protectedinherited |
◆ _numPatches
| lsst.skymap.tractInfo.TractInfo._numPatches = self._tractBuilder.setupPatches(minBBox, wcs) |
|
protectedinherited |
◆ _tractBuilder
| lsst.skymap.tractInfo.TractInfo._tractBuilder = tractBuilder |
|
protectedinherited |
◆ _tractOverlap
| int lsst.skymap.tractInfo.TractInfo._tractOverlap = tractOverlap |
|
protectedinherited |
◆ _vertexCoordList
| lsst.skymap.tractInfo.TractInfo._vertexCoordList = tuple(vertexCoordList) |
|
protectedinherited |
◆ _wcs
| lsst.skymap.tractInfo.TractInfo._wcs = self._finalOrientation(initialBBox, wcs) |
|
protectedinherited |
◆ bbox
| lsst.skymap.tractInfo.TractInfo.bbox = property(getBBox) |
|
staticinherited |
◆ ctr_coord
| lsst.skymap.tractInfo.TractInfo.ctr_coord = property(getCtrCoord) |
|
staticinherited |
◆ inner_sky_polygon
◆ inner_sky_region
◆ num_patches
| lsst.skymap.tractInfo.TractInfo.num_patches = property(getNumPatches) |
|
staticinherited |
◆ outer_sky_polygon
◆ patch_border
| lsst.skymap.tractInfo.TractInfo.patch_border = property(getPatchBorder) |
|
staticinherited |
◆ patch_inner_dimensions
◆ tract_id
| lsst.skymap.tractInfo.TractInfo.tract_id = property(getId) |
|
staticinherited |
◆ tract_overlap
◆ vertex_list
| lsst.skymap.tractInfo.TractInfo.vertex_list = property(getVertexList) |
|
staticinherited |
◆ wcs
| lsst.skymap.tractInfo.TractInfo.wcs = property(getWcs) |
|
staticinherited |
The documentation for this class was generated from the following file: