Skip to content

usgs-lcmap/client-clj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lcmap.client (Clojure)

Build StatusClojars Project

LCMAP REST Service Client for Clojure

LCMAP open source project logo

Contents

Configuration

Client library configuration is done using a Config/INI file. See the lcmap.ini file in the examples directory.

Documentation

Full documentation for all LCMAP clients is available here:

Note that per-client usage and example code is selectable via tabs in the upper-right of that page.

For the API reference of the Clojure client library, see the following:

Example Usage

Starting:

$ cd lcmap-client-clj
$ lein repl
user=> (require '[lcmap.client.l8.surface-reflectance :as sr])
nil
user=> (sr/get-resources)
"{\"links\":[\"/api/L1/T/Landsat/8/SurfaceReflectance/:tiles\",
             \"/api/L1/T/Landsat/8/SurfaceReflectance/:rod\"]}"
user=> (sr/get-tile :extent ([1 2] [3 4]) :time "2015/01/01-2015/02/02" :band 4)
TBD
user=> (sr/get-tiles :point [1,2] :time "2015/01/01-2015/02/02" :band 2)
TBD
user=> (sr/get-rod :point [1,2] :time "2015/01/01" :band 4)
TBD

To explicitly set the version number of the REST service API:

user=> (sr/get-resources :version 2.0)

To generate debug output:

user=> (sr/get-resources :debug true)

License

Copyright © 2015 United States Government

NASA Open Source Agreement, Version 1.3

About

LCMAP REST Service Client (Clojure) [alpha 0.5.0]

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 77.9%
  • Makefile 20.1%
  • Shell 1.3%
  • HTML 0.7%