- 积分
- 6155
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-9-11
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2020-6-16 16:06:53
|
显示全部楼层
%%海拔依赖性
clc;
clear all;
A=xlsread('/home/syrus/桌面/ERA5-sd.xlsx','slope');
A=A(:,3:6);
S0=find(A(:,1)<2000);
C=A(S0,:);
a0=mean(C);
S1=find(A(:,1)>=2000&A(:,1)<2200);
C=A(S1,:);
a1=mean(C);
S2=find(A(:,1)>=2200&A(:,1)<2400);
C=A(S2,:);
a2=mean(C);
S3=find(A(:,1)>=2400&A(:,1)<2600);
C=A(S3,:);
a3=mean(C);
S4=find(A(:,1)>=2600&A(:,1)<2800);
C=A(S4,:);
a4=mean(C);
S5=find(A(:,1)>=2800&A(:,1)<3000);
C=A(S5,:);
a5=mean(C);
S6=find(A(:,1)>=3000&A(:,1)<3200);
C=A(S6,:);
a6=mean(C);
S7=find(A(:,1)>=3200&A(:,1)<3400);
C=A(S7,:);
a7=mean(C);
S8=find(A(:,1)>=3400&A(:,1)<3600);
C=A(S8,:);
a8=mean(C);
S9=find(A(:,1)>=3600&A(:,1)<3800);
C=A(S9,:);
a9=mean(C);
S10=find(A(:,1)>=3800&A(:,1)<4000);
C=A(S10,:);
a10=mean(C);
S11=find(A(:,1)>=4000&A(:,1)<4200);
C=A(S11,:);
a11=mean(C);
S12=find(A(:,1)>=4200&A(:,1)<4400);
C=A(S12,:);
a12=mean(C);
S13=find(A(:,1)>=4400&A(:,1)<4600);
C=A(S13,:);
a13=mean(C);
S14=find(A(:,1)>=4600&A(:,1)<4800);
C=A(S14,:);
a14=mean(C);
S15=find(A(:,1)>=4800&A(:,1)<5000);
C=A(S15,:);
a15=mean(C);
S16=find(A(:,1)>=5000&A(:,1)<5200);
C=A(S16,:);
a16=mean(C);
S17=find(A(:,1)>=5200&A(:,1)<5400);
C=A(S17,:);
a17=mean(C);
% S18=find(A(:,1)>=5400&A(:,1)<5600);
% C=A(S18,:);
% a18=mean(C);
S18=find(A(:,1)>=5400);
C=A(S18,:);
a18=mean(C);
W=[a0
a1
a2
a3
a4
a5
a6
a7
a8
a9
a10
a11
a12
a13
a14
a15
a16
a17
a18
]; |
|