vertices2centerpoints#

vertices2centerpoints(vertices)#

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

Parameters:
vertices: tuple

vertices data structure

Returns:
centerpoints: list

A (collection of) trixel center shapely point(s)

Examples

>>> import starepandas
>>> sids = numpy.array([2882303761517117440])
>>> vertices = starepandas.tools.to_vertices(sids)
>>> points = starepandas.vertices2centerpoints(vertices)
>>> print(points[0])
POINT (-108.4349490979417 24.09484285959212)