- 积分
- 55940
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
发表于 2015-7-20 23:18:14
|
显示全部楼层
1、下载最新的MeteoInfo版本:http://yun.baidu.com/share/link?shareid=669776748&uk=51062435
2、参考下面的脚本:
- f = addfile_micaps('D:/Temp/micaps/13042408.000')
- pr = f.stationdata('Var1')
- polygon1 = polygon([(100.71, 20.82), (100.71, 35.4), (106.5, 35.4), (106.5, 20.82), (100.71, 20.82)])
- pr = pr.maskout(polygon1)
- axesm()
- mlayer = shaperead('D:/Temp/map/country1.shp')
- geoshow(mlayer)
- layer = scatterm(pr, s=4, edge=False)
- title('MICAPS 3')
- xlim(70, 140)
- ylim(15, 55)
- colorbar(layer, orientation='horizontal')
- minv, minidx = pr.minloc()
- maxv, maxidx = pr.maxloc()
- min_st, min_lon, min_lat = pr[minidx]
- max_st, max_lon, max_lat = pr[maxidx]
- print 'Min: %.2f, Stid: %s, Lon: %.2f, Lat: %.2f' %(minv, min_st, min_lon, min_lat)
- print 'Max: %.2f, Stid: %s, Lon: %.2f, Lat: %.2f' %(maxv, max_st, max_lon, max_lat)
- npr = pr.filter(['56092','56279'])
复制代码 |
|