I want to download the biweekly means of certain periods May-Sep of ERA5 data within a certain roi. (Mainly just Air/Soil Temp and Precip. The code I provided I just filtered for 2 weeks then applied .mean() in the visualization just to see how it looks. My first question is: if I just apply .mean() will it take a mean of all the days in the date I provided. My second question: should I use the hourly and take the mean? Or would the daily aggregate work just as well? Any advice would be helpful.
var roi = ee.FeatureCollection("projects/daniel-schartonproject/assets/roi")
var dataset = ee.ImageCollection('ECMWF/ERA5_LAND/DAILY_AGGR').filterDate("2025-08-04","2025-08-04");
var visualization = {
bands: ['temperature_2m'],
min: 250,
max: 320,
palette: [
'000080', '0000d9', '4000ff', '8000ff', '0080ff', '00ffff',
'00ff80', '80ff00', 'daff00', 'ffff00', 'fff500', 'ffda00',
'ffb000', 'ffa400', 'ff4f00', 'ff2500', 'ff0a00', 'ff00ff',
]
};
Map.setCenter(70, 45, 3);
Map.addLayer(
dataset.mean(), visualization, 'Air temperature (K) at 2m height', true, 0.8);