25 October 2022 0 699 Report

How do I convert 3 hours of precipitation data from GLDAS 2.0 to mm/day?The data is in kg/m^2/s in GEE and I want to get the daily precipitation (mm/day). How do I do this?

The data description says. Provider's Note: the names with extension _tavg are variables averaged over the past 3-hours

I can't understand "the names with extension _tavg are variables averaged over the past 3-hours".

So how do I write the code to get the daily precipitation in roi?

var roi = yours roi; var dataset = ee.ImageCollection("NASA/GLDAS/V021/NOAH/G025/T3H") .filter(ee.Filter.date('2022-05-01', '2022-06-02')) .select(['Rainf_f_tavg']); var chart = ui.Chart.image .series({ imageCollection: dataset5, region: roi, reducer: ee.Reducer.mean(), scale: 500, xProperty: 'system:time_start' }) .setSeriesNames(['precipitation']) .setOptions({ title: 'precipitation', hAxis: {title: 'Date', titleTextStyle: {italic: false, bold: true}}, vAxis: { title: 'Vegetation index (x1e4)', titleTextStyle: {italic: false, bold: true} }, lineWidth: 5, colors: ['e37d05', '1d6b99'], curveType: 'function' }); print(chart);

More Lijing Han's questions See All
Similar questions and discussions