starepandas.STAREDataFrame#

A STAREDataFrame object is a pandas.DataFrame that has a special column with STARE indices and optionally a special column holding the trixel representation.

Constructor#

STAREDataFrame(*args[, sids, add_sids, ...])

Bootstrapping#

STAREDataFrame.make_sids(level[, convex, ...])

Generates and returns the STARE representation of each feauture.

STAREDataFrame.set_sids(col[, inplace])

Set the StareDataFrame spatial indices using either an existing column or the specified input.

STAREDataFrame.make_trixels([sid_column, ...])

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

STAREDataFrame.set_trixels(col[, inplace])

Set the trixel column

Geoprocessing#

STAREDataFrame.stare_intersects(other[, ...])

Returns a Series of dtype('bool') with value True for each geometry that intersects other.

STAREDataFrame.stare_disjoint(other[, ...])

Returns a Series of dtype('bool') with value True for each geometry that is disjoint from other.

STAREDataFrame.stare_intersection(other)

Returns a STARESeries of the (STARE) spatial intersection of self with other.

STAREDataFrame.stare_dissolve([by, ...])

Dissolves a dataframe subject to a field.

STARE manipulation#

STAREDataFrame.to_stare_level(level[, ...])

Changes level of STARE index values to level; optionally clears location bits up to level.

STAREDataFrame.clear_to_level([inplace])

Clears location bits to level

STAREDataFrame.hex()

Returns the hex16 representation of the stare column

Trixel Functions#

STAREDataFrame.trixel_vertices()

Returns the vertices and centerpoints of the trixels.

STAREDataFrame.trixel_centers([vertices])

Returns the trixel centers.

STAREDataFrame.trixel_centers_ecef([vertices])

Returns the trixel centers as ECEF vectors.

STAREDataFrame.trixel_centerpoints([vertices])

Returns the trixel centers as shapely points.

STAREDataFrame.trixel_corners([vertices, ...])

Returns corners of trixels as lon/lat.

STAREDataFrame.trixel_corners_ecef([vertices])

Returns ECEF norm vectors of great circles constraining the trixels.

STAREDataFrame.trixel_grings([vertices])

Returns corners of trixels as ECEF.

STAREDataFrame.split_antimeridian([inplace, ...])

Splits trixels at the antimeridian

IO#

STAREDataFrame.write_pods(pod_root, level, ...)

Writes dataframe into a STAREPods hierarchy.

STAREDataFrame.to_scidb(connection)

STAREDataFrame.to_array(column[, shape, pivot])

Converts the 'column' to a numpy array.

STAREDataFrame.to_arrays([shape, pivot])

Converts a STAREDataFrame into a dictionary of arrays; one array per column/field.

Plotting#

STAREDataFrame.plot([trixels, boundary])

Generate a plot with matplotlib.