lsst.geom  22.0.1-5-g096abc9+d18c45d440
Public Member Functions | Static Public Member Functions | List of all members
lsst.geom._SpherePoint.SpherePoint Class Reference

Public Member Functions

def __iter__ (self)
 
def __repr__ (self)
 

Static Public Member Functions

def toUnitXYZ (*longitude=None, latitude=None, ra=None, dec=None, units)
 

Detailed Description

Definition at line 38 of file _SpherePoint.py.

Member Function Documentation

◆ __iter__()

def lsst.geom._SpherePoint.SpherePoint.__iter__ (   self)

Definition at line 40 of file _SpherePoint.py.

◆ __repr__()

def lsst.geom._SpherePoint.SpherePoint.__repr__ (   self)

Definition at line 44 of file _SpherePoint.py.

◆ 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: