zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Google Earth Engine(GEE)——将每小时降水量转化为逐日的降水量

Google Engine Earth 小时 GEE 转化
2023-09-11 14:15:11 时间

很多时候我们获取影像的时间分辨率为逐小时,但是如何获取影像的累积降水量?这里的整体思路就是获取不同时间影像的时间序列,然后分别获取每天的降水量,最后同一秋累计值,如果要进行时序图片展示的情况,我们就可以再秋累计值的时候就可以建立一个时间属性,这样可以建立时序列表。

 代码:

var table = ee.FeatureCollection("users/asifishti/CoC_subdis");

var table = ee.FeatureCollection("users/asifishti/CoC_subdis");

var imgcol = ee.ImageCollection("UCSB-CHG/CHIRPS/DAILY")
var coc = ee.FeatureCollection("users/asifishti/CoC_subdis")

//The shapefile is available here:
//


//Time range
var img_col = imgcol.filter(ee.Filter.date ('2005-01-01', '2005-01-30'));
print(img_col)

var image = img_col.first()

//deriving the date of the image
var date= image.get('system:index')

//zonal statistics
var mean_rain = function