|
def | toUnitXYZ (*longitude=None, latitude=None, ra=None, dec=None, units) |
|
Definition at line 38 of file _SpherePoint.py.
◆ __iter__()
def lsst.geom._SpherePoint.SpherePoint.__iter__ |
( |
|
self | ) |
|
◆ __repr__()
def lsst.geom._SpherePoint.SpherePoint.__repr__ |
( |
|
self | ) |
|
◆ toUnitXYZ()
def lsst.geom._SpherePoint.SpherePoint.toUnitXYZ |
( |
* |
longitude = None , |
|
|
|
latitude = None , |
|
|
|
ra = None , |
|
|
|
dec = None , |
|
|
|
units |
|
) |
| |
|
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.
The documentation for this class was generated from the following file: