- 积分
- 55945
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 MeteoInfo 于 2017-1-19 09:50 编辑
NOAA CPC的CMORPH降水数据(http://www.cpc.ncep.noaa.gov/pro ... ph_description.html)是二进制格式的格点数据,国家气象信息中心又融合了自动站的降水数据形成了降水融合产品(http://data.cma.cn/data/detail/d ... HOUR_GRID_0.10.html),同样是二进制格点数据。两种数据都有相应的ctl文件供GrADS软件读取处理数据。不过这里示例用MeteoInfoLab的binread()函数读取此类数据,并绘制降水分布图。
NOAA CPC CMORPH降水数据:
- fn = 'D:/Temp/binary/CMORPH+MWCOMB_3HRLY-025DEG_20160714'
- nvar = 2
- ntime = 8
- nlat = 480
- nlon = 1440
- data = binread(fn, [nvar*ntime,nlat,nlon], 'float', byteorder='big_endian')
- comb = data[::2,::-1,:]
- cpc = data[1::2,::-1,:]
- rain = cpc[2,:,:]
- lon = arange1(0.125, nlon, 0.25)
- lat = arange1(-59.875, nlat, 0.25)
- #Plot
- axesm()
- lworld = shaperead('D:/Temp/Map/country1.shp')
- lchina = shaperead('D:/Temp/Map/bou2_4p.shp')
- geoshow(lchina, edgecolor='k')
- geoshow(lworld, edgecolor='k')
- levs = [0.1,0.5,1,2,3,4,5,6,8,10,20,40]
- cols = makecolors(len(levs) + 1, cmap='BlAqGrYeOrReVi200')
- cols[0] = 'w'
- layer = imshowm(lon, lat, rain, levs, colors=cols)
- colorbar(layer, label='mm')
- title('Precipitation - CMORPH (2016-07-14 06:00)')
- #xlim(70, 140)
- #ylim(15, 55)
缩放到中国范围:
国内降水融合数据
- fn = 'D:/Temp/grads/SEVP_CLI_CHN_MERGE_CMP_PRE_HOUR_GRID_0.10-2016071406.grd'
- data = binread(fn, [2, 440, 700], 'float')
- crain = data[0,:,:]
- crain[crain==-999.0] = nan
- gsamp = data[1,:,:]
- x = arange1(70.05, 700, 0.1)
- y = arange1(15.05, 440, 0.1)
- axesm()
- lworld = shaperead('D:/Temp/map/country1.shp')
- lchina = shaperead('D:/Temp/map/bou2_4p.shp')
- geoshow(lworld, edgecolor='k')
- geoshow(lchina, edgecolor='k')
- levs = [0.1,0.5,1,2,3,4,5,6,8,10,20,40]
- cols = makecolors(len(levs) + 1, cmap='BlAqGrYeOrReVi200')
- cols[0] = 'w'
- layer = imshowm(x, y, crain, levs, colors=cols)
- #layer = imshowm(x, y, gsamp)
- title('Precipitation - CHN_MERGE (2016-07-14 06:00)')
- colorbar(layer, label='mm')
- xlim(70, 140)
- ylim(15, 55)
|
|