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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fab5ff6aa38946b7170a435ea8de10ed0a6b26a16cd8875cf1b30b1cb317ccd |
|
MD5 | 3b66d5499cb93d9e43699ae7baf2743b |
|
BLAKE2b-256 | d1f288c5fa549ac5e07dc21226ae122c78975e741cfc8b3b847d83d4248959c9 |
Close
Hashes for stac_collection_search-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0e48fb287d7db24c03cef76759baa1c93e0d81d5e7550fe048b67152e7c181a |
|
MD5 | bd12af5da9b89d0c0e9b98f70bdc6ca4 |
|
BLAKE2b-256 | 294433decbbacc389ebfba0409b817ecc9a873725ea150e3fe54c23959e124b8 |