Skip to content

Commit 754d00a

Browse files
committed
updates for #884, #887, #890
1 parent 685f5d2 commit 754d00a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/cli/cli-data.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,14 +333,14 @@ binned by different time periods.
333333
This can be used for things like getting the number of items in a strip:
334334

335335
```
336-
planet data filter --string-in strip_id 5743640 | planet data stats PSScene day -
336+
planet data filter --string-in strip_id 5743640 | planet data stats PSScene --interval day --filter -
337337
```
338338

339339
Or the number of PlanetScope scenes collected in California each year:
340340

341341
```
342342
curl -s https://raw.githubusercontent.com/ropensci/geojsonio/main/inst/examples/california.geojson | \
343-
planet data filter --geom - | planet data stats PSScene year - | jq
343+
planet data filter --geom - | planet data stats PSScene --interval year --filter - | jq
344344
```
345345

346346
Will result in output like:
@@ -403,7 +403,7 @@ you can easily use [jq]((cli-intro.md#jq) to total up the results of an interval
403403

404404
```
405405
curl -s https://raw.githubusercontent.com/ropensci/geojsonio/main/inst/examples/california.geojson | \
406-
planet data filter --geom - | planet data stats PSScene year - | jq '.buckets | map(.count) | add'
406+
planet data filter --geom - | planet data stats PSScene --interval year --filter - | jq '.buckets | map(.count) | add'
407407
```
408408

409409
Just pipe the results to `jq '.buckets | map(.count) | add'` and it'll give you the total of all the values.
@@ -495,7 +495,7 @@ To make a new saved search you can use the exact same filter syntax as the regul
495495
but you must also add a 'name' to refer to the search by:
496496

497497
```
498-
planet data filter --geom geometry.geojson | planet data search-create 'my saved search' PSScene -
498+
planet data filter --geom geometry.geojson | planet data search-create PSScene --name 'my saved search' --filter -
499499
```
500500

501501
### Run Search
@@ -519,7 +519,7 @@ You can also update an existing search to have a different set of values. This t
519519
will overwrite the previous values.
520520

521521
```
522-
planet data filter --string-in instrument PS2,PSB.SD | planet data search-update da963039dbe94573a3ac9e4629d065b6 'my updated search' SkySatCollect -
522+
planet data filter --string-in instrument PS2,PSB.SD | planet data search-update da963039dbe94573a3ac9e4629d065b6 --name 'my updated search' --filter - SkySatCollect
523523
```
524524

525525
### Delete Search

0 commit comments

Comments
 (0)