Skip to content
This repository was archived by the owner on Feb 11, 2020. It is now read-only.

Commit 8139608

Browse files
committed
merge release/0.5.0
2 parents 8c09c8c + bdd6170 commit 8139608

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -263,34 +263,34 @@ lcmap-cli requires n config file at ~/.usgs/lcmap-cli.edn.
263263
# every chip in the requested tile.
264264
$ lcmap product --grid conus \
265265
--tile 027008 \
266-
--names length-of-segment,time-since-change \
266+
--names cover,change \
267267
--years 2002/2006 \
268268
>> 2002_2006_product_success.txt 2>> 2002_2006_product_errors.txt;
269269

270270
# example stdout output:
271-
# {"product":["length-of-segment", "time-since-change"],"cx":1484415.0,"cy":2111805.0,"dates":["2002-07-01"]}
272-
# {"product":["length-of-segment", "time-since-change"],"cx":1484415.0,"cy":2114805.0,"dates":["2002-07-01"]}
271+
# {"product":["cover", "change"],"cx":1484415.0,"cy":2111805.0,"dates":["2002-07-01"]}
272+
# {"product":["cover", "change"],"cx":1484415.0,"cy":2114805.0,"dates":["2002-07-01"]}
273273
# ...
274274

275275
# example stderr output if there was a problem calculating product values for a chip
276-
# {"failed_dates":[{"2002-07-01": "validation error"}],"product":"length-of-segment","cx":1484415.0,"cy":2114805.0,"dates":["2002-07-01"]}
276+
# {"failed_dates":[{"2002-07-01": "validation error"}],"product":"cover","cx":1484415.0,"cy":2114805.0,"dates":["2002-07-01"]}
277277
# example stderr output if there was a problem parsing the maps request
278-
# {"error":"problem processing /products request: 'helpful_error_message'", "dates":"2002/2006", "product":"length-of-segment", "tile":"027008", "grid":"conus"}
278+
# {"error":"problem processing /products request: 'helpful_error_message'", "dates":"2002/2006", "product":"change", "tile":"027008", "grid":"conus"}
279279

280280

281281
# Creating Maps
282282
# Producing tile sized product maps
283283
$ lcmap raster --grid conus \
284284
--tile 027008 \
285-
--names length-of-segment \
285+
--names cover \
286286
--years 2002/2006 \
287287
>> 2002_2006_maps_success.txt 2>> 2002_2006_raster_errors.txt;
288288

289289
# example stdout output:
290-
# {"tile":"027008","date":"2002-07-01","grid":"conus","tiley":2114805.0,"tilex":1484415.0,"product":["length-of-segment"],"resource":"maps","map_name":"LCMAP-CU-027008-2002-20190320-V01-SCSTAB.tif"}
290+
# {"tile":"027008","date":"2002-07-01","grid":"conus","ty":2114805.0,"tx":1484415.0,"product":["cover"],"resource":"maps","map_name":"LCMAP-CU-027008-2002-20190320-V01-SCSTAB.tif, ....."}
291291

292292
# example stderr output:
293-
# {"error":"problem processing /maps request: 'helpful_error_message'", "date":"2002-07-01", "tile":"027008", "tilex":"111111", "tiley":"222222", "product":"length-of-segment"}
293+
# {"error":"problem processing /maps request: 'helpful_error_message'", "date":"2002-07-01", "tile":"027008", "tx":"111111", "ty":"222222", "product":"change"}
294294

295295

296296
```

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject lcmap-cli "0.4.0"
1+
(defproject lcmap-cli "0.5.0"
22
:description "LCMAP Devops Interface"
33
:url "https://github.com/usgs-eros/lcmap-cli"
44
:license {:name "Unlicense"

src/lcmap_cli/products.clj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@
103103
(async/go
104104
(doseq [pd products-dates]
105105
(async/>! in-chan (hash-map :grid grid
106-
:tile tile
107-
:tilex tilex
108-
:tiley tiley
109-
:chips chip_xys
110-
:date (last pd)
111-
:product (first pd)
112-
:resource "raster"))))
106+
:tile tile
107+
:tx tilex
108+
:ty tiley
109+
:chips chip_xys
110+
:date (last pd)
111+
:product (first pd)
112+
:resource "raster"))))
113113

114114
(doall (map output_fn products-dates))))
115115

test/lcmap_cli/products_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
products/post-request keys
8585
cfg/http-options {:timeout 9}]
8686

87-
(is (= '({:tile "027008", :date "2006--", :grid "conus", :tiley 4, :tilex 3, :product "tsc", :resource "raster", :http-options {:timeout 7200000}})
87+
(is (= '({:tile "027008", :date "2006--", :grid "conus", :ty 4, :tx 3, :product "tsc", :resource "raster", :http-options {:timeout 7200000}})
8888
(products/raster {:grid "conus" :tile "027008" :names "tsc" :years "2006"})))))
8989

9090

0 commit comments

Comments
 (0)