This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "CGLS_FCOVER_ANNUAL_MEAN", | |
"summary": "Annual mean composite of Copernicus Global Land FCover", | |
"description": "\nGiven a year and area of interest, returns a mean composite of [FCover](https://land.copernicus.eu/global/products/fcover).\n", | |
"parameters": [ | |
{ | |
"name": "geometry", | |
"description": "Geometry as GeoJSON feature(s).", | |
"schema": { | |
"type": "object", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compute the Normalized Difference Vegetation Index (NDVI). | |
var nir = image.select('B5'); | |
var red = image.select('B4'); | |
var ndvi = nir.subtract(red).divide(nir.add(red)).rename('NDVI'); | |
////ZONAL STATS | |
// Load input imagery: Landsat 7 5-year composite. | |
var image = ee.Image('LE7_TOA_5YEAR/2008_2012'); |