Summing multiple layers of data using Google Earth Engine? Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Getting Temperature Data of Given Point Using MODIS LST Data?Google Earth Engine. Looking for a way to have information for each location in the mentioned time period based on the non-cloudy layersGoogle Earth Engine - Map.addLayerWriting code for monthly NDVI medians in Google Earth Engine?Multiple date filter Google Earth EngineGoogle Earth Engine, how to distinguish between rivers/streams and ponds/lakes in a water maskImporting weather data using Google Earth Engine and visualizing them?Classification of NDVI using Google Earth EngineExporting Earth Engine results to kml for use in Google EarthEarth Engine: Function to generate daily image collection from 3 hourlySumming multiple years of rain data using Google Earth Engine?
What is a non-alternating simple group with big order, but relatively few conjugacy classes?
Should I use a zero-interest credit card for a large one-time purchase?
Extract all GPU name, model and GPU ram
How to tell that you are a giant?
prime numbers and expressing non-prime numbers
What does an IRS interview request entail when called in to verify expenses for a sole proprietor small business?
Using audio cues to encourage good posture
What to do with chalk when deepwater soloing?
Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?
Why did the IBM 650 use bi-quinary?
Can a USB port passively 'listen only'?
At the end of Thor: Ragnarok why don't the Asgardians turn and head for the Bifrost as per their original plan?
Why are there no cargo aircraft with "flying wing" design?
Identify plant with long narrow paired leaves and reddish stems
What does this icon in iOS Stardew Valley mean?
How to find out what spells would be useless to a blind NPC spellcaster?
Fundamental Solution of the Pell Equation
Single word antonym of "flightless"
How discoverable are IPv6 addresses and AAAA names by potential attackers?
Check which numbers satisfy the condition [A*B*C = A! + B! + C!]
Short Story with Cinderella as a Voo-doo Witch
porting install scripts : can rpm replace apt?
Should I discuss the type of campaign with my players?
Bete Noir -- no dairy
Summing multiple layers of data using Google Earth Engine?
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Getting Temperature Data of Given Point Using MODIS LST Data?Google Earth Engine. Looking for a way to have information for each location in the mentioned time period based on the non-cloudy layersGoogle Earth Engine - Map.addLayerWriting code for monthly NDVI medians in Google Earth Engine?Multiple date filter Google Earth EngineGoogle Earth Engine, how to distinguish between rivers/streams and ponds/lakes in a water maskImporting weather data using Google Earth Engine and visualizing them?Classification of NDVI using Google Earth EngineExporting Earth Engine results to kml for use in Google EarthEarth Engine: Function to generate daily image collection from 3 hourlySumming multiple years of rain data using Google Earth Engine?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Using this code:
// This function clips images to the ROI feature collection
var clipToCol = function(image)
return image.clip(geometry);
;
var dataset = ee.ImageCollection('MODIS/006/MYD11A1')
.map(clipToCol);
var landSurfaceTemperature = dataset.select(['LST_Day_1km', 'LST_Night_1km']);
// According to: https://gis.stackexchange.com/questions/307548/getting-temperature-data-of-given-point-using-modis-lst-data
// map over the image collection and use server side functions
var tempToFahr = landSurfaceTemperature.map(function(image)
var props = image.toDictionary(image.propertyNames());
var Fahr = (image.multiply(0.02).subtract(273.15)).multiply(1.8).add(32);
// Mask where one of Night or day temperature has no data
var FahrMasks = Fahr.updateMask(Fahr.select('LST_Day_1km')).updateMask(Fahr.select('LST_Night_1km'));
// we assume that the night temperature is the min temp, and the day temperature is the max temperature
var meanFahr = FahrMasks.reduce('mean').rename('meanTemp');
// Calculate the GGD and make all the negative values 0 (see: https://en.wikipedia.org/wiki/Growing_degree-day)
var GDD = meanFahr.subtract(52.5).rename('GDD');
var GDDnonNeg = GDD.where(GDD.lt(0), 0).rename('GDDnonNeg');
return ee.Image(Fahr.addBands([meanFahr, GDD, GDDnonNeg]).setMulti(props));
);
// calculate the sum of GGD values
var summed = tempToFahr.select('GDDnonNeg').sum().rename('summedGDD');
var landSurfaceTemperatureVis =
min: 0,
max: 100,
bands: ['LST_Day_1km'],
palette: [
'040274', '040281', '0502a3', '0502b8', '0502ce', '0502e6',
'0602ff', '235cb1', '307ef3', '269db1', '30c8e2', '32d3ef',
'3be285', '3ff38f', '86e26f', '3ae237', 'b5e22e', 'd6e21f',
'fff705', 'ffd611', 'ffb613', 'ff8b13', 'ff6e08', 'ff500d',
'ff0000', 'de0101', 'c21301', 'a71001', '911003'
],
;
Map.setCenter(-85.60371794450282,44.73590436363271, 10);
var temp2011 = summed.filterDate("2011-06-15", "2011-07-15");
var temp2012 = summed.filterDate("2012-06-15", "2012-07-15");
var temp2013 = summed.filterDate("2013-06-15", "2013-07-15");
var temp2014 = summed.filterDate("2014-06-15", "2014-07-15");
var temp2015 = summed.filterDate("2015-06-15", "2015-07-15");
var temp2016 = summed.filterDate("2016-06-15", "2016-07-15");
var total2011 = temp2011.reduce(ee.Reducer.sum());
var total2012 = temp2012.reduce(ee.Reducer.sum());
var total2013 = temp2013.reduce(ee.Reducer.sum());
var total2014 = temp2014.reduce(ee.Reducer.sum());
var total2015 = temp2015.reduce(ee.Reducer.sum());
var total2016 = temp2016.reduce(ee.Reducer.sum());
var final = total2011.add(total2012).add(total2013).add(total2014).add(total2015).add(total2016);
Map.addLayer(final, landSurfaceTemperatureVis,
'Final Layer');
// Export a cloud-optimized GeoTIFF.
Export.image.toDrive(
image: summed,
description: 'imageToCOGeoTiffExample',
scale: 1000,
region: features,
fileFormat: 'GeoTIFF',
formatOptions:
cloudOptimized: true
);
I am returned an error "summed.filterDate is not a function"
What I am trying to do is compile the data between the filter dates and then sum the outputs into one final layer. I have been able to successfully perform this task with precipitation, but not temperature. Any ideas?
google-earth-engine
add a comment |
Using this code:
// This function clips images to the ROI feature collection
var clipToCol = function(image)
return image.clip(geometry);
;
var dataset = ee.ImageCollection('MODIS/006/MYD11A1')
.map(clipToCol);
var landSurfaceTemperature = dataset.select(['LST_Day_1km', 'LST_Night_1km']);
// According to: https://gis.stackexchange.com/questions/307548/getting-temperature-data-of-given-point-using-modis-lst-data
// map over the image collection and use server side functions
var tempToFahr = landSurfaceTemperature.map(function(image)
var props = image.toDictionary(image.propertyNames());
var Fahr = (image.multiply(0.02).subtract(273.15)).multiply(1.8).add(32);
// Mask where one of Night or day temperature has no data
var FahrMasks = Fahr.updateMask(Fahr.select('LST_Day_1km')).updateMask(Fahr.select('LST_Night_1km'));
// we assume that the night temperature is the min temp, and the day temperature is the max temperature
var meanFahr = FahrMasks.reduce('mean').rename('meanTemp');
// Calculate the GGD and make all the negative values 0 (see: https://en.wikipedia.org/wiki/Growing_degree-day)
var GDD = meanFahr.subtract(52.5).rename('GDD');
var GDDnonNeg = GDD.where(GDD.lt(0), 0).rename('GDDnonNeg');
return ee.Image(Fahr.addBands([meanFahr, GDD, GDDnonNeg]).setMulti(props));
);
// calculate the sum of GGD values
var summed = tempToFahr.select('GDDnonNeg').sum().rename('summedGDD');
var landSurfaceTemperatureVis =
min: 0,
max: 100,
bands: ['LST_Day_1km'],
palette: [
'040274', '040281', '0502a3', '0502b8', '0502ce', '0502e6',
'0602ff', '235cb1', '307ef3', '269db1', '30c8e2', '32d3ef',
'3be285', '3ff38f', '86e26f', '3ae237', 'b5e22e', 'd6e21f',
'fff705', 'ffd611', 'ffb613', 'ff8b13', 'ff6e08', 'ff500d',
'ff0000', 'de0101', 'c21301', 'a71001', '911003'
],
;
Map.setCenter(-85.60371794450282,44.73590436363271, 10);
var temp2011 = summed.filterDate("2011-06-15", "2011-07-15");
var temp2012 = summed.filterDate("2012-06-15", "2012-07-15");
var temp2013 = summed.filterDate("2013-06-15", "2013-07-15");
var temp2014 = summed.filterDate("2014-06-15", "2014-07-15");
var temp2015 = summed.filterDate("2015-06-15", "2015-07-15");
var temp2016 = summed.filterDate("2016-06-15", "2016-07-15");
var total2011 = temp2011.reduce(ee.Reducer.sum());
var total2012 = temp2012.reduce(ee.Reducer.sum());
var total2013 = temp2013.reduce(ee.Reducer.sum());
var total2014 = temp2014.reduce(ee.Reducer.sum());
var total2015 = temp2015.reduce(ee.Reducer.sum());
var total2016 = temp2016.reduce(ee.Reducer.sum());
var final = total2011.add(total2012).add(total2013).add(total2014).add(total2015).add(total2016);
Map.addLayer(final, landSurfaceTemperatureVis,
'Final Layer');
// Export a cloud-optimized GeoTIFF.
Export.image.toDrive(
image: summed,
description: 'imageToCOGeoTiffExample',
scale: 1000,
region: features,
fileFormat: 'GeoTIFF',
formatOptions:
cloudOptimized: true
);
I am returned an error "summed.filterDate is not a function"
What I am trying to do is compile the data between the filter dates and then sum the outputs into one final layer. I have been able to successfully perform this task with precipitation, but not temperature. Any ideas?
google-earth-engine
.filterDate()
is applied to imageCollections. You used a reducer to create the imagesummed
, which cannot be filtered by date since it's only one image.
– JepsonNomad
Apr 9 at 18:09
You're totally right. The other products i used to calculate precipitation did not require to perform those initial calculations / conversions. So the question becomes: how would I sum each filtered date range into an a converted image, which could be later summed?
– Joey Roses
Apr 9 at 18:47
You can useImage.add(Image2)
but I'm not sure why you would want to sum temperatures unless you're doing growing degree days or something, which doesn't seem to be the case here.
– JepsonNomad
Apr 9 at 21:18
GDD is precisely what I am looking to analyze here. What I am trying to do is average the GDD outputs over 10 years so I can identify what areas accumulate GDDs versus those that don't - on a 10 year average. As it stands, I was trying to sum all 10 years into an output so you could see the "hotspots", but it might make sense to average them. In any case, I would assume that you have to run each image and filter date through the GDD equation and then have an output for each image. Then sum / average those compiled images. Any ideas about how to structure that?
– Joey Roses
Apr 10 at 15:06
add a comment |
Using this code:
// This function clips images to the ROI feature collection
var clipToCol = function(image)
return image.clip(geometry);
;
var dataset = ee.ImageCollection('MODIS/006/MYD11A1')
.map(clipToCol);
var landSurfaceTemperature = dataset.select(['LST_Day_1km', 'LST_Night_1km']);
// According to: https://gis.stackexchange.com/questions/307548/getting-temperature-data-of-given-point-using-modis-lst-data
// map over the image collection and use server side functions
var tempToFahr = landSurfaceTemperature.map(function(image)
var props = image.toDictionary(image.propertyNames());
var Fahr = (image.multiply(0.02).subtract(273.15)).multiply(1.8).add(32);
// Mask where one of Night or day temperature has no data
var FahrMasks = Fahr.updateMask(Fahr.select('LST_Day_1km')).updateMask(Fahr.select('LST_Night_1km'));
// we assume that the night temperature is the min temp, and the day temperature is the max temperature
var meanFahr = FahrMasks.reduce('mean').rename('meanTemp');
// Calculate the GGD and make all the negative values 0 (see: https://en.wikipedia.org/wiki/Growing_degree-day)
var GDD = meanFahr.subtract(52.5).rename('GDD');
var GDDnonNeg = GDD.where(GDD.lt(0), 0).rename('GDDnonNeg');
return ee.Image(Fahr.addBands([meanFahr, GDD, GDDnonNeg]).setMulti(props));
);
// calculate the sum of GGD values
var summed = tempToFahr.select('GDDnonNeg').sum().rename('summedGDD');
var landSurfaceTemperatureVis =
min: 0,
max: 100,
bands: ['LST_Day_1km'],
palette: [
'040274', '040281', '0502a3', '0502b8', '0502ce', '0502e6',
'0602ff', '235cb1', '307ef3', '269db1', '30c8e2', '32d3ef',
'3be285', '3ff38f', '86e26f', '3ae237', 'b5e22e', 'd6e21f',
'fff705', 'ffd611', 'ffb613', 'ff8b13', 'ff6e08', 'ff500d',
'ff0000', 'de0101', 'c21301', 'a71001', '911003'
],
;
Map.setCenter(-85.60371794450282,44.73590436363271, 10);
var temp2011 = summed.filterDate("2011-06-15", "2011-07-15");
var temp2012 = summed.filterDate("2012-06-15", "2012-07-15");
var temp2013 = summed.filterDate("2013-06-15", "2013-07-15");
var temp2014 = summed.filterDate("2014-06-15", "2014-07-15");
var temp2015 = summed.filterDate("2015-06-15", "2015-07-15");
var temp2016 = summed.filterDate("2016-06-15", "2016-07-15");
var total2011 = temp2011.reduce(ee.Reducer.sum());
var total2012 = temp2012.reduce(ee.Reducer.sum());
var total2013 = temp2013.reduce(ee.Reducer.sum());
var total2014 = temp2014.reduce(ee.Reducer.sum());
var total2015 = temp2015.reduce(ee.Reducer.sum());
var total2016 = temp2016.reduce(ee.Reducer.sum());
var final = total2011.add(total2012).add(total2013).add(total2014).add(total2015).add(total2016);
Map.addLayer(final, landSurfaceTemperatureVis,
'Final Layer');
// Export a cloud-optimized GeoTIFF.
Export.image.toDrive(
image: summed,
description: 'imageToCOGeoTiffExample',
scale: 1000,
region: features,
fileFormat: 'GeoTIFF',
formatOptions:
cloudOptimized: true
);
I am returned an error "summed.filterDate is not a function"
What I am trying to do is compile the data between the filter dates and then sum the outputs into one final layer. I have been able to successfully perform this task with precipitation, but not temperature. Any ideas?
google-earth-engine
Using this code:
// This function clips images to the ROI feature collection
var clipToCol = function(image)
return image.clip(geometry);
;
var dataset = ee.ImageCollection('MODIS/006/MYD11A1')
.map(clipToCol);
var landSurfaceTemperature = dataset.select(['LST_Day_1km', 'LST_Night_1km']);
// According to: https://gis.stackexchange.com/questions/307548/getting-temperature-data-of-given-point-using-modis-lst-data
// map over the image collection and use server side functions
var tempToFahr = landSurfaceTemperature.map(function(image)
var props = image.toDictionary(image.propertyNames());
var Fahr = (image.multiply(0.02).subtract(273.15)).multiply(1.8).add(32);
// Mask where one of Night or day temperature has no data
var FahrMasks = Fahr.updateMask(Fahr.select('LST_Day_1km')).updateMask(Fahr.select('LST_Night_1km'));
// we assume that the night temperature is the min temp, and the day temperature is the max temperature
var meanFahr = FahrMasks.reduce('mean').rename('meanTemp');
// Calculate the GGD and make all the negative values 0 (see: https://en.wikipedia.org/wiki/Growing_degree-day)
var GDD = meanFahr.subtract(52.5).rename('GDD');
var GDDnonNeg = GDD.where(GDD.lt(0), 0).rename('GDDnonNeg');
return ee.Image(Fahr.addBands([meanFahr, GDD, GDDnonNeg]).setMulti(props));
);
// calculate the sum of GGD values
var summed = tempToFahr.select('GDDnonNeg').sum().rename('summedGDD');
var landSurfaceTemperatureVis =
min: 0,
max: 100,
bands: ['LST_Day_1km'],
palette: [
'040274', '040281', '0502a3', '0502b8', '0502ce', '0502e6',
'0602ff', '235cb1', '307ef3', '269db1', '30c8e2', '32d3ef',
'3be285', '3ff38f', '86e26f', '3ae237', 'b5e22e', 'd6e21f',
'fff705', 'ffd611', 'ffb613', 'ff8b13', 'ff6e08', 'ff500d',
'ff0000', 'de0101', 'c21301', 'a71001', '911003'
],
;
Map.setCenter(-85.60371794450282,44.73590436363271, 10);
var temp2011 = summed.filterDate("2011-06-15", "2011-07-15");
var temp2012 = summed.filterDate("2012-06-15", "2012-07-15");
var temp2013 = summed.filterDate("2013-06-15", "2013-07-15");
var temp2014 = summed.filterDate("2014-06-15", "2014-07-15");
var temp2015 = summed.filterDate("2015-06-15", "2015-07-15");
var temp2016 = summed.filterDate("2016-06-15", "2016-07-15");
var total2011 = temp2011.reduce(ee.Reducer.sum());
var total2012 = temp2012.reduce(ee.Reducer.sum());
var total2013 = temp2013.reduce(ee.Reducer.sum());
var total2014 = temp2014.reduce(ee.Reducer.sum());
var total2015 = temp2015.reduce(ee.Reducer.sum());
var total2016 = temp2016.reduce(ee.Reducer.sum());
var final = total2011.add(total2012).add(total2013).add(total2014).add(total2015).add(total2016);
Map.addLayer(final, landSurfaceTemperatureVis,
'Final Layer');
// Export a cloud-optimized GeoTIFF.
Export.image.toDrive(
image: summed,
description: 'imageToCOGeoTiffExample',
scale: 1000,
region: features,
fileFormat: 'GeoTIFF',
formatOptions:
cloudOptimized: true
);
I am returned an error "summed.filterDate is not a function"
What I am trying to do is compile the data between the filter dates and then sum the outputs into one final layer. I have been able to successfully perform this task with precipitation, but not temperature. Any ideas?
google-earth-engine
google-earth-engine
edited Apr 9 at 22:03
PolyGeo♦
54k1782246
54k1782246
asked Apr 9 at 17:58
Joey RosesJoey Roses
176
176
.filterDate()
is applied to imageCollections. You used a reducer to create the imagesummed
, which cannot be filtered by date since it's only one image.
– JepsonNomad
Apr 9 at 18:09
You're totally right. The other products i used to calculate precipitation did not require to perform those initial calculations / conversions. So the question becomes: how would I sum each filtered date range into an a converted image, which could be later summed?
– Joey Roses
Apr 9 at 18:47
You can useImage.add(Image2)
but I'm not sure why you would want to sum temperatures unless you're doing growing degree days or something, which doesn't seem to be the case here.
– JepsonNomad
Apr 9 at 21:18
GDD is precisely what I am looking to analyze here. What I am trying to do is average the GDD outputs over 10 years so I can identify what areas accumulate GDDs versus those that don't - on a 10 year average. As it stands, I was trying to sum all 10 years into an output so you could see the "hotspots", but it might make sense to average them. In any case, I would assume that you have to run each image and filter date through the GDD equation and then have an output for each image. Then sum / average those compiled images. Any ideas about how to structure that?
– Joey Roses
Apr 10 at 15:06
add a comment |
.filterDate()
is applied to imageCollections. You used a reducer to create the imagesummed
, which cannot be filtered by date since it's only one image.
– JepsonNomad
Apr 9 at 18:09
You're totally right. The other products i used to calculate precipitation did not require to perform those initial calculations / conversions. So the question becomes: how would I sum each filtered date range into an a converted image, which could be later summed?
– Joey Roses
Apr 9 at 18:47
You can useImage.add(Image2)
but I'm not sure why you would want to sum temperatures unless you're doing growing degree days or something, which doesn't seem to be the case here.
– JepsonNomad
Apr 9 at 21:18
GDD is precisely what I am looking to analyze here. What I am trying to do is average the GDD outputs over 10 years so I can identify what areas accumulate GDDs versus those that don't - on a 10 year average. As it stands, I was trying to sum all 10 years into an output so you could see the "hotspots", but it might make sense to average them. In any case, I would assume that you have to run each image and filter date through the GDD equation and then have an output for each image. Then sum / average those compiled images. Any ideas about how to structure that?
– Joey Roses
Apr 10 at 15:06
.filterDate()
is applied to imageCollections. You used a reducer to create the image summed
, which cannot be filtered by date since it's only one image.– JepsonNomad
Apr 9 at 18:09
.filterDate()
is applied to imageCollections. You used a reducer to create the image summed
, which cannot be filtered by date since it's only one image.– JepsonNomad
Apr 9 at 18:09
You're totally right. The other products i used to calculate precipitation did not require to perform those initial calculations / conversions. So the question becomes: how would I sum each filtered date range into an a converted image, which could be later summed?
– Joey Roses
Apr 9 at 18:47
You're totally right. The other products i used to calculate precipitation did not require to perform those initial calculations / conversions. So the question becomes: how would I sum each filtered date range into an a converted image, which could be later summed?
– Joey Roses
Apr 9 at 18:47
You can use
Image.add(Image2)
but I'm not sure why you would want to sum temperatures unless you're doing growing degree days or something, which doesn't seem to be the case here.– JepsonNomad
Apr 9 at 21:18
You can use
Image.add(Image2)
but I'm not sure why you would want to sum temperatures unless you're doing growing degree days or something, which doesn't seem to be the case here.– JepsonNomad
Apr 9 at 21:18
GDD is precisely what I am looking to analyze here. What I am trying to do is average the GDD outputs over 10 years so I can identify what areas accumulate GDDs versus those that don't - on a 10 year average. As it stands, I was trying to sum all 10 years into an output so you could see the "hotspots", but it might make sense to average them. In any case, I would assume that you have to run each image and filter date through the GDD equation and then have an output for each image. Then sum / average those compiled images. Any ideas about how to structure that?
– Joey Roses
Apr 10 at 15:06
GDD is precisely what I am looking to analyze here. What I am trying to do is average the GDD outputs over 10 years so I can identify what areas accumulate GDDs versus those that don't - on a 10 year average. As it stands, I was trying to sum all 10 years into an output so you could see the "hotspots", but it might make sense to average them. In any case, I would assume that you have to run each image and filter date through the GDD equation and then have an output for each image. Then sum / average those compiled images. Any ideas about how to structure that?
– Joey Roses
Apr 10 at 15:06
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f318275%2fsumming-multiple-layers-of-data-using-google-earth-engine%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f318275%2fsumming-multiple-layers-of-data-using-google-earth-engine%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
.filterDate()
is applied to imageCollections. You used a reducer to create the imagesummed
, which cannot be filtered by date since it's only one image.– JepsonNomad
Apr 9 at 18:09
You're totally right. The other products i used to calculate precipitation did not require to perform those initial calculations / conversions. So the question becomes: how would I sum each filtered date range into an a converted image, which could be later summed?
– Joey Roses
Apr 9 at 18:47
You can use
Image.add(Image2)
but I'm not sure why you would want to sum temperatures unless you're doing growing degree days or something, which doesn't seem to be the case here.– JepsonNomad
Apr 9 at 21:18
GDD is precisely what I am looking to analyze here. What I am trying to do is average the GDD outputs over 10 years so I can identify what areas accumulate GDDs versus those that don't - on a 10 year average. As it stands, I was trying to sum all 10 years into an output so you could see the "hotspots", but it might make sense to average them. In any case, I would assume that you have to run each image and filter date through the GDD equation and then have an output for each image. Then sum / average those compiled images. Any ideas about how to structure that?
– Joey Roses
Apr 10 at 15:06