I would like to extract daily evapotranspiration for a specific date range, for example, 10/1/2012 to 9/30/2022. How can I specify the date range in the code?
And then how can I get either the time series or the .csv file of daily ET values? Are the correct bands selected?
// Specify the region
var dataset = ee.FeatureCollection('USGS/WBD/2017/HUC12');
var ET_region = dataset.filter(ee.Filter.eq('huc12', '121003010201'));
//Add region to the map
Map.addLayer(ET_region, {color: 'blue'}, 'Basin');
Map.centerObject(ET_region);
//ET Data
var collection = ee.ImageCollection("NASA/GLDAS/V021/NOAH/G025/T3H").select('Evap_tavg');
var TimeSeries = ui.Chart.image.series({
imageCollection: collection,
region: ET_region,
scale: 27380,
}).setChartType('ScatterChart')
.setOptions({
title: 'ET GLDAS',
vAxis: {title: 'mm/day'},
lineWidth: 1,
pointSize: 1,
});
print(TimeSeries)