Giter Site home page Giter Site logo

sportsbitenews / earthengine-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/earthengine-api

0.0 1.0 0.0 8.96 MB

Python and JavaScript bindings for calling the Earth Engine API.

License: Apache License 2.0

Shell 0.09% JavaScript 71.88% Python 27.45% Jupyter Notebook 0.58%

earthengine-api's Introduction

Google Earth Engine API

Python and JavaScript client libraries for calling the Earth Engine API.

Important Note: Access to Google Earth Engine is currently only available to trusted testers. The API is in active development, and users should expect the API to change. When (not if) API changes occur, applications that use the API will likely need to be updated.

Here's an example screenshot and the corresponding Code Editor JavaScript code:

Trendy Lights Image

// Compute the trend of night-time lights.

// Adds a band containing image date as years since 1991.
function createTimeBand(img) {
  var year = ee.Date(img.get('system:time_start')).get('year').subtract(1991);
  return ee.Image(year).byte().addBands(img);
}

// Map the time band creation helper over the night-time lights collection.
// https://earthengine.google.org/#detail/NOAA%2FDMSP-OLS%2FNIGHTTIME_LIGHTS
var collection = ee.ImageCollection('NOAA/DMSP-OLS/NIGHTTIME_LIGHTS')
    .select('stable_lights')
    .map(createTimeBand);

// Visualize brightness in green and a linear fit trend line in red/blue.
Map.addLayer(
    collection.reduce(ee.Reducer.linearFit()),
    {min: 0, max: [0.18, 20, -0.18], bands: ['scale', 'offset', 'scale']},
    'stable lights trend');

earthengine-api's People

Contributors

anonymousandrew avatar astirya avatar eengle avatar gorelick-google avatar inazarenko avatar jeffbeis avatar kpreid avatar max99x avatar maxh avatar mdhancher avatar michaelfdewitt avatar mike-d-d avatar schwehr avatar simonff avatar tylere avatar

Watchers

 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.