starepandas.STAREDataFrame.trixel_centerpoints#
- STAREDataFrame.trixel_centerpoints(vertices=None)#
Returns the trixel centers as shapely points.
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: tuple (vertices data structure)
If set, the centers are extracted from the vertices.
- Returns:
- trixel_centerpoints: Geometery Array
Series of shapely trixel center points
Examples
>>> sids = numpy.array([4458764513820540928]) >>> df = starepandas.STAREDataFrame(sids=sids) >>> centers = df.trixel_centerpoints() >>> print(centers[0]) POINT (18.4 24.09)