starepandas.STAREDataFrame.trixel_centers_ecef#

STAREDataFrame.trixel_centers_ecef(vertices=None)#

Returns the trixel centers as ECEF vectors.

If vertices is set, the trixel centers are extracted from the vertices (c.f. trixel_vertices()). If not, they are generated from the stare column.

Parameters:
vertices: vertices data structure

If set, the centers are extracted from the vertices data structure.

Returns:
trixel_centersnumpy.array

Trixel centers. First dimension are the sids, second dimension are x/y/z.

Examples

>>> sids = numpy.array([3458764513820540928])
>>> df = starepandas.STAREDataFrame(sids=sids)
>>> df.trixel_centers_ecef()
array([[-0.11957316,  0.11957316,  0.98559856]])