Order images and download them via the ordering and assets. Via Catalog Search you can filter by various parameters e.g. time period, area of interest, cloud cover etc. Then, you can order an image, access it in the UP42 Storage or download it to inspect the result!
import up42
up42.authenticate(project_id="123", project_api_key="456")
catalog = up42.initialize_catalog()
catalog.get_collections()
#aoi = up42.read_vector_file("data/aoi_washington.geojson", as_dataframe=False)
aoi = up42.get_example_aoi(location="Berlin", as_dataframe=True)
aoi
search_parameters = catalog.construct_parameters(geometry=aoi,
start_date="2018-01-01",
end_date="2020-12-31",
collection=["PHR"],
max_cloudcover=5,
sortby="cloudCoverage",
limit=1)
search_results = catalog.search(search_parameters=search_parameters)
search_results
catalog.estimate_order(aoi, search_results.loc[0])
order = catalog.place_order(aoi, search_results.loc[0])
You can check the status of the order via order.status. If you want to continuously track the order status until it is finished, use order.track_status(). Attention, this will block the Python process until the order is either finished, cancelled or failed!
order.track_status()
assets = order.get_assets()
assets[0].download()