All Projects → davemlz → spectral

davemlz / spectral

Licence: MIT license
Awesome Spectral Indices for the Google Earth Engine JavaScript API (Code Editor).

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to spectral

awesome-spectral-indices
A ready-to-use curated list of Spectral Indices for Remote Sensing applications.
Stars: ✭ 357 (+425%)
Mutual labels:  gis, landsat, sentinel, remote-sensing, modis, google-earth-engine, earth-engine, geographic-information-systems, spectral-indices, spectral-index
ee extra
A ninja python package that unifies the Google Earth Engine ecosystem.
Stars: ✭ 42 (-38.24%)
Mutual labels:  gis, landsat, sentinel, remote-sensing, modis, google-earth-engine, earth-engine, geographic-information-systems
spyndex
Awesome Spectral Indices in Python.
Stars: ✭ 56 (-17.65%)
Mutual labels:  spectral, remote-sensing, google-earth-engine, spectral-data, earth-engine, spectral-indices, spectral-index
eemont
A python package that extends Google Earth Engine.
Stars: ✭ 290 (+326.47%)
Mutual labels:  gis, remote-sensing, google-earth-engine, earth-engine, geographic-information-systems, spectral-indices
eodag
Earth Observation Data Access Gateway
Stars: ✭ 183 (+169.12%)
Mutual labels:  gis, landsat, sentinel, remote-sensing, modis
earthengine-py-examples
A collection of 300+ examples for using Earth Engine and the geemap Python package
Stars: ✭ 76 (+11.76%)
Mutual labels:  gis, remote-sensing, google-earth-engine, earth-engine
earthengine-apps
A collection of Earth Engine Apps created using geemap, voila, and heroku
Stars: ✭ 20 (-70.59%)
Mutual labels:  gis, remote-sensing, google-earth-engine, earth-engine
geeSharp.js
Pan-sharpening in the Earth Engine code editor
Stars: ✭ 25 (-63.24%)
Mutual labels:  landsat, remote-sensing, earth-engine
CoastSat.slope
Beach-face slope estimation from satellite-derived shorelines, extension of the CoastSat toolbox.
Stars: ✭ 42 (-38.24%)
Mutual labels:  remote-sensing, google-earth-engine, earth-engine
land-cover-to-land-use-classification
Satellite image processing pipeline to classify land-cover and land-use
Stars: ✭ 64 (-5.88%)
Mutual labels:  gis, landsat, remote-sensing
pylandsat
Search, download, and preprocess Landsat imagery 🛰️
Stars: ✭ 49 (-27.94%)
Mutual labels:  gis, landsat, remote-sensing
GoogleEarthEngine-side-projects
Google Earth Engine side projects and tutorial scripts
Stars: ✭ 23 (-66.18%)
Mutual labels:  remote-sensing, google-earth-engine
geemap-apps
Interactive web apps created using geemap and streamlit
Stars: ✭ 24 (-64.71%)
Mutual labels:  google-earth-engine, earth-engine
programming-for-gis-and-rs
Materials for the Intro to Programming for GIS and Remote Sensing Course that I teach at Saint Louis University. They include the updates I made for the spring 2020 and fall 2020 semesters.
Stars: ✭ 61 (-10.29%)
Mutual labels:  gis, remote-sensing
aruco-geobits
geobits: ArUco Ground Control Point Targets and Detection for Aerial Imagery (UAV/MAV).
Stars: ✭ 32 (-52.94%)
Mutual labels:  gis, remote-sensing
wildfire-forecasting
Forecasting wildfire danger using deep learning.
Stars: ✭ 39 (-42.65%)
Mutual labels:  gis, remote-sensing
whiteboxgui
An interactive GUI for WhiteboxTools in a Jupyter-based environment
Stars: ✭ 94 (+38.24%)
Mutual labels:  gis, remote-sensing
deepwatermap
a deep model that segments water on multispectral images
Stars: ✭ 81 (+19.12%)
Mutual labels:  landsat, remote-sensing
awesome-earth-engine-apps
A collection of all public Google Earth Engine Apps.
Stars: ✭ 78 (+14.71%)
Mutual labels:  google-earth-engine, earth-engine
gis-snippets
Some code snippets for GIS tasks
Stars: ✭ 45 (-33.82%)
Mutual labels:  gis, earth-engine


Awesome Spectral Indices for the Google Earth Engine JavaScript API (Code Editor)

Documentation Status https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/davemlz/5e9f08fa6a45d9d486e29d9d85ad5c84/raw/spectral.json https://img.shields.io/twitter/follow/dmlmont?style=social

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 Awesome Spectral Indices is a standardized ready-to-use curated list of spectral indices that can be used as expressions for computing spectral indices in GEE. The spectral module extends the GEE JavaScript API with new functions to access and compute spectral indices from the Awesome List of Spectral Indices.

Check the simple usage of spectral here:

var spectral = require("users/dmlmont/spectral:spectral");

var dataset = "COPERNICUS/S2_SR";

var S2 = ee.ImageCollection(dataset).first();
var S2 = spectral.scale(S2,dataset);

var parameters = {
    "N": S2.select("B8"),
    "R": S2.select("B4"),
    "G": S2.select("B3"),
    "L": 0.5
};

var S2 = spectral.computeIndex(S2,["NDVI","GNDVI","SAVI"],parameters);

List

Check the full list of spectral indices here.

How does it work?

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

var spectral = require("users/dmlmont/spectral:spectral");

The complete list of spectral indices can be accessed by using the indices attribute:

print(spectral.indices);

The list of available attributes for a specific index can be accessed using dot notation:

print(spectral.indices.NDVI);

Or by using a key:

print(spectral.indices["NDVI"]);

An attribute can be accessed using also dot notation:

print(spectral.indices.NDVI.formula);

Or by using a key:

print(spectral.indices.NDVI["formula"]);

The available attributes of an index are:

  • short_name: Short name of the index (e.g. "NDWI").
  • long_name: Long name of the index (e.g. "Normalized Difference Water Index").
  • formula: Expression/formula of the index (e.g. "(G - N)/(G + N)").
  • bands: List of required bands/parameters for the index computation (e.g. ["N","G"]).
  • reference: Link to the index reference/paper/doi (e.g. "https://doi.org/10.1080/01431169608948714").
  • type: Type/application of the index (e.g. "water").
  • date_of_addition: Date of addition to the list (e.g. "2021-04-07").
  • contributor: GitHub user link of the contributor (e.g. "https://github.com/davemlz").

Finally, an index (e.g. NDVI) can be computed using the computeIndex(img, index, params) function:

var dataset = "COPERNICUS/S2_SR";

var S2 = ee.ImageCollection(dataset).first()
var S2 = spectral.scale(S2,dataset);

var parameters = {
    "N": S2.select("B8"),
    "R": S2.select("B4"),
};

var S2 = spectral.computeIndex(S2,"NDVI",parameters);

And multiple indices can be computed using an array of indices:

var dataset = "COPERNICUS/S2_SR";

var S2 = ee.ImageCollection(dataset).first()
var S2 = spectral.scale(S2,dataset);

var parameters = {
    "N": S2.select("B8"),
    "R": S2.select("B4"),
    "G": S2.select("B3"),
    "L": 0.5
};

var S2 = spectral.computeIndex(S2,["NDVI","GNDVI","SAVI"],parameters);

All specified indices are added as new bands.

License

The project is licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].