필터 지우기
필터 지우기

select a point from nc lat/lon grid and plot time series of sla

조회 수: 2 (최근 30일)
skanwal
skanwal 2018년 10월 19일
편집: skanwal 2018년 10월 19일
Hi I have sea level anomaly gridded data set for 12 months, one sla value per nc file per month. this data is in 60 by 60 by 12 double format meaning that 60 long by 60 lat grid has one value of sla for 12 months. I want to interactively select a point on the grid and then plot a time series of the mean sla vs time. I have written a code as follows but it does not work for sla due to different data type. It works well for the lat and lon fields which I have extracted but not for sla and gives me following error:Error using Plot, Data cannot have more than 2 dimensions.
if true
% Time Series Plots
figure(1)
subplot(3,1,1)
plot(dtime,lat,'.')
datetick('keeplimits');
ylabel('lat(N)')
subplot(3,1,2)
plot(dtime,lon,'.')
datetick('keeplimits');
ylabel('lon(N)')
% subplot(3,1,3)
% plot(dtime,sla_subset(1,1,:),'.')
% datetick('keeplimits');
% ylabel('normal data value for each month')
% xlabel 'month of year'
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by