Coder Social home page Coder Social logo

fires-summary-stats's Introduction

Fires Summary Microservice Overview

Build Status Test Coverage

Query MODIS and VIIRS fire alerts with the Global Forest Watch (GFW) API

  • Analyze datasets by Country, State and Districts (defined by the GADM Database)
  • Analyze datasets by GFW Land Use features (Managed Forest Concessions, Oil Palm Concessions, Mining Concessions and Wood Fiber Concessions- available in select countries)
  • Analyze datasets by Protected Areas (defined by the WDPA database)
  • Summarize analysis results by day, week, month, quarter or year
  • Get dataset date range/ latest date

Dependencies

Dependencies on other Microservices:

API Endpoints

For endpoint documentation, please visit our API documentation page for Fires

Getting Started

Perform the following steps:

  • Install docker
  • Install control tower
  • Clone this repository: git clone https://github.com/gfw-api/fires-summary-stats.git
  • Enter in the directory (cd fires-summary-stats)
  • Open a terminal (if you have mac or windows, open a terminal with the 'Docker Quickstart Terminal') and run the gladanalysis.sh shell script in development mode:
./fireSummary.sh develop

Testing

Testing API endpoints

./fireSummary.sh test

Config

register.json

This is the configuration file for the rest endpoints in the microservice. This json connects to the API Gateway. It contains variables such as:

  • #(service.id) => Id of the service set in the config file by environment
  • #(service.name) => Name of the service set in the config file by environment
  • #(service.uri) => Base uri of the service set in the config file by environment

Example:

{
	"name": "#(service.name)",
	"endpoints": [
		{
			"path": "/v1/fire-alerts/summary-stats/:polyname/:iso",
			"method": "GET",
			"binary": true,
			"redirect": {
				"method": "GET",
				"path": "/api/v1/fire-alerts/summary-stats/:polyname/:iso"
			}
		},
		{
		"path": "/v1/fire-alerts/summary-stats/:polyname/:iso/:adm1_code",
		"method": "GET",
		"binary": true,
		"redirect": {
			"method": "GET",
			"path": "/api/v1/fire-alerts/summary-stats/:polyname/:iso/:adm1_code"
					}
		},
		{
		"path": "/v1/fire-alerts/summary-stats/:polyname/:iso/:adm1_code/:adm2_code",
		"method": "GET",
		"binary": true,
		"redirect": {
			"method": "GET",
			"path": "/api/v1/fire-alerts/summary-stats/:polyname/:iso/:adm1_code/:adm2_code"
					}
		}
	]
}

fires-summary-stats's People

Contributors

archelogos avatar mappingvermont avatar rrequero avatar simaob avatar solomon-negusse avatar tiagojsag avatar

Watchers

 avatar  avatar  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.