Skip to content

Instantly share code, notes, and snippets.

@jdbcode
Created March 18, 2021 19:42
Show Gist options
  • Save jdbcode/08cec960a6c20336a735f914020439b0 to your computer and use it in GitHub Desktop.
Save jdbcode/08cec960a6c20336a735f914020439b0 to your computer and use it in GitHub Desktop.
[Medium] Code example 03 for the Medium blog on Earth Engine charting guide update
var what = ee.ImageCollection('MODIS/006/MOD13A2').select('NDVI');
var where = ee.FeatureCollection([
ee.Feature(ee.Geometry.Point([-93.51, 35.76]), {'veg_type': 'Deciduous'}),
ee.Feature(ee.Geometry.Point([-122.06, 37.01]), {'veg_type': 'Coniferous'})
]);
var how = ee.Reducer.mean();
var by = 'veg_type';
print(ui.Chart.image.seriesByRegion(what, where, how, null, null, null, by));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment