I am trying to export hourly wind speed data from ERA5 hourly dataset via GEE. But when I am exporting the dataset it gives me daily average. I want a CSV file with dates, times in separate columns along with the wind speed value. I am trying to modify this code.
var ERA5 = ee.ImageCollection("ECMWF/ERA5_LAND/HOURLY")
.filter(ee.Filter.date('2017-09-01', '2017-10-01'));
var ERA5DOM = ERA5.map(function(im){
return im.clip(AOI);
});
//var u = ERA5DOM.select('u_component_of_wind_10m');
//var v = ERA5DOM.select('v_component_of_wind_10m');
//var calcwind = function(feature) {
// return feature.set({windspeed:((u.pow(2)).add(v.pow(2)).sqrt()) })
//};
// Wind calculation
var ERA5windspeed = ERA5DOM.map(function(image){
var wind_10m = image.expression(
'sqrt(u**2 + v**2)', {
'u': image.select('u_component_of_wind_10m'),
'v': image.select('v_component_of_wind_10m')
}).rename('windspeed');
var time = image.get('system:time_start');
return wind_10m.set('system:time_start', time) } );
print(ERA5windspeed);
Map.setCenter(-61.34, 15.4, 12);
var vis = {
min: 0,
max: 30,
palette: [
'#FFFFFF', '#FFFF71', '#DEFF00', '#9EFF00', '#77B038', '#007E55', '#005F51',
'#004B51', '#013A7B', '#023AAD'
]
};
Map.addLayer(ERA5windspeed.select('windspeed'), vis, "Wind speed (m/s) 10m above surface");
//var Wind_chart = ui.Chart.image.series(ERA5windspeed, AOI, ee.Reducer.mean(), 1000, 'system:time_start')
// .setOptions({
//title: 'Wind speed Full Time Series',
//vAxis: {title: 'm/s'}, });
//print(Wind_chart);
// Export the FeatureCollection to a csv file.
// Export.table.toDrive({
// collection: ERA5windspeed.select('windspeed'),
// description: 'DOM_mean_wind',
// fileformat: 'csv',
// selectors: ['date', 'windspeed', 'hour']
// });