- 积分
- 1473
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-10-28
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
为啥colormap('cool')上不了色?
程序:
lat= ncread('vwnd.mon.mean.nc','lat');
lon= ncread('vwnd.mon.mean.nc','lon');
v= ncread('vwnd.mon.mean.nc','vwnd');
u1= ncread('uwnd.mon.mean.nc','uwnd');
m_proj('Equidistant cylindrical','lat',[-20,50],'lon',[0,290]);
hold on;
[x,y] = meshgrid(lon,lat);
v1 = v(:,:,5,300);
u2 = u1(:,:,5,300);
u2(u2==-9999) = nan;
u3 = u2.*cosd(y');
v1(v1==-9999) = nan;
d = 2 ;dd = 2;
uv = sqrt(u3.^2+v1.^2);
shading interp;
colormap('cool');
hold on;
m_coast('linewidth',1.15,'color','k');
m_grid('box','off','xtick',10,'linestyle','none');
hold on;
m_quiver(x(1:d:end,1:d:end),y(1:d:end,1:d:end),u3(1:d:end,1:d:end)'./dd,v1(1:d:end,1:d:end)'./dd,1);
m_legendvc([0.15 0.63 0.095 0.09],x(1:d:end,1:d:end),y(1:d:end,1:d:end),u3(1:d:end,1:d:end)'./dd,v1(1:d:end,1:d:end)'./dd,1,20 );
|
-
风场加色
|