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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 857b31989e6aa53b8a70b4a407c697218c83548b446f168b999a3e1b9c3c42c7 |
|
MD5 | 84ca03856524cc8e7d292c070b42368f |
|
BLAKE2b-256 | 1f857bfcb9f2cc43ae8b2499ecc17eb96baefd8044978f2fd2be4179b13ab341 |
Close
Hashes for stac_collection_search-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54df8dcaaa192abdf13f397b61f740bf3d888f811bcaf56ec2a2f3f71ad20ed9 |
|
MD5 | c0f51fc42148f64f9e99d9b8879d9024 |
|
BLAKE2b-256 | 21aadd29b64341e9a15f9da91a4d24e2093d6704f11b9790c1930cce0945ee79 |