I need help in code ENSO
4 次查看(过去 30 天)
显示 更早的评论
Hi
I run this code but at final i recive in output NaN data?
the sstj.nc
clear
clc
sst = ncread('sstj.nc','sst');tt = double(ncread('sstj.nc','time'));
lats1 = double(ncread('sstj.nc','latitude'));lons1 = double(ncread('sstj.nc','longitude'));
[Lat,Lon] = meshgrid(lats1,lons1);
idx1 = enso(sst,tt,Lat,Lon);
idx2 = amo(sst,tt,Lat,Lon);
figure(1)
anomaly(tt,idx1,'thresh',[-0.4 0.4]);
axis tight
hline(0,'k') % places a horizontal line at 0
datetick('x','keeplimits')
ylabel 'Nino 3.4 SST anomaly (\circC)'
figure(2)
plot(tt,idx2)
ylabel 'AMO index'
what's the problem i attach data and code
best
Mahboub
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!