to_centers#
- to_centers(sids)#
Converts a (collection of) sid(s) into a (collection of) trixel center longitude, latitude pairs.
- 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] >>> starepandas.to_centers(sids) array([[19.50219018, 23.29074702], [18.65957821, 25.34384175]])