爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5187|回复: 0

[经验总结] MOD16 ET tif格式 数据处理

[复制链接]

新浪微博达人勋

发表于 2022-8-20 23:34:30 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

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]
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表