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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6489b769b1bcf3f0ebd9c3dacc33b70869e1ab376f0c9db61b36eda53ec57763 |
|
MD5 | 77227b3be8b799f68200c6e1914ede32 |
|
BLAKE2b-256 | 5172072933012f70679c5c46763581f32564a05e95ca35146fd67f919cd5d38b |
Close
Hashes for stac_collection_search-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 988aba6fc61ab2a756dbada673d24f1bf79b6acdb2f9df01ed746fbb3f4953ca |
|
MD5 | 5493f678ad3aca80300659f9868299f6 |
|
BLAKE2b-256 | 29b4c9ea62ec3f35a2beb0f3512fb86bcb80e206f3c88f5b26fe0b0b46c5b714 |