LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self) |
def | xy2hash (self, x, y) |
def | ij2hash (self, i, j) |
def | i02hash (self, i) |
def | hash2ij (self, h) |
def | hash2i0 (self, _hash) |
def | ij2i (self, ij) |
def | ij2j (self, ij) |
Static Public Attributes | |
LUPT_TO_HASH | |
LUPT_TO_IJ_INT | |
Z-Order 2D curve for 32-bit integer values. Code is ported from AladinSrc.jar version 11.024, ZOrderCurve2DImpls.java. AladinSrc.jar is licensed with GPLv3, see http://aladin.u-strasbg.fr/COPYING From the original documentation: "Z-Order Curve (ZOC) implementation in which the vertical coordinate carry the most significant bit (VMSB). This implementation is based on a lookup table (LOOKUP). We assume that each discritized coordinates is coded on maximum 32 bits (INT)."
Definition at line 217 of file _hpxUtils.py.
def lsst.afw.geom._hpxUtils._ZOrderCurve2DInt.__init__ | ( | self | ) |
Definition at line 303 of file _hpxUtils.py.
def lsst.afw.geom._hpxUtils._ZOrderCurve2DInt.hash2i0 | ( | self, | |
_hash | |||
) |
Special case of hash2ij in which the discretized coordinate along the vertical axis is zero. Parameters ---------- _hash : `int` Space-filling hash value. Returns ------- ij : `np.int64` Single value from which 2d coordinates can be extracted.
Definition at line 412 of file _hpxUtils.py.
def lsst.afw.geom._hpxUtils._ZOrderCurve2DInt.hash2ij | ( | self, | |
h | |||
) |
Transforms the given space-filling hash value into a single value from which the 2d coordinates can be extracted using ij2i and ij2j. Parameters ---------- h : `int` Space-filling hash value Returns ------- ij : `np.int64` Single value from which 2d coordinates can be extracted.
Definition at line 371 of file _hpxUtils.py.
def lsst.afw.geom._hpxUtils._ZOrderCurve2DInt.i02hash | ( | self, | |
i | |||
) |
Special case of ij2hash in which the discretized coordinate along the vertical axis equals zero. Parameters ---------- i : `int` i discretized coordinate along the horizontal axis. Must fit within the 32-bit integer range. Returns ------- hash : `numpy.int64` The space-filling hash value associated with the given coordinate.
Definition at line 348 of file _hpxUtils.py.
def lsst.afw.geom._hpxUtils._ZOrderCurve2DInt.ij2hash | ( | self, | |
i, | |||
j | |||
) |
Compute the hash value from discretized i, j. Parameters ---------- i : `int` i discretized coordinate along the horizontal axis. Must fit within the 32-bit integer range. j : `int` j discretized coordinate along the vertical axis. Must fit within the 32-bit integer range. Returns ------- hash : `numpy.int64` The space-filling hash value associated with the given coordinates.
Definition at line 327 of file _hpxUtils.py.
def lsst.afw.geom._hpxUtils._ZOrderCurve2DInt.ij2i | ( | self, | |
ij | |||
) |
Extract the discretized horizontal coordinate from hash2ij. Parameters ---------- ij : `int` The ij result of hash2ij. Returns ------- i : `np.int32` Discretized horizontal coordinate stored in ij.
Definition at line 430 of file _hpxUtils.py.
def lsst.afw.geom._hpxUtils._ZOrderCurve2DInt.ij2j | ( | self, | |
ij | |||
) |
Extract the discretized vertical coordinate from hash2ij. Parameters ---------- ij : `int` The ij result of hash2ij. Returns ------- j : `np.int32` Discretized vertical coordinate stored in ij.
Definition at line 446 of file _hpxUtils.py.
def lsst.afw.geom._hpxUtils._ZOrderCurve2DInt.xy2hash | ( | self, | |
x, | |||
y | |||
) |
Compute the hash value from x/y. Parameters ---------- x : `float` x coordinate along the horizontal axis. Must fit within the 32-bit integer range. y : `float` y coordinate along the vertical axis. Must fit within the 32-bit integer range. Returns ------- hash : `numpy.int64` The space-filling hash value associated with the given coordinates.
Definition at line 306 of file _hpxUtils.py.
|
static |
Definition at line 232 of file _hpxUtils.py.
|
static |
Definition at line 258 of file _hpxUtils.py.