Created
June 19, 2023 10:39
-
-
Save willrayeo/559f91c5925b65be6d3d32c18da284f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Missing a ' after the {aoi}