Skip to content

Instantly share code, notes, and snippets.

@willrayeo
Last active June 19, 2023 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willrayeo/d76ea09241c10cb678f6259b4cbc2aed to your computer and use it in GitHub Desktop.
Save willrayeo/d76ea09241c10cb678f6259b4cbc2aed to your computer and use it in GitHub Desktop.
catalog = SentinelHubCatalog(config=config)
aoi_bbox = BBox(bbox=aoi_coords_wgs84, crs=CRS.WGS84)
time_interval = '2022-06-01', '2022-06-10'
search_iterator = catalog.search(
DataCollection.SENTINEL2_L2A,
bbox=aoi_bbox,
time=time_interval,
fields={"include": ["id", "properties.datetime"], "exclude": []},
)
results = list(search_iterator)
print("Total number of results:", len(results))
results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment