Skip to main content
Open

Planet SDK for Python does accept fallback in bundle_array when creating orders

Related products:Integrations (ArcGIS, QGIS, GEE)
  • December 18, 2023
  • 4 replies
  • 2301 views

Forum|alt.badge.img+5

The Python SDK library does not support fallback assets in product_bundle key like the API does.

 

Following the steps described here:

https://github.com/planetlabs/notebooks/blob/master/jupyter-notebooks/gee-integration/gee-integration.ipynb

with 'analytic_sr_udm2,analytic_udm2' string will lead to the following error:

planet.specs.SpecificationException: bundle - 'analytic_sr_udm2,analytic_udm2' is not one of 'analytic_udm2', 'analytic_3b_udm2', 'analytic_8b_udm2', 'visual', 'basic_analytic_udm2', 'basic_analytic_8b_udm2', 'analytic_sr_udm2', 'analytic_8b_sr_udm2'.

4 replies

Forum|alt.badge.img+4
  • Planeteer 🌎
  • December 19, 2023

After looking at this, the product() function supports fallback bundles with an explicit, optional parameter called fallback_bundle

E.g.,

planet.order_request.product(item_ids=iowa_images, product_bundle='analytic_sr_udm2', fallback_bundle='analytic_udm2', item_type='PSScene')

 

Documentation here:
https://planet-sdk-for-python-v2.readthedocs.io/en/latest/python/sdk-reference/?h=fallback#planet.order_request.product


Forum|alt.badge.img+2

Hi Daniel,

 

sorry but not that does not solve the problem -  I was using fallback_bundle to set up the order. But it still gave the same error. 

 

Here it is the notebook with all set up to replicate the error - and the error message at the bottom. 

You need to add your PL_KEY, GCP Project and GEE Image Collection. if you remove the fallback_bundle option than it works....

https://colab.research.google.com/drive/1oPYnUE58rlg-MF5zQWHfm3yvvppG3etB?usp=sharing


elyhienrich
Community Manager 🌎
Forum|alt.badge.img+17
  • Community Manager 🌎
  • June 24, 2024
NewOpen

elyhienrich
Community Manager 🌎
Forum|alt.badge.img+17
  • Community Manager 🌎
  • June 24, 2024

Thank you for submitting an idea, it is under review and open for discussion and voting. This is the investigation stage when we gather more information.