Skip to content

Instantly share code, notes, and snippets.

@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');
@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 / max_ndvi_production.py
Created August 26, 2024 06:22
openEO Max NDVI production
from openeo.extra.job_management import MultiBackendJobManager
import openeo
from openeo.processes import array_create
from shapely.geometry import box
from geopandas import GeoDataFrame
import pandas as pd
extents = ({'west': 441000, 'east': 451000, 'south': 6283000, 'north': 6293000, 'crs': 'EPSG:25832'}, {'west': 441000, 'east': 451000, 'south': 6273000, 'north': 6283000, 'crs': 'EPSG:25832'}, {'west': 441000, 'east': 451000, 'south': 6263000, 'north': 6273000, 'crs': 'EPSG:25832'}, {'west': 441000, 'east': 451000, 'south': 6253000, 'north': 6263000, 'crs': 'EPSG:25832'}, {'west': 441000, 'east': 451000, 'south': 6243000, 'north': 6253000, 'crs': 'EPSG:25832'}, {'west': 441000, 'east': 451000, 'south': 6233000, 'north': 6243000, 'crs': 'EPSG:25832'}, {'west': 441000, 'east': 451000, 'south': 6223000, 'north': 6233000, 'crs': 'EPSG:25832'}, {'west': 441000, 'east': 451000, 'south': 6213000, 'north': 6223000, 'crs': 'EPSG:25832'}, {'west': 441000, 'east': 451000, 'south': 6203000, 'north': 6213000, 'crs':
@jdries
jdries / Mol_30.geojson
Last active April 27, 2025 13:28
Molse30
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.