- 积分
- 55950
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2017-9-6 15:02:27
|
显示全部楼层
这个数据是little_endian,参考下面的脚本:
- fn = 'D:/Temp/binary/CMORPH_V0.x_RAW_0.25deg-3HLY_20170610'
- ntime = 8
- nlat = 480
- nlon = 1440
- data = binread(fn, [ntime,nlat,nlon], 'float', byteorder='little_endian')
- rain = data[2,:,:]
- lon = arange1(0.125, nlon, 0.25)
- lat = arange1(-59.875, nlat, 0.25)
- #Plot
- axesm()
- geoshow('country', edgecolor='k')
- geoshow('cn_province', 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/3hr')
- title('Precipitation - CMORPH (2017-06-10 06:00)')
- #xlim(70, 140)
- #ylim(15, 55)
|
|