- 积分
- 55950
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
用surf函数,facecolor='texturemap' ,结合 cdata 数据参数可以快速绘制3维坐标系中的2维曲面图。
- f = addfile('D:/Temp/satellite/calipso/CAL_LID_L2_05kmAPro-Standard-V4-20.2006-09-01T08-55-57ZD_Subset.hdf')
- EC = f['Extinction_Coefficient_532'][:]
- EC = EC.T
- EC[EC==nan] = -1
- Lat = f['Latitude'][:,0]
- Lon = f['Longitude'][:,0]
- alt1 = arange(-0.5,20.08,0.06).tolist()
- alt2 = arange1(20.2,56,0.18).tolist()
- alt = array(alt1 + alt2)
- Lon = Lon[np.newaxis,:]
- Lon = Lon.repeat(len(alt),0)
- Lat = Lat[np.newaxis,:]
- Lat = Lat.repeat(len(alt),0)
- alt = alt[:,np.newaxis]
- alt = alt.repeat(Lon.shape[1],1)
- fn = os.path.join(migl.get_map_folder(), 'world.topo.bathy.jpg')
- land = georead(fn)
- #plot
- levs = arange(0,0.41,0.01)
- cols = makecolors(len(levs)+1, cmap='rainbow')
- cols[0] = miutil.getcolor(cols[0], alpha=0.5)
- ax = axes3d()
- grid(False)
- #lighting()
- geoshow(land)
- surf(Lon[::10,::10], Lat[::10,::10], alt[::10,::10], levs, colors=cols,
- facecolor='texturemap', cdata=EC, edgecolor=None)
- colorbar(aspect=30, ticks=[0,0.1,0.2,0.3,0.4,0.5])
- zlim(0,8)
- xlim(-100,140)
- ylim(-90,90)
- xlabel('Longitue')
- ylabel('Latitude')
- zlabel('Height (km)')
|
评分
-
查看全部评分
|