Arrow
These functions require the arrow
extra, e.g.:
stacrs.to_arrow
to_arrow(items: list[dict[str, Any]] | dict[str, Any]) -> Table
Converts items to an arro3.core.Table.
Requires stacrs to be installed with the arrow
extra.
Parameters:
-
items
(list[dict[str, Any]] | dict[str, Any]
) –Either a list of items or a item collection
Returns:
-
Table
–The table
stacrs.from_arrow
from_arrow(table: Table) -> dict[str, Any]
Converts an arro3.core.Table to a STAC item collection.
Requires stacrs to be installed with the arrow
extra.
Parameters:
-
table
(Table
) –The table
Returns:
-
dict[str, Any]
–The STAC item collection