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"
headers = {
"Content-Type": "application/geo+json",
}
response = requests.get(url, headers=headers)
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
File details
Details for the file stac_collection_search-0.0.7.tar.gz
.
File metadata
- Download URL: stac_collection_search-0.0.7.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7459b26b0870840e01e53907118f32f63e60361849ae218a6cb44e3e9a47a367 |
|
MD5 | 88c59ef1cf3829bf9fb223558a829942 |
|
BLAKE2b-256 | 5de758a22b8781b9d310cdec8af0d5b1151483fd074def24ca425cb045750560 |
File details
Details for the file stac_collection_search-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: stac_collection_search-0.0.7-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5932215e722e184684cc4fc0db29a49ef61893fae7715c244f0c114002abae8d |
|
MD5 | baab5523e95a16c36928fefb036683fb |
|
BLAKE2b-256 | e3fbb01f020a6ff789e8fe7e8bd50a4996ab65f98372982e9a8118aa9b9188a9 |