- 积分
- 1046
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-1-26
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
MOD16数据处理 - 简书 (jianshu.com)
## read the GTIFF datadataset = gdal.Open(r'Q:\ET_ET_1km.tif')# get the x and y sizexsize = dataset.RasterXSizeysize = dataset.RasterYSize# get the information of orginal coordinate (upper left point) and range of each grid# coordinate[0] -----> longitude# coordinate[1] -----> longitude range of one grid# coordinate[3] -----> latitute# coordinate[5] -----> latitute range of one gridcoordinate = dataset.GetGeoTransform()# read the ET datadata = dataset.ReadAsArray()# create the grid mesh using numpyxrange = range(0, xsize)yrange = range(0, ysize)x, y = np.meshgrid(xrange, yrange)lon = coordinate[0] + x*coordinate[1] + y*coordinate[2]lat = coordinate[3] + x*coordinate[4] + y*coordinate[5]
|
|