- 积分
- 1121
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-8-7
- 最后登录
- 1970-1-1
|
发表于 2015-12-7 15:29:11
|
显示全部楼层
fname='F:\matlab\SLA\ziliao\nrt_global_allsat_msla_h_20140411_20140417.nc'
ncload(fname);
lon=lon(307:381);%%%%105 125
lon=NbLongitudes(307:381);%102-126.6667
lat=NbLatitudes(456:530);%-0.7576-23.249
sla=Grid_0001(307:381,456:530);
sla(sla>=10000)=nan;
m_proj('lambert','lon',[102 127],'lat',[-1 24]);
m_contourf(lon,lat,sla',20);
hold on
hc=colorbar;
m_coast('patch',[0.6825 0.6825 0.6825],'edgecolor','b');
m_grid('box','fancy','tickdir','out');
这样运行之后为什么显示
Undefined function or variable 'NbLongitudes'.
Error in sla7 (line 8)
lon=NbLongitudes(307:381);%102-126.6667
求高人解答,我想画SLA的等值线图啊为什么老出错
改了上面换成这个还是出错
fname='F:\matlab\SLA\ziliao\nrt_global_allsat_msla_h_20140411_20140417.nc'
ncload(fname);
lon=ncread('F:\matlab\SLA\ziliao\nrt_global_allsat_msla_h_20140411_20140417.nc','lon');
lat=ncread('F:\matlab\SLA\ziliao\nrt_global_allsat_msla_h_20140411_20140417.nc','lat');
lat=lat(456:530);%%% 0 30
lon=lon(307:381);%%%%105 125
sla=Grid_0001(307:381,456:530);
sla(sla>=10000)=nan;
m_proj('lambert','lon',[102 127],'lat',[-1 24]);
m_contourf(lon,lat,sla',20);
hold on
hc=colorbar;
m_coast('patch',[0.6825 0.6825 0.6825],'edgecolor','b');
m_grid('box','fancy','tickdir','out');
错误提醒
Undefined function or variable 'Grid_0001'.
Error in sla7 (line 10)
sla=Grid_0001(307:381,456:530);
到底怎么改才好 |
|