Skip to content

Instantly share code, notes, and snippets.

@cbeddow
Created November 4, 2020 22:41
Show Gist options
  • Save cbeddow/73d2ef699810d6ac7cce13a04df500c1 to your computer and use it in GitHub Desktop.
Save cbeddow/73d2ef699810d6ac7cce13a04df500c1 to your computer and use it in GitHub Desktop.
from stac_interact import get_collection_ids, get_item_dict, get_items_within
# desired collection ID
collection = 'sentinel-s2-l2a'
# get first item in desired collections
data = get_item_dict(collection)
assets = data['assets']
keys = assets.keys()
for key in keys:
print(assets[key]['href'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment