starepandas.STAREDataFrame.make_trixels#

STAREDataFrame.make_trixels(sid_column=None, n_partitions=1, wrap_lon=True, num_workers=None)#

Returns a Polygon or Multipolygon GeoSeries containing the trixels referred by the STARE indices

Parameters
sid_column: str

Column to use as STARE column. Default: ‘stare’

n_partitions: int

number of (dask) workers to use to generate trixels

wrap_lon: bool

toggle if trixels should be wraped around antimeridian.

num_workers: int

number of workers to use

Returns
trixels_series: numpy.array

array of polygons or multipolygons representing the trixels

Examples

>>> import starepandas
>>> sids = [648518346341351428, 900719925474099204, 1170935903116328964]
>>> sdf = starepandas.STAREDataFrame(sids=sids)
>>> trixels = sdf.make_trixels()