Selection of only yearly data on Google earth engine

  • Asked
  • Active
  • Viewed 4907 times
0

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

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Tip: type a few words from the error message, or put a tag in [brackets] to look only there.

Menu

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.