You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli/cli-orders.md
+35-2Lines changed: 35 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -149,6 +149,33 @@ planet orders request \
149
149
}
150
150
```
151
151
152
+
#### Zip archives of bundles and orders
153
+
154
+
You can request that all files of a bundle be zipped together by using the `--archive-type` option. The only type of archive currently available is "zip".
155
+
156
+
```sh
157
+
planet orders request \
158
+
--item-type PSScene \
159
+
--bundle analytic_sr_udm2 \
160
+
--name 'My First Zipped Order' \
161
+
--archive-type zip \
162
+
20220605_124027_64_242b
163
+
```
164
+
165
+
You can request that all files of the entire order be zipped together by using the `--single-archive` option.
166
+
167
+
```sh
168
+
planet orders request \
169
+
--item-type PSScene \
170
+
--bundle analytic_sr_udm2 \
171
+
--name 'My First Zipped Order' \
172
+
--archive-type zip \
173
+
--single-archive \
174
+
20220605_124027_64_242b,20220605_124025_34_242b
175
+
```
176
+
177
+
*New in version 2.1*
178
+
152
179
### Save an Order Request
153
180
154
181
The above command just prints out the necessary JSON to create an order. To actually use it you can
@@ -613,13 +640,13 @@ Orders with Google Earth Engine delivery will force the STAC flag to false.
613
640
### Cloud Delivery
614
641
615
642
Another option is to delivery your orders directly to a cloud bucket, like AWS S3 or Google Cloud Storage.
616
-
The file given with the `--cloudconfig` option should contain JSON that follows
643
+
The file given with the `--delivery` option should contain JSON that follows
617
644
the options and format given in
618
645
[Delivery to Cloud Storage](https://developers.planet.com/docs/orders/delivery/#delivery-to-cloud-storage).
619
646
620
647
An example would be:
621
648
622
-
Example: `cloudconfig.json`
649
+
Example: `delivery.json`
623
650
624
651
```json
625
652
{
@@ -633,6 +660,12 @@ Example: `cloudconfig.json`
633
660
}
634
661
```
635
662
663
+
*New in 2.1*
664
+
665
+
!!! note
666
+
667
+
`--cloudconfig` was the name of this option in version 2.0 and can continue to be used as an alias for `--delivery`.
668
+
636
669
### Using Orders output as input
637
670
638
671
One useful thing to note is that the order JSON that reports status and location is a valid Orders API request.
The available statuses are `created`, `queued`, `processing`, `failed`, and `success`. Note it’s quite useful
173
175
to use `jq` to help filter out results as well.
174
176
177
+
#### Results as comma-seperated values (CSV)
178
+
179
+
Planetary Variable subscribers can benefit from retrieving results as a CSV. The results contain variable statistics and can serve as data for time series analysis and visualization.
You’ll likely want to save the output of your `request-catalog` call to disk, so that you can more easily use it in constructing the complete subscription
Now we’ll dive into some of the tools options for subscriptions. These are quite similar to the tools for
@@ -332,51 +385,18 @@ for Orders, future of the versions of the CLI will likely add `tools` convenienc
332
385
333
386
The most used tool is the `clip` operation, which lets you pass a geometry to the
334
387
Subscriptions API and it creates new images that only have pixels within the geometry you
335
-
gave it. We’ll use the same geometry from [above](#geometry), as it is quite
336
-
typical to use the same subscription geometry as the clip geometry, so you don't get
337
-
any pixels outside of your area of interest (99.9% of all subscriptions use the clip
338
-
tool, so it’s strongly recommended to also use clip). The proper 'clip' tool for it
339
-
would be:
388
+
gave it. 99% of the time you will want to clip to the subscription geometry. The easiest way to do this is to use the `--clip-to-source` option added to the `subscriptions request` command in version 2.1.
340
389
341
-
```json
342
-
[
343
-
{
344
-
"type": "clip",
345
-
"parameters": {
346
-
"aoi": {
347
-
"type": "Polygon",
348
-
"coordinates": [
349
-
[
350
-
[
351
-
-163.828125,
352
-
-44.59046718130883
353
-
],
354
-
[
355
-
181.7578125,
356
-
-44.59046718130883
357
-
],
358
-
[
359
-
181.7578125,
360
-
78.42019327591201
361
-
],
362
-
[
363
-
-163.828125,
364
-
78.42019327591201
365
-
],
366
-
[
367
-
-163.828125,
368
-
-44.59046718130883
369
-
]
370
-
]
371
-
]
372
-
}
373
-
}
374
-
}
375
-
]
390
+
```sh
391
+
planet subscriptions request \
392
+
--name 'Clipped Subscription' \
393
+
--source request-catalog.json \
394
+
--delivery cloud-delivery.json \
395
+
--clip-to-source
376
396
```
377
397
378
-
You can save this tools as `tools.json` to include in the `subscriptions request`
0 commit comments