- 积分
- 56367
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1

|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
生成 x, y, z 格点数据坐标,利用 get_grid_3d_data 函数将多层扫描的雷达基数据插值为三维格点数据,然后利用volumplot函数进行三维体绘制。
 - import time
- st = time.clock()
- fn = r'D:\Temp\binary\radar\Z_RADR_I_Z9898_20190828181529_O_DOR_SAD_CAP_FMT.bin'
- f = addfile(fn)
- slat = f.attrvalue('StationLatitude')[0]
- slon = f.attrvalue('StationLongitude')[0]
- h = f.attrvalue('AntennaHeight')[0]
- x = arange(-200000, 200001, 1000)
- y = arange(-200000, 200001, 1000)
- z = arange(1000, 20001, 500)
- #Get 3d grid data
- data = f.get_grid_3d_data('dBZ', x, y, z, h)
- #Set azimuth equidistant projection
- proj = projinfo(proj='aeqd', lon_0=slon, lat_0=slat)
- # Plot test
- axes3d(projection=proj, orthographic=False, aspect='xy_equal', facecolor='k',
- fgcolor='w', axis=True, clip_plane=False)
- geoshow('world_topo.jpg')
- geoshow('cn_province')
- volumeplot(x, y, z, data, vmin=0, vmax=60, cmap='NCV_bright')
- colorbar(shrink=0.8, tickcolor='w')
- xlim(x[0], x[-1])
- ylim(y[0], y[-1])
- zlim(0, z[-1])
- xlabel('Longitude')
- ylabel('Latitude')
- zlabel('Height (m)')
- et = time.clock()
- print('Running time: {} Seconds'.format(et-st))
|
|