Skip to content

Commit

Permalink
Fix stac collection error
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Sep 11, 2023
1 parent d999e8d commit 8892629
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
__pycache__/
*.py[cod]
*$py.class
private/

# C extensions
*.so
Expand Down
6 changes: 5 additions & 1 deletion maxar_data_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
import leafmap
import geopandas as gpd
import pandas as pd
from pystac import Catalog

collections = leafmap.maxar_collections()
url = "https://maxar-opendata.s3.amazonaws.com/events/catalog.json"
root_catalog = Catalog.from_file(url)
collections = root_catalog.get_collections()
collections = [collection.id for collection in collections]

datasets = pd.read_csv('datasets.csv')

Expand Down

0 comments on commit 8892629

Please sign in to comment.