Skip to main content

Hi,


We recently modified the planet order API config as sentinel requested to migrate from PSScen4Band to PSScene but got a 400 error code to check the latest image available to place an order. Please advice.


Here is the API payload structure and URL.


URL: https://services.sentinel-hub.com/api/v1/dataimport/orders


{“collectionId”:“d7bba748-a3ce-466f-b936-xxxxxxxxxx”,“input”:{“provider”:“PLANET”,“planetApiKey”:“XXXXXXXX”,
“bounds”:{“geometry”:{“type”:“Polygon”,“coordinates”:XXXXXXXXXXXXXXXXXX]]},
“properties”:{“crs”:“http://www.opengis.net/def/crs/OGC/1.3/CRS84”}},
“data”:i{“dataFilter”:{“timeRange”:{“from”:“2022-10-17T00:00:00.000Z”,
“to”:“2022-10-31T23:59:00.000Z”},“maxCloudCoverage”:10},“harmonizeTo”:“PS2”,“itemType”:“PSScene”,“productBundle”:“analytic_udm2”}]}}


Thanks

Hi @james,

can you copy-paste the error you’ve got?

Best,

Grega


Here is the error


{


"error": {

"status": 400,

"reason": "Bad Request",

"message": "Band mismatch. Ordered [band 'Blue' (source = 'image', bandIndex = 1 and bitDepth = 16), band 'Green' (source = 'image', bandIndex = 2 and bitDepth = 16), band 'NIR' (source = 'image', bandIndex = 4 and bitDepth = 16), band 'Red' (source = 'image', bandIndex = 3 and bitDepth = 16), band 'UDM' (source = 'udm2', bandIndex = 8 and bitDepth = 😎, band 'UDM2_Clear' (source = 'udm2', bandIndex = 1 and bitDepth = 😎, band 'UDM2_Cloud' (source = 'udm2', bandIndex = 6 and bitDepth = 😎, band 'UDM2_Confidence' (source = 'udm2', bandIndex = 7 and bitDepth = 😎, band 'UDM2_HeavyHaze' (source = 'udm2', bandIndex = 5 and bitDepth = 😎, band 'UDM2_LightHaze' (source = 'udm2', bandIndex = 4 and bitDepth = 😎, band 'UDM2_Shadow' (source = 'udm2', bandIndex = 3 and bitDepth = 😎, band 'UDM2_Snow' (source = 'udm2', bandIndex = 2 and bitDepth = 8)] but collection contains [band 'B1' (source = 'B1', bandIndex = 1 and bitDepth = 16), band 'B2' (source = 'B2', bandIndex = 1 and bitDepth = 16), band 'B3' (source = 'B3', bandIndex = 1 and bitDepth = 16), band 'B4' (source = 'B4', bandIndex = 1 and bitDepth = 16), band 'UDM' (source = 'UDM', bandIndex = 1 and bitDepth = 8)]",

"code": "COMMON_BAD_PAYLOAD"

}

}


Hi @james,

I believe this is due to you trying to order PSScene data in the same collection that is containing PSScene4Band scenes, which are technically not compatible.

You will certainly need to create a new collection.

We would kindly recommend you use Subscriptions instead of Orders - this way you can, with one single request, fill both the archive data and make sure that the data will be updated in the future as well. See:

677fdc7982dc11939feedbbd8c11f8f78129adf7.pngsentinel-hub.com
6adc0c17c58b09f5b8063eac7b1d8a910040498a.png


How to use Subscriptions API with PlanetScope?



For PlanetScope, subscriptions are available in addition to orders. Users can subscribe to get all data in a desired time-range for one specific parcel.







Best Regards,

Grega


Thanks, Grega,


Will it impact previous purchase orders with the new collection?


Regards

James


Not sure what you mean by “purchase orders”.

Our suggestion is to create a new collection and order (technically, not sales-wise) new data for all AOIs - for past and the future. Then you can essentially delete the old collections, unless you have the need for them.

Your “Hectares under management” plan for Planet data gives you access to full archive of data for a set of AOIs that you are “managing this year”.


Thank you, Grega.


I meant, we have purchased a quota for a set of AOIs with item type “PSScene4Band” and migrating to “PSScene” with the new collection couldn’t affect the quota right?


Regards

James


Regards.

James


Yes, you are right. Your purchased quota (AOIs) covers items of all types, so if you re-ingest with PSScene, there will be no cost associated to that.


Thank you so much, Grega!


Regards

James


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.


Reply