Created
March 18, 2021 19:42
-
-
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
This file contains hidden or 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
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