Skip to content

Instantly share code, notes, and snippets.

@willrayeo
Created June 19, 2023 10:39
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/559f91c5925b65be6d3d32c18da284f4 to your computer and use it in GitHub Desktop.
Save willrayeo/559f91c5925b65be6d3d32c18da284f4 to your computer and use it in GitHub Desktop.
json = requests.get(f"https://catalogue.dataspace.copernicus.eu/odata/v1/Products?$filter=Collection/Name eq '{data_collection}' and OData.CSC.Intersects(area=geography'SRID=4326;{aoi}) and ContentDate/Start gt {start_date}T00:00:00.000Z and ContentDate/Start lt {end_date}T00:00:00.000Z").json()
pd.DataFrame.from_dict(json['value']).head(5)
@shixi2ng
Copy link

Missing a ' after the {aoi}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment