vertices2centers_ecef#

vertices2centers_ecef(vertices)#

Converts trixel vertices datastructure (c.f. to_vertices()) into trixel centers in ECEF representation.

Parameters:
vertices: tuple

vertices data structure

Returns:
centers: numpy.array

First dimension are sids, second dimension x/y/z

Examples

>>> import starepandas
>>> sids = numpy.array([1729382256910270464])
>>> vertices = starepandas.tools.trixel_conversions.to_vertices(sids)
>>> starepandas.vertices2centers_ecef(vertices)
array([[ 0.11957316, -0.11957316, -0.98559856]])