I'm new to GEE and I'm trying to create time series of NEX-GDDP Maximum data.
var roi = ee.FeatureCollection('users/prantoroy/Jessore_Dist');
var tempset = ee.ImageCollection("NASA/NEX-GDDP");
var startD = ee.Date('2000-01-01');
var Range = ee.DateRange(startD,startD.advance(20,'year'));
var intersect = tempset.filterDate(Range);
var selectBands = intersect.select('tasmax');
var temptoC = selectBands.map(function (img){
return img
.subtract(273.15)
.copyProperties(img, ['system:time_start']);
});
var chart = ui.Chart.image.series({
imageCollection:temptoC ,
region:roi,
reducer: ee.Reducer.mean(),
scale:10000,
xProperty:'system:time_start'
}).setOptions({
title: 'Air Temperature 1990 to 2020 (Mean) Jessore District, Bangladesh',
vAxis: {title: 'Min Temp'}
});
print(chart);
var MeanLST = temptoC.mean().clip(roi);
Map.centerObject(roi);
Map.addLayer(MeanLST,
{min: -1, max:1, palette: ['blue','red']},
'Max Temp 2000 to 2020');
Map.addLayer(roi);
But every time I get the same error.
Error generating chart: User memory limit exceeded.
I tried decreasing the years to 10, 5 and 2, but the problem still persists. I understand that my code is not efficient at all. Can someone please help me with a working version?