- 积分
- 55946
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
发表于 2017-2-6 19:39:55
|
显示全部楼层
已经升级了MeteoInfo版本为1.4R3,提升了MeteoInfoLab处理micaps2类数据的能力。示例脚本如下:
- fn = 'D:/Temp/micaps/10120420.000'
- f = addfile_micaps(fn)
- lon = f['Longitude'][:]
- lat = f['Latitude'][:]
- wd = f['WindDirection'][:]
- ws = f['WindSpeed'][:]
- #To grid data
- x = arange(70, 140, 2)
- y = arange(15, 58, 2)
- gwd,gx,gy = griddata((lon, lat), wd, xi=(x, y), method='idw')
- gws,gx,gy = griddata((lon, lat), ws, xi=(x, y), method='idw')
- #Plot
- axesm()
- lworld = shaperead('D:/Temp/map/country1.shp')
- geoshow(lworld, edgecolor='k')
- layer = streamplotm(x, y, gwd, gws, color='b', isuv=False)
|
|