GithubHelp home page GithubHelp logo

isabella232 / landsat-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from developmentseed/landsat-api

0.0 0.0 0.0 231 KB

[DEPRECATED] An API for Landsat Metadata using Elastic Search

Home Page: https://api.developmentseed.org/satellites/landsat

JavaScript 100.00%

landsat-api's Introduction

Landsat8 Metadata API

Important: This tool is retired and no longer maintianed. Please use sat-api.

A version of sat-api with Landsat metadata is accessible here.


This is an API for NASA/USGS Landsat-8 images. Landsat-api enables you to make geospatial, date and text queries on Landsat-8 metadata.

The metadata is released in csv format by USGS on a daily basis. You can download the raw metadata from here.

Download and install the lastest version of elastic search zip from ES website

Landsat-api powers a number of projects including Libra and AstroDigtal's Imagery Browser.

Dependencies

or

Installation

Install packages

$: npm install

Set environment variables on your system or add an .env file to the root directory of the app:

  • DB_TYPE=mongo choices are mongo or es
  • ES_HOST=example.com:9200 if you are using ElasticSearch
  • MONGODB_URL=mongodb://user:[email protected]:11111/db_name if you use MongoDb
  • AREA_LIMIT=500000 The area limit in (sq. km) for use in geo-spatial queries.
  • REDIS_USE=true Whether to active the caching. Default is false.
  • REDIS_HOST=127.0.0.1 default is 127.0.0.1
  • REDIS_PASSWORD=redispassword Redis db password. Default is null.
  • REDIS_DATABASE=myredisdb Name of the redis db. Default is null.
  • REDIS_PORT=6379 Redis port. Default is 6379.
  • LANDSAT_PAYLOAD_LIMIT Limit of payload size for POST in bytes. Default is 2048000.

Run

To run the api:

$ node index.js

To run the database updater

$ node updater.js

Note: updater.js works with MongoDb. If you plan to update an ElasticSearch installation replace updater.js with examples found here.

Test

$ npm test

landsat-api's People

Contributors

drewbo avatar scisco avatar jflasher avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.