planetlabs / planet-client-python

Python client for Planet APIs
https://planet-sdk-for-python-v2.readthedocs.io/en/latest/
Apache License 2.0
271 stars 91 forks source link

Update examples to replace PSOrthoTile example with PSScene #874

Open JuLeeAtPlanet opened 1 year ago

JuLeeAtPlanet commented 1 year ago

Expected behavior No examples using PSOrthoTile. create_order example should use PSScene.

Actual behavior (describe the problem) We've been asked to remove PSOrthoTile examples from all content by March 22. This change can happen anytime.

Related Issues Additional changes to codebase will be requested in the documentation or later as part of a dot release. This request is only to change the example in the file: https://github.com/planetlabs/planet-client-python/blob/main/planet/clients/orders.py

Workaround n/a

Minimum, Complete, Viable Code Sample A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you. See http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports

Replace:

        ...     image_ids = ['3949357_1454705_2020-12-01_241c']
        ...     request = build_request(
        ...         'test_order',
        ...         [product(image_ids, 'analytic', 'psorthotile')]

with:

        ...     image_ids = ["20200925_161029_69_2223"]
        ...     request = build_request(
        ...         'test_order',
        ...         [product(image_ids, 'analytic_udm2', 'psscene')]

Environment Information

Installation Method

tbarsballe commented 3 weeks ago

This specific example has been fixed by #875, but there's still a lot of other PSOrthoTile (and Sentinel and Landsat) examples that should be updated. Leaving this as a catch-all for those