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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 956ce35be6692ac2980007a9f99fa471d2c9879db5fe42e22389733acec20201 |
|
MD5 | 99657e14aaca8f6c4eed46feb8853e54 |
|
BLAKE2b-256 | 6b4acdda766cc40cdb6e65a2dcec9758ac7c1fbdf0175ecdfcfb8db7192aedee |
Close
Hashes for stac_collection_search-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3679e72aa708ec22a289d8fd24b2bec855afd94aa2f088bc87e8a6367af632f |
|
MD5 | 9d972bc2e3048d80456c1ce3ba2aae25 |
|
BLAKE2b-256 | 04da44af47d6e6ca54e8aae0c11d72a199d949248ede24ca7e3e8a47ebb48234 |