Geographic Information Systems Asked by Sarvarbek Eltazarov on January 17, 2021
When I use “ui.Chart.image.seriesByRegion” command in Google Earth Engine it required to define the spatial scale of the raster. Please, look at the below command, if I remove “250” it shows error. I did a search, but could not find clear solution for it.
I have tried to apply the solution given in Exporting images in native CRS and resolution, but it did not work as well “NDVI.projection is not a function”.
Is there any possibility to keep native spatial scale of the image while producing chart?
var pts = ee.Geometry.Point([10.61134244284358, 50.00619843404531]);
var NDVI = ee.ImageCollection("MODIS/006/MOD13A1")
.select(['NDVI'])
.filterDate('2018-01-01', '2019-06-25');
print(NDVI);
var chart = ui.Chart.image.seriesByRegion(NDVI, pts, ee.Reducer.first(), 'NDVI', 250)
.setChartType('LineChart');
print(chart);
Simple using nominalScale() e.g. https://code.earthengine.google.com/1a0a8d7c5076009238bcf23000174698
Answered by Mathieu Gravey on January 17, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP