I read the scaling documentation for Google Earth Engine, but I didn't understand, so I need to make an example. I have two collections: one at 4 km resolution (MODIS) and one at 10 meters resolution (Sentinel). I want compare two bands, say the NDVI. My point is I don't want to compare a 10 meters pixel with a 4 km pixel, but I want to have enough pixels from Sentinel to cover the same area of MODIS and maybe use a ee.Reducer.Mean() to get a single value. Does this code do what I want?
point=ee.geometry.Point(11.05,37.58)
var chart_sentinel=ui.Chart.image.series({
imageCollection: sentinel_ndvi,
region: ee.Feature(point).geometry(),
reducer:ee.Reducer.mean(),
scale:4000
});
print(chart_sentinel)
var chart=ui.Chart.image.series({
imageCollection: modis_ndvi,
region: ee.Feature(point).geometry(),
reducer:ee.Reducer.mean(),
scale:1
});
Am I actually comparing approximately the same area?