STAC Collection Search helper utility
Project description
STAC Collection Search
Quick utility which enables you to search for STAC collections with a given bbox and datetime extent.
How to use
import requests
import datetime
import shapely
from stac_collection_search import search_collections
url ="https://planetarycomputer.microsoft.com/api/stac/v1/collections"
response = requests.get(url)
collection_list_json_dict = response.json()
temporal_extent_start = datetime.datetime(2019, 1, 1)
temporal_extent_end = datetime.datetime(2021, 1, 1)
spatial_extent = shapely.geometry.box(50, 0, 51, 1)
collection_list = search_collections(collection_list_json_dict, spatial_extent=spatial_extent,
temporal_extent_start=temporal_extent_start,
temporal_extent_end=temporal_extent_end)
print(collection_list, len(collection_list)) """ -> ['3dep-seamless', 'sentinel-1-rtc', '...'], 66 """
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for stac_collection_search-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a1749800b767623d083128b30340b9ddf2551baa8270cdcff62eb90e04bacc3 |
|
MD5 | e48232c453f7dc2d147e1264e09c1f8d |
|
BLAKE2b-256 | 0499e31f53fc119fc3d531e432f6f645c1691abf1380c5992af99246eb1d750a |
Close
Hashes for stac_collection_search-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88b412c55791b367d4f9208f3d49d0675ad6d31b6493411a37178358dbc79e41 |
|
MD5 | 1782f3d85fce2d7c02903ec38592dee5 |
|
BLAKE2b-256 | 458366eb8c78ae73a6766da3f70fb2f592a8086f9c7ea65305226a2aa4737026 |