Socket
Book a DemoInstallSign in
Socket

landsat-meta-updater

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

landsat-meta-updater

Downloads landsat metadata and add it to Elastic Search or Mongodb

0.5.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

landsat-meta-updater

npm version Build Status on docker

A downloader for landsat metadata with auto update for Elasticsearch or MongoDB.

Docker installation

$ docker run --name updater -e DBURL=mongodb://linktomongo/landsat-api developmentseed/landsat-meta-updater:latest

Requirements

  • Elastic Search 1.6+ if used with Elastic Search
  • MongoDB if used with MongoDB.

Install

$ npm install

Test

$ npm test

Usage

Look at provided examples.

  • Elastic Search

var Updater = require('landsat-meta-updater');

var u = new Updater('landsat', '8', 200);

//Update Elastic Search
u.updateEs(function(err, msg) {
  if (err) {
    console.log(err);
  }
  console.log(msg);
});

The number 200 (bulksize) shows the size of the bulk objects used for elasticsearch/mongodb bulk update.

You can play around with the bulksize to speed up the update process. If null is passed, the updater adds records individually to Elastic Search (not recommended).

Running the updater is an expensive operation for the first time because Elastic Search creates geo-indices for each image's bounding box.

The process is much faster if mongoDb is used.

Keywords

landsat

FAQs

Package last updated on 04 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.