Skip to content

Instantly share code, notes, and snippets.

@jdries
jdries / fcover.json
Created May 11, 2023 19:04
UDP test
{
"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",
@jdries
jdries / Earth Engine
Last active October 13, 2017 09:01
Client API examples
// 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');