|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
* g5 q$ r8 D! y
MetToolbox工具箱简介:
! j( }' V) t$ {5 c' h$ q5 a$ A# P
$ E+ F- N0 g% U/ n3 N1 风矢量图:
' n% D" ^ |, `! ?0 ]- f; S3 G3 k
clc;clear;close all0 K" U, F# F0 B. d# ]
[x,y] = meshgrid(70:10:140,15:10:55); g* ^7 X( _# @
u = cos(x).*y*10;
5 J$ r; S, d' jv = sin(x).*y*10;# S- i5 O9 E" o9 i
figure(1);
4 I' E; Z- a# o, D) F" h% % m_proj('Equidistant Cylindrical','long',[70 140],'lat',[15 55]);
1 P) g4 w: n3 {: c/ i% m_proj('lambert','lon',[70,140],'lat',[15,55]);
' k& ?! n' O* ]( ~4 n* @9 `# t% ma=shaperead('F:/RMeteoInfo/data/map/bou2_4l.shp');
& `* L3 r1 [9 K( d. M7 |% % m_line( [ma(:).X], [ma(:).Y],'color',[0.5,0.5,0.5]);%绘制范围内的地图" o" S, |. @5 r" Q2 D- R' H& Z. ~
% % m_line([ma(:).X],[ma(:).Y],'color','k');%绘制范围内的地图
: {5 i/ \0 \% y( {1 U7 c% m_plot([ma(:).X],[ma(:).Y],'color','k');%绘制范围内的地图
, z- l( [/ m' L4 k6 h' x% hold on
% r4 c0 e$ I! V/ C9 ph=quiver(x,y,u,v,0.5,'r-');
g/ }; L: y( ^: I- \( khl=quiverlegend(h,10);
O1 X6 P; z j5 G$ m) z%设置x轴范围和刻度
7 P. ~' ?0 \ P5 Dset(gca,'XLim',[70 140]);%X轴的数据显示范围
, f- m) `# y8 M# c% f1 U4 G4 _& Gset(gca,'XTick',[70:10:140]);%设置要显示坐标刻度" I, N, K2 f/ V
set(gca,'XTickLabel',[70:10:140]);%给坐标加标签
H1 D4 _) b8 i& w2 h& _ c$ s/ W%设置y轴范围和刻度; ^! s9 J; M; F: H, V) ^4 t8 g9 R# _& e
set(gca,'YLim',[15 55]);%X轴的数据显示范围
+ {" ~# C4 Z& Z ]' _$ y, Cset(gca,'YTick',[15:10:55]);%设置要显示坐标刻度% K( V! [3 C9 R$ ?
set(gca,'YTickLabel',[15:10:55]);%给坐标加标签: d- }+ j! @ I3 D
# e) S2 j- W* Q: f4 N, D% G9 i
$ f* ~5 W6 ]9 `9 D! D
& U0 C' R; t0 j' l. U9 E' y7 N" K6 ~# I. O& u
( s5 a2 s0 `+ q5 e* i' E) y
2 高版本m_map工具箱指南针&比例尺:* o" l, H$ z( g. L9 S7 R2 @
& N& q D+ c- p9 }+ L- N, f- uclc;clear;close all# A; B3 q$ [# q
m_proj('miller','lat',[-77 77]); ( }- w; `' V% y- B: ?3 M) t
m_coast('patch',[.7 1 .7],'edgecolor','none');
7 a. i4 ~4 z' P4 E$ U5 I+ Mm_grid('box','fancy','linestyle','-','gridcolor','w','backcolor',[.2 .65 1]);. i& z/ T2 G5 @3 p* j2 N
m_ruler([.4 .9],.3,'tickdir','out','ticklen',[.007 .007]);% l I# C) v2 g- Z- e( U2 E2 {
% 需要更新m_map- x7 a; v- [; y/ E$ ?
% m_northarrow(76,48,0.8,'type',4,'aspect',1.5);
% U% l( \; t- }* z. v5 G3 \m_northarrow(-125.4,49.7,.2,'type',2);9 [ [3 p! v6 W/ R& V
% northarrow(76,48,0.8,'type',4,'aspect',1.5);
3 h) {! N: ^& T5 Ktitle('Great Circle Routes','fontsize',14,'fontweight','bold');% V2 u! r' ]3 N2 C4 c4 v% U
set(gcf,'color','w'); % Need to do this otherwise 'print' turns the lakes black
- U! s8 N+ d. b& q( v) `, E3 z, s5 N# Y3 T- E; H; F
' \! j* H& q% ]1 F, G7 G
9 A A; ^- {, B2 \- m
0 O& M: \7 i9 a: E' n
* l4 \4 O* ^2 X, }3 利用Map Toolbox不同投影全球地形的绘制) `" G( Z1 l" Y2 ?; ?
$ I1 `: ~0 @7 w: X! {
clc;clear;close all6 O) o5 m% T8 k, V$ [
load etopo; d9 q' ~# {3 H2 e
load topo
6 Z9 P# n! H. \6 c8 Rfigure(1);
k2 r6 \3 R. @* T% sctopo=topo(90:160,50:160);3 E0 n0 e4 Z: ]; |3 E# ?& _9 L( q
clegend=[1 70 50];& z( h/ }% T8 e( c# t0 L; M
worldmap(topo,topolegend);
) e5 y. e* y. b- ymeshm(topo,topolegend);. o2 `/ f5 q2 H# C0 Q# s" Q
dEMCmap(topo)
8 X, _. ?! M% K, L9 [3 Vaxis off( L3 t0 d# x8 K' s, @; d4 w2 v
setm(gca,'Origin',[0 105 0])
- q" N4 x5 k9 n1 Xptopo = topo; ptopo(topo<0) = 0;
) u* D+ ^* f! i: c K/ X& p; \# ~5 fptopo = 100*ptopo/(6371*1000);3 k# T) ]% f/ c* w6 E* w
figure(2);" a$ Z7 u. A! E# ?, e. P f
axesm('MapProjection','ortho','Origin',[0 0 15])
* L! j# m; F; l% {1 Z5 Kmeshm(topo,topolegend,size(topo),topo/10000);
Z0 F: Y6 d" X- Y3 D& L# F9 \" tshading interp
# b0 `2 l2 y _2 A3 ademcmap(topo)
7 k6 }0 k7 W9 _" j9 o# glightm(23.5,80,'Color',[1 1 0.2])
% _9 H/ a( n* a6 G, |% @material([.6 0.8 0]);( F/ n5 u6 u% z/ W
lighting phong
3 E u( g4 y' Q- {axis off3 g5 g& |9 W- e# C8 v- D" i1 @ X1 i& t
daspectm('km',20000)5 p1 n0 ^' j& f- b
figure(3);
& E# z+ f2 t6 }$ p7 T7 d8 B6 Qaxesm('MapProjection','globe','Origin',[0 105 0])
6 s$ G7 q) e- O* C- V. w7 r0 s1 N: dmeshm(topo,topolegend,size(topo),topo/100000); n2 O W ~4 e- c
shading interp
8 L0 D3 t' w7 N7 F' g% [lat,lon]=meshgrat(topo,topolegend);
1 f4 Y& W9 c; h3 ?7 L' e$ }% suRFm(lat,lon,topo,ptopo)
1 w3 o# |# C- F: d. I) ddemcmap(topo)
' j8 `( `0 N" C& [1 ]- [lightm(23.5,20,'Color','y')
" {# }% M1 F" ~material([.6 1 0]);
$ d/ g) C ~1 }- V0 D, wlighting phong
/ u) O: j( {$ H; q: ~axis off! Z4 `% S0 {3 x2 ?4 |
view([200 0])
' t3 j) R# P: F; A, T4 W+ q' Y2 Az=topo;# O: p L2 m6 m& p( n5 m- v) i
figure(4);! {( |3 x. f: `3 Y( E9 L+ G' S
surf(z)* }- p P( I) d# U/ W; C
shading interp
b& D) U" q% W9 w" G6 r1 |2 }demcmap(z)" t; V' ~; }; D! B3 [& W, h
view([0 90])
# |. |* o4 s l- S4 `axis off, F+ ]# y7 g. m+ L5 {% ~ c& _- I
light('position',[1 180 1000],'color','w')2 d0 ?: v- ?" n6 u& Q
material([0.6 1 0]);
8 }' i+ G* q1 h3 r( L- @' M5 xlighting phong
* N7 V* m* T% m. f9 V, b0 Z& _$ F- Z7 b0 i q- R! {, g
; G8 H2 c$ K& S; |% a |8 `: f
- ^1 s9 J! t4 d7 i' `) h5 l
) n4 P" f' ^0 s% A7 Q& M7 a, f* z: ^) K- c! I P
4 利用uniteprv合并东北三省与内蒙四个区域: x) c5 S( @$ J3 K6 q2 E
% L* }$ n" R2 n+ Dclc;clear;close all" r/ a ^% n- ~$ G! ]# c
load prvpatch;
( Q4 c1 q" h/ u5 d Sfigure
& E, [2 {2 o- H; R/ T8 |: Ihold on
`; ~3 e8 t) Z' r- ^( l* ?wnprv={'内蒙','黑龙江','吉林','辽宁'};
9 n- D8 j4 s$ J6 w/ {& J( Snw=1;
- D. e% O) Y4 i& c; gfor i=1:38
% ]6 ^" q/ m: `9 T$ O( x if any(cellfun(@(x) ~isempty(strmatch(x,s(i).tag)),wnprv))
* U& G0 f0 R8 F# D; o disp([nw i])
% c# O: [7 q/ ?& c' \ if nw==18 ^+ a1 p( O* c; v) F
long=s(i).long;
}; f4 j. T& ? lat=s(i).lat;
( ]2 M0 g1 P8 K+ i- c) x: A% R- B5 _ else
3 L. q/ s w4 h+ Y+ }! [9 e [long lat]=uniteprv(long,lat,s(i).long,s(i).lat);3 V& c8 G$ e0 |6 T- O" u; \
end
) N8 ? @2 e) j1 R6 x8 X nw=nw+1;
* w. V2 G7 a; H$ [ end & B) _& Y0 l% S1 G+ s
plot(s(i).long,s(i).lat)
' ~6 B8 c; \, l. A9 b0 @# rend
5 I( a0 H! `: Y2 f* X1 I) H; ?9 S% [long lat]=pactpt(long,lat,0.1);9 v9 h2 S4 c' H X
patch(long,lat,'m');& r+ U0 a' U8 x9 E3 C6 `
mapnorm;/ L/ i( s( F+ U- n. W
' a* T0 X/ ]3 E+ T6 G# ^% P
9 S6 z$ f* G6 {0 {3 |$ V
4 C! m% y# D" M6 x7 Z1 x! d, A
; N: a) t4 C. J" [
: x8 A3 D6 y/ w/ l6 s5 w3 N
5 填充带条纹的等值线- a2 I: V+ D% W
+ B. J; m) w" b3 d3 n, [* jclc;clear;close all
4 P t" t( _8 [, dz=peaks;) s& @/ c8 D1 b' w+ W
x=1:size(z,2);
# E2 W% R5 x4 ]/ vy=1:size(z,1);4 t, _! m) [" r0 Q+ ^) ?
cv=-8:2:8;- b! e& v+ d8 G" [6 U
cmap=cusjet(10);
7 m% z( L F7 V* \, Kifirst=0;% D+ W, s# T; k
ndelta=1;' c, c6 [* T4 X9 n/ q( h% H
iswbg=true;. K @3 w) S( m. q7 ]
bardir='horiz';
/ X+ [. ^- i: n: N$ d7 E% csty={'r.-',linewidth,markersize,linecolor,markeredgecolor,markerfacecolor};
4 @ f+ r% _$ B9 H: w x C% tex={ctex,nnl,ldir,csty}
/ L4 n2 X. r$ P) v1 v% hcsty={'r.-'};
3 P E+ v+ o! p) W3 ktex={-4,[100 80],1,{'r:'}; 2,[100 80],3,{'b-'}};
! H5 y0 H( v. @6 z) v8 d, q1 g1 tfigure
# O+ h) Y' ^$ n3 e[C,h,hb]=freecontourf2(x,y,z,cv,cmap,ifirst,ndelta,iswbg,bardir,tex);
7 W( V2 U! d3 t1 N2 `) |: @
) f5 I* C: B! l' ]: y8 `- ~
; I9 N8 v X) ]& I+ e) b, Z p
' k# w5 ?5 f, o7 c+ g; }3 e y/ `
: J+ d r& v/ ?, C+ a% T
# l+ h) v7 d& s2 z6 空间插值&白化
* u w! L4 |' T! h+ c1 k1 W# M( J7 s7 h# K4 V5 u4 n
clc;clear;close all* C/ @, T$ K- j' z1 Z# ^
load('mdata/chnmon756.mat');4 a0 d& O4 w0 U! D$ d
idate=find(stat.date>=19881200&stat.date<=19981100);
4 Z4 m$ j+ p; c b9 L/ P7 i( Fx=stat.long;
0 g! U, {: W1 \5 ]: C( G$ F- F; Ky=stat.lat;0 G7 a& n h' }$ t$ b' K
z=stat.prec(idate,:);! {4 b o; r" J0 g1 t* U' @7 I1 U
z=mean(z)';%mm/day+ P2 v' Q! n9 \$ ~; l8 J
lo=[72:1:137];: a- D! q: p3 E0 D3 Z6 A0 f
la=[15:1:55];! n* [5 j# c# B2 g
[clo,cla]=chngon('g');
, O5 k# w4 k" r+ l# o: I# q3 o3 z[lo2 la2]=meshgrid(lo,la);
' d* k% Q5 m& g( Din=inpolygon(lo2,la2,clo,cla);; u2 G, |/ Q( e0 w% L
cv=[0.1 1:5];
w. p; h% p0 D/ k' i1 d& k% cv=[0:5];
, r8 m5 s/ P' c; T* W+ ~' R$ ]% cmap=nclcmap(142,numel(cv)+1);) {4 k5 F) F/ @3 G4 y- k3 T9 W' b
load('colorbar-mat/rainbow.mat');
# K9 k+ ?0 t. W! c& N c3 N& rcmap=rainbow;$ g. K: W5 C6 P- Q* w/ y
zi=cus_griddata(x,y,z,lo,la,'v4');
; K# n: H& ~6 s" R5 C7 P1 ^figure
& D/ p$ d9 Z$ F, \4 w+ W" khold on: w# `7 _: x2 Y% ^& q& W( {/ Z
% [C,h,hb]=freecontourf(lo,la,zi,cv,cmap,true);
9 c+ a) O+ Y$ O* d[C,h,hb]=freecontourf(lo,la,zi,cv);4 @" z6 K! @1 Y! {8 n/ |
set(h,'edgecolor','none')
4 b) i& D) H* s6 g+ j; n* f1 Bset(h,'linew',2)4 ^4 }9 X/ f+ Y3 a6 M7 Q* f
chnmask2(lo,la,'g')
* t O- B7 J; u5 khc=mapnorm(lo([1 end]),la([1 end]),false,false,true,true,true,0,[10 5],1,'g',2);# c# V' y* S! x' O; t% U% L [
grid off- e$ q1 d7 `+ C, Q8 C
set(gcf,'pos',[89 200 520 445])
) e' a( f/ M: _* R, p& a/ k1 o- hset(gca,'pos',[0.0913 0.1504 0.8747 0.7730]);8 ]% b! `/ T4 p0 W& f% t$ ~
ssaxes(4,0.14,[3 4 1.6 1.1 1.35 0.98],'nanhai2',2);; K: f7 S, z3 l- Q# F/ i
set(gca,'linew',2);
6 s7 O& h4 I3 w4 k! Aset(gca,'fontsize',14)
4 h; ?0 F+ ]+ u* f. r8 R
+ R D( H ^8 c! I% j
: m8 }# V5 U x7 ^ Y. U
9 K5 b0 n- J7 d- ^
* U# I0 u0 Z+ H" f, `" _, a4 m
; a0 c% ~" |3 s. g$ J
7 WRF模拟嵌套区域绘制
, B q6 m4 X" M9 B0 v7 W
0 a! q, I( V5 N8 \6 uclc;clear;close all
# j. x( M) ^3 d! hsi=[1, 107, 94, 47];
( V3 r. w' q( m" ]) Y: H) wsj=[1, 47, 37, 122];
1 C+ c8 B# T; e1 r; h5 S4 Gnx=[179 169 151 145]; %nested grid number should be 3n+1
9 Y( V" N! r+ `+ x, Ony=[161 199 157 151]; E) H4 V. `1 x( a _" {
dxy=[30000 10000 3333.33 3333.33];4 s, S5 m! `" G: X% Z( r
grat=[1 1/3 1/3 1/3];
: k! O$ z x# Q- a/ e9 Vpid=[1 1 2 2];+ s1 x* s: ]4 U, p4 M1 }. \+ i h- ^
% param=[nx(1) ny(1) 100 35 30 60 36000];( O% I3 u. J) P! E; Q2 w
% param=[nx(1) ny(1) 105 35 (nx(1)+1)/2 (ny(1)+1)/2 30 60 115 dxy([1 1])];
6 l J) {; ~! cparam=[nx(1) ny(1) 102 36.5 (nx(1)+1)/2 (ny(1)+1)/2 30 60 102 dxy([1 1])];
$ `9 {! X* U1 Q7 k! o/ L; f) ~[x y]=wrf_nestxy(si,sj,nx,ny,grat,pid);! X1 \5 v0 M1 Q, ~5 T
nb=10;
' F; Y- q- B3 w, k& tnbb=nb*[1 1/3];
, m3 s+ ^/ Z$ \& `6 u* b- wfigure,hold on9 j0 d( z0 J) o# l
maplam(param,false,false,true,true,true,0,[10 5],3,'h',2,':');
3 C: }3 A9 n# Q0 pfor i=2:length(pid)) J; Y# B0 x2 r R# I
[xx yy]=meshgrid(x{i},y{i});- G2 }8 M: c3 B+ t
xx2=[xx(1,:) xx(:,end)' xx(end,end:-1:1) xx(end:-1:1,1)'];
! N1 F0 S1 b) C yy2=[yy(1,:) yy(:,end)' yy(end,end:-1:1) yy(end:-1:1,1)'];
/ k* y' k2 h" K; O' q! S plot(xx2,yy2,'m','linew',2)
& G- V& Z( ^2 Q4 h1 F3 Wend
' B. b* v5 M& F! B. t[xx yy]=meshgrid(x{1},y{1});
. N# Q3 {2 c: H1 w0 x5 b$ G7 Bxx2=[xx(1,1)+nbb(1) xx(1,end)'-nbb(1) xx(1,end)-nbb(1) xx(1,1)+nbb(1) xx(1,1)+nbb(1)];* Z$ \) u' I) f3 u7 Y+ k! b
yy2=[yy(1,1)+nbb(1) yy(1,1)'+nbb(1) yy(end,1)-nbb(1) yy(end,1)-nbb(1) yy(1,1)+nbb(1)];- {' }0 B" h8 k5 o; R' {5 i
plot(xx2,yy2,'b','linew',2)
+ V0 M6 Z9 ~/ [8 S( @( O8 iload prvpatch
/ k, [2 `/ z0 Y# c! s: |[clong clat]=polyjoin({s(1:34).long},{s(1:34).lat});
% Y3 L! {( O" p% C8 G8 Q[cx cy]=deg2grd(clong,clat,param);
/ |- n1 G; ]- r8 Gplot(cx,cy,'k')& k3 u. j+ I+ Y- H; T
; F2 }- ?& e% e& n2 p' y
9 F* H6 ~/ S2 p1 x# s- R
# c8 q8 B8 X! x4 t
9 x% b: f+ l/ U5 \1 p1 K. k' N8 k
. U& w- Q: ?9 T
8 Analysis of power spectrum% R: V! i6 \' y7 y/ E; @
, U. z3 v4 @' F
clc;clear;close all, F% v2 k* L/ g5 [; ]
% Analysis of power spectrum0 `& _- K4 ~0 D7 y# [" B
% load enso_sst.mat
4 ]6 C0 ?6 e( a4 ?$ G0 D Qzsim=xlsread('data2.xlsx');8 N p; T, z# W# N
zi=zsim(:,1);
6 L) d( n; h& m- e( [zi=zi-mean(zi); % must remove mean.: {, M g5 {+ u }1 R, ?" D9 F
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
" k8 @- ~; G' O% s6 u: \%fft- V+ i6 ], K- |* I, z
Fs = 1; % Sampling frequency
/ }* E- I$ I% L( B$ e8 RT = 1/Fs; % Sample time
1 k' v4 z0 [! ~$ [- ~! E! wL = length(zi); % Length of signal; u' @+ F3 R/ I. D
t = (0:L-1)*T; % Time vector
$ M# P( J8 n0 @" G' b7 d9 py=zi;
5 S' d- [ J6 t' E( X: q0 Ffigure,hold on. I4 v, o, b. {& Z2 v
% NFFT = 2^nextpow2(L); % Next power of 2 from length of y+ z P9 a; _ l! G+ g( ?- T
NFFT = L; % Next power of 2 from length of y
6 B c0 |: X+ e+ S& @Y = fft(y,NFFT);/ B5 j- d( u0 m) V0 Z
P=Y.*conj(Y)/NFFT; %power spectrum density L) T4 o; ~* c3 ]* D
P=smooth(P,7);' y+ R2 U' P1 q/ A* k
f=Fs/2*(0:NFFT/2-1)/(NFFT/2);2 r0 j9 x; C$ O
P=P(1:NFFT/2);
2 t5 J! w9 u) ~. u8 X5 s2 s; t5 ddf=1/NFFT;. y) ` R6 W; k
svar=(P(1)+P(end))*df/2+sum(P(2:end-1))*df;
' @3 m- G2 H& `svar0=var(y);
6 m+ s |6 `. }& Q" FP=P/svar*svar0;
" a7 i) s6 H7 v. k/ G% Plot single-sided amplitude spectrum., L( u7 g2 S/ S2 ?
plot(f,P,'r')
4 `* k! \$ g) N0 K& {4 o! k& T7 _title('Single-Sided Amplitude Spectrum of y(t)'), A* X% N& N; t( Q( s- v
xlabel('Frequency (cycles/year)')
( a! J2 r1 o7 a* y! m; cylabel('Variance')
# M" s G( P2 q* k! s& [9 C/ v& H3 b- X9 [
7 o0 F; ?) B: v. W% v$ i/ T1 P
1 {9 T3 P' u7 u& F* i
a9 B* M" O- \& B. z5 k
7 l. v: i1 r8 L$ e1 Z( F9 Taylor图
3 Z; c- \6 {' L! D% i1 r, ]4 S0 C& a. T# S5 P
clc;clear;close all
% |1 p. Q. \/ E3 [- R Lzsim=xlsread('data2.xlsx');
; ?2 j& m& T/ e' Z% Example for ploting taylor diagram
; {+ X0 E. ~( V/ v5 H8 y1 Tlss={ 'o','v','s','^','p','o','v','s','^','p','o','v','s','^','p','o','v','s','^','p','o'};
/ v. F- u$ E+ olcc=[1.0000 0 0* V, g8 z8 U( G
0 0.8000 04 O9 H$ K% y) S2 h# T' F9 F& n6 z
1.0000 0 0
" s+ L6 Y! N( e* U# e8 n8 n1 Q 0 0.9000 0.9000! x5 W2 d" k8 L" g2 T! @# H6 j
1.0000 0 1.00007 B C' E; G k0 p$ ^
1.0000 0.8000 0
A9 d5 T# n4 y M* @7 ^ 1.0000 0 0
# k6 V- L+ n2 _( |6 A- N0 ] 0 0.8000 0
( k0 \9 f5 k, i; ]( P( }4 N 0 0 1.0000
7 N2 D, p! {6 r9 h9 W; `/ l 0 0.9000 0.9000
& v3 ^" Q- L% x& J3 }0 {. w 1.0000 0 1.0000" B! |# |9 w9 V# G7 {7 B. R
1.0000 0.8000 0
: A2 {# ?# j r! i* K 0 0 1.0000
$ W2 g! J7 x4 |% H6 @ 0 0.8000 0% k: @. S3 N+ K: `' L) r. d4 @/ _
0 0 1.0000# u+ O+ S& j7 l* ]* X W/ Z8 c
0 0.9000 0.9000
+ M7 t, g3 m/ V4 F, l6 S$ B 1.0000 0 1.00001 ?. g' x4 v" N8 K5 S& _+ L
1.0000 0.8000 0
7 ^1 v. Z% ?! b0 l' F 1.0000 0 00 |, X8 n- y+ x& `: U/ m0 i
0 0.8000 0
: E3 w- I, J' W1 y, q 0 0 1.0000];
6 z' H) t) Z/ d% n. ?' f% J( Xzobs=zsim(:,1);, l' U. B1 S h6 u
zsim=zsim(:,1:end);
% n! O$ e# p& ?, bstag=cellstr(num2str((1:size(zsim,2))'));) W" S% Q& j8 m# P4 e) y& x! U6 \
stdd=std(zsim)/std(zobs);
0 D6 X @! f. y- m1 pccorr=corr(zobs,zsim);' t8 K' K. M. d u1 \
z1=zobs-mean(zobs);
5 ?" y6 |7 D% i* Y4 s' {+ l/ `, n; Xz2=zsim-mean(zsim);
$ q, F* {6 [. {* V" H$ z, D! D3 Armse=rms(z2-z1)/std(zobs);
: ^2 K8 i) r! z5 [rmse2=sqrt(stdd.*stdd-2*stdd.*ccorr+1);2 U' M- G) w' _& x, \
[hp,hp_std,hp_rmse,ht_corr,ht_rmse,hl]=TaylorDiag(zobs,zsim,lcc,lss,stag);2 I z! ?/ B5 B! Z. Q) l& S! i
set(hp,'markersize',8);4 o6 N1 q" H7 w- n, M" N
set(ht_rmse,'color','k');
3 H: I \) T5 w. h' h7 u8 O. e
. Y, Z4 C7 p: a. o$ @8 Q H
8 l+ y5 _. F; h4 r" N$ v* h- W* Z
* z) V- A9 X4 t5 s
6 B h9 ^/ J+ A% _* R, _% v* x0 x
|
|