Untitled

 avatar
unknown
plain_text
3 years ago
668 B
7
Indexable

# with open("/home/ubuntu/Desktop/jedrek/Tos_10k.json", mode="r") as file:
#     aoi = json.load(file)

aoi = geopandas.read_file("/home/ubuntu/Desktop/jedrek/Tos_10k_poly.gpkg")


##Get an instance of the SpaceSense Client object
client = Client(id="search_s1_s2")

# Enable to save data in local files
client.enable_local_output()

start_date = "2021-06-05"
end_date = "2021-07-25"
# Retrieves all S2 images corresponding to the aoi, start date, end date, and query_filters
res_S2 = client.s2_search(aoi=aoi, start_date=start_date, end_date=end_date, query_filters = {"valid_pixel_percentage" : {">=": 50}, "cloud_medium_probability" : {"<=": 50}})
res_S2.dataframe
Editor is loading...