to_trixels#

to_trixels(sids, as_multipolygon=False, wrap_lon=True)#

Converts a (collection of) sid(s) into a (collection of) trixel(s)

Parameters:
sids: int64 or array-like

(Collection of) STARE index value(s)

as_multipolygon: bool

If more than one sid is passed, toggle if the resulting trixels should be combined into a multipolygon. Otherwise, a list of trixels is returned.

wrap_lon: bool

toggle if trixels should be wraped around antimeridian.

Returns:
trixels: Polygon or Multipolygon

(collection of) trixel(s)

Examples

>>> import starepandas
>>> sids = [4611686018427387903, 4611686018427387903]
>>> trixels = starepandas.to_trixels(sids, as_multipolygon=True)