starepandas.STAREDataFrame.trixel_grings#
- STAREDataFrame.trixel_grings(vertices=None)#
Returns corners of trixels as ECEF.
If vertices is set, the trixel corners are extracted from vertices (c.f.
trixel_vertices()). If not, corners are generated from stare column- Parameters:
- verticestuple (vertices data structure)
If set, the centers are extracted from the vertices.
- Returns:
- cornersnumpy array
ECEF norm vectors of great circles constraining the trixels. First dimension are the sids, second dimension the great circles, third dimension x/y/z
Examples
>>> sids = numpy.array([3458764513820540928]) >>> df = starepandas.STAREDataFrame(sids=sids) >>> df.trixel_grings() array([[[ 0.14644661, 0.85355339, 0.49999999], [-0.85355339, -0.14644661, 0.49999999], [ 0.49999999, -0.49999999, 0.70710679]]])