Dear SH team,
Hope you are good and sorry to bother you again. I am writing this message since I got the status failed when I confirm my order for Planetscope.
Maybe I did something wrong but the details of my request are as follows :
query = {'provider': 'PLANET',
'bounds': {'properties': {'crs': 'http://www.opengis.net/def/crs/EPSG/0/32631'},
'geometry': {'type': 'Polygon',
'coordinates': [[[409964.0490900841, 5345608.346626982],
[409964.0490900841, 5345878.0089169],
[410182.42239297874, 5345878.0089169],
[410182.42239297874, 5345608.346626982],
[409964.0490900841, 5345608.346626982]]]}},
'data': [{'itemType': 'PSScene4Band',
'productBundle': 'analytic_sr_udm2',
'dataFilter': {'timeRange': {'from': '2020-05-01T00:00:00.000Z',
'to': '2020-06-30T00:00:00.000Z'},
'maxCloudCoverage': 30,
'nativeFilter': {'type': 'StringInFilter',
'field_name': 'quality_category',
'config': ['standard']}}}]}
response = oauth.post('https://services.sentinel-hub.com/api/v1/dataimport/'+"search", json=query)
response.raise_for_status()
results = response.json()
payload = {'name': 'planet products',
'input': {'provider': 'PLANET',
'bounds': {'properties': {'crs': 'http://www.opengis.net/def/crs/EPSG/0/32631'},
'geometry': {'type': 'Polygon',
'coordinates': [[[409964.0490900841, 5345608.346626982],
[409964.0490900841, 5345878.0089169],
[410182.42239297874, 5345878.0089169],
[410182.42239297874, 5345608.346626982],
[409964.0490900841, 5345608.346626982]]]}},
'data': [{'itemType': 'PSScene4Band',
'harmonizeTo': 'NONE',
'productBundle': 'analytic_sr_udm2',
'itemIds': ['20200626_103217_1035',
'20200625_103110_1011',
'20200624_105827_43_1058',
'20200624_105825_90_1058',
'20200624_101401_21_1069',
'20200623_101440_0e26',
'20200622_080707_0f4d',
'20200620_080745_104b',
'20200613_080807_0f24',
'20200602_103131_0f28',
'20200601_100059_17_2275',
'20200601_103135_0f4e',
'20200531_102659_1009',
'20200527_102808_1009',
'20200520_103128_1039',
'20200517_103249_1004',
'20200517_100218_33_2212',
'20200517_100216_05_2212']}],
'planetApiKey': 'mask'}}
response = oauth.post("https://services.sentinel-hub.com/api/v1/dataimport/orders", json=payload) #
response.raise_for_status()
order = response.json()
# Confirm the order
order_id = order['id']
response = oauth.post("https://services.sentinel-hub.com/api/v1/dataimport/orders/{order_id}/confirm")
response.raise_for_status()
jobStatus = response.json()['status']
Would you know if the problem comes from my request ?
Feel free to ask me for any further information and thanks again for your support.
Best regards,
Johann