|
lsst.geom g19811a7679+d02280c829
|
Public Member Functions | |
| __iter__ (self) | |
| __repr__ (self) | |
Static Public Member Functions | |
| toUnitXYZ (*, longitude=None, latitude=None, ra=None, dec=None, units) | |
Definition at line 38 of file _SpherePoint.py.
| lsst.geom._SpherePoint.SpherePoint.__iter__ | ( | self | ) |
Definition at line 40 of file _SpherePoint.py.
| lsst.geom._SpherePoint.SpherePoint.__repr__ | ( | self | ) |
Definition at line 44 of file _SpherePoint.py.
|
static |
Compute the unit 3-vectors (as separate arrays) corresponding to
arrays of longitude and latitude.
Parameters
----------
longitude : `float` or `numpy.ndarray`
Longitude coordinate of input points.
latitude : `float` or `numpy.ndarray`
Latitude coordinate of input points.
ra : `float` or `numpy.ndarray`
Synonym for `longitude`.
dec : `float` or `numpy.ndarray`
Synonym for `latitude`.
units : `AngleUnit`
Angle unit for inputs.
Returns
-------
x : `float` or numpy.ndarray`
X coordinates of unit 3-vectors.
y : `float` or numpy.ndarray`
Y coordinates of unit 3-vectors.
z : `float` or numpy.ndarray`
Z coordinates of unit 3-vectors.
Notes
-----
The returned Cartesian coordinate values are not guaranteed to be
normalized according to the conventions of `sphgeom.UnitVector3d`, but
are nevertheless compatible with the various vectorized `contains`
methods in `sphgeom` because those apply that normalization
internally.
Definition at line 49 of file _SpherePoint.py.