starepandas.STAREDataFrame.trixel_centers#
- STAREDataFrame.trixel_centers(vertices=None)#
Returns the trixel centers.
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 lon/lat.
Examples
>>> sids = numpy.array([3458764513820540928]) >>> df = starepandas.STAREDataFrame(sids=sids) >>> df.trixel_centers() array([[134.9 , 80.264389]])