trixels_from_stareseries#

trixels_from_stareseries(sids_series, n_partitions=1, num_workers=None, wrap_lon=True)#

Takes a series of STARE index values and creates an array of sets of trixels. If a row contains a set of sids (rather than a single sid); i.e. representing e.g. a region, a set of trixels will be generated and combined in a multipolygon

Parameters
sids_series: array-like

Series or array-like with STARE index values

n_partitions: int

number of workers to use to lookup geometries in parallel

wrap_lon: bool

toggle if trixels should be wraped around antimeridian.

Returns
trixel_series: geopandas.GeoSeries

Series of trixels / triangle geometries

Examples

>>> import starepandas
>>> sids = [4611686018427387903, 4611686018427387903]
>>> sdf = starepandas.STAREDataFrame(sids=sids)
>>> trixels = starepandas.trixels_from_stareseries(sdf.sids)