to_centerpoints#
- to_centerpoints(sids)#
Converts a (collection of) sid(s) into a (collection of) trixel center shapely points.
- Parameters
- sids: int or collection of ints
sids to covert to vertices
- Returns
- Centers: (list of) tuple(s)
List of centers. A center is a pair of longitude/latitude.
Examples
>>> import starepandas >>> sids = [4611263805962321926, 4611404543450677254] >>> centerpoints = starepandas.to_centerpoints(sids) >>> print(Point(19.50219017924583,23.29074702177385).distance(centerpoints[0]) < 1.0e-12) True