---
title: "Selection of only yearly data on Google earth engine"
url: "https://openforis.support/questions/1431/selection-of-only-yearly-data-on-google-earth-engine"
tags: ["collectearth"]
status: "answered"
score: 0
answer_count: 1
asked: "2017-11-09T13:19:10"
last_activity: "2017-11-10T14:45:27"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Selection of only yearly data on Google earth engine

Asked by talhaberkarikan on 2017-11-09

GLDAS-1: Global Land Data Assimilation System band ( AvgSurfTsfc: Average surface temperature [K] ) 
provides daily data.I want to get this data as an annual average.


This is the script I'm using;

//GLDAS-1: Küresel Toprak Verisi
var noahAvgSurfTsfc = ee.ImageCollection('NASA/GLDAS/V001/NOAH/G025/T3H').filterDate(startTime, endTime).select('AvgSurfTsfc');
noahAvgSurfTsfc = noahAvgSurfTsfc.map(function(image) {
  return image.addBands(image.subtract(273.15).select([0], ['S?cakl?k C°']));
});


var noahAvgSurfTsfc = ui.Chart.image.series(noahAvgSurfTsfc, plot, ee.Reducer.mean(), 30);
 noahAvgSurfTsfc =  noahAvgSurfTsfc
	.setOptions({
		title: 'Ortalama Yüzey S?cakl??? [K]',
		hAxis: {title: 'Aylar'},
		vAxis: {title: 'S?cakl?k'}
		
	});


print(noahAvgSurfTsfc);



I do not want to take this data everyday.I want to take it as an average year. Can ypu help me ? Thanks


## Answer (score 0, by Open Foris on 2017-11-10)

Link: https://openforis.support/questions/1431/selection-of-only-yearly-data-on-google-earth-engine/1436

For Google Earth Engine related questions please go to the GEE forum : 

[https://groups.google.com/forum/#!forum/google-earth-engine-developers][1]

/Thank you


  [1]: https://groups.google.com/forum/#!forum/google-earth-engine-developers
