What I am trying to do is to take a specific range of time (summer) over multiple years and then sum the total amount of precipitation onto a final layer.
This is the code I am working with
var dataset = ee.ImageCollection('IDAHO_EPSCOR/GRIDMET')
var precip = dataset.select('pr');
var precipVIS = {
min: 0.0,
max: 10.0,
palette: ['d8d8d8', '4addff', '5affa3', 'f2ff89', 'ff725c'],
};
Map.setCenter(-86.356, 44.686, 9);
Map.addLayer(
precip.filterDate("2014-06-15", "2014-07-15"), precipVIS,
'2014');
Map.addLayer(
precip.filterDate("2015-06-15", "2015-07-15"), precipVIS,
'2015');
Now I am looking for the last part where I sum the results of the two map layers '2014' & '2015'.