Skip to content

Commit 69eb2c3

Browse files
authored
Restore assignment of item id lists to variables
It's a proxy for a Data API search.
1 parent a6d0ab5 commit 69eb2c3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

examples/orders_create_and_download_multiple_orders.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
DOWNLOAD_DIR = os.getenv('TEST_DOWNLOAD_DIR', '.')
3030

31+
# The Orders API will be asked to mask, or clip, results to
32+
# this area of interest.
3133
iowa_aoi = {
3234
"type":
3335
"Polygon",
@@ -36,11 +38,15 @@
3638
[-91.198465, 42.893071]]]
3739
}
3840

41+
# In practice, you will use a Data API search to find items, but
42+
# for this example take them as given.
43+
iowa_items = ['20200925_161029_69_2223', '20200925_161027_48_2223']
44+
3945
iowa_order = planet.order_request.build_request(
4046
name='iowa_order',
4147
products=[
4248
planet.order_request.product(
43-
item_ids=['20200925_161029_69_2223', '20200925_161027_48_2223'],
49+
item_ids=iowa_items,
4450
product_bundle='analytic_udm2',
4551
item_type='PSScene')
4652
],
@@ -54,11 +60,13 @@
5460
[-117.558734, 45.229745]]]
5561
}
5662

63+
oregon_items = ['20200909_182525_1014', '20200909_182524_1014']
64+
5765
oregon_order = planet.order_request.build_request(
5866
name='oregon_order',
5967
products=[
6068
planet.order_request.product(
61-
item_ids=['20200909_182525_1014', '20200909_182524_1014'],
69+
item_ids=oregon_items,
6270
product_bundle='analytic_udm2',
6371
item_type='PSScene')
6472
],

0 commit comments

Comments
 (0)