Code Monkey home page Code Monkey logo

ee-pokepalettes's Introduction

ee-pokepalettes

Pokemon Color Palettes for the Google Earth Engine JavaScript API (Code Editor)

MIT Twitter Badge

Table of Contents

Overview

Google Earth Engine (GEE) is a cloud-based service for geospatial processing of vector and raster data. The Earth Engine platform has a JavaScript and a Python API with different methods to process geospatial objects. Google Earth Engine also provides a HUGE PETABYTE-SCALE CATALOG of raster and vector data that users can process online. The ee-pokepalettes is a just-for-fun module that allows you to use Pokemon Color Palettes to plot your data in GEE!

Check the usage of ee-pokepalettes here:

var poke = require("users/dmlmont/pokepalettes:pokepalettes");

var ndvi = ee.ImageCollection('MODIS/006/MOD13A2')
  .filter(ee.Filter.date('2018-01-01', '2019-01-01'))
  .median()
  .divide(10000)
  .select("NDVI");

var vis = {
  min: 0.0,
  max: 1.0,
  // METAPOD!!!!!!
  palette: poke.palettes.metapod,
};

Map.addLayer(ndvi, vis, 'NDVI');

// ADD A COLORBAR!
print(poke.colorbar("NDVI",vis.min,vis.max,vis.palette))

How does it work?

The ee-pokepalettes module can be accepted HERE. Once accepted, it can be required by running the following line in the GEE JavaScript Code Editor:

var poke = require("users/dmlmont/pokepalettes:pokepalettes");

The complete list of pokemon color palettes can be accessed by using the palettes attribute:

print(poke.palettes)

A palette can be accessed using dot notation:

print(poke.palettes.pikachu)

Or by using a key:

print(poke.palettes["mr. mime"])

Create a color bar using colorbar(title,minValue,maxValue,palette):

print(poke.colorbar("My title",0,100,poke.palettes.charmander))

Poke-examples!

Geodude DEM! Code Editor

geodude

Charizard LST! Code Editor

charizard

Metapod NDVI! Code Editor

metapod

Kingdra Precipitation! Code Editor

kingdra

License

The project is licensed under the MIT license.

ee-pokepalettes's People

Contributors

davemlz avatar

Watchers

James Cloos 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.