필터 지우기
필터 지우기

I need help in code ENSO

조회 수: 1 (최근 30일)
Mahboubeh Molavi-Arabshahi
Mahboubeh Molavi-Arabshahi 2022년 11월 26일
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개)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by