1 | pro coare_validation_net_1992_93_all_v10 |
---|
2 | @common |
---|
3 | ;------------------------------------------------------------ |
---|
4 | reinitplt, /z,/invert |
---|
5 | key_portrait = 1 |
---|
6 | coefpalit=.9 |
---|
7 | |
---|
8 | openps, FILENAME = 'idl.ps' |
---|
9 | ;------------------------------------------------------------ |
---|
10 | ; partie a changer |
---|
11 | ;------------------------------------------------------------ |
---|
12 | |
---|
13 | box=[155.5, 156.5, -2, -1] |
---|
14 | |
---|
15 | ;; first leg |
---|
16 | ;; start data - 11/11/92 and end date 03/12/92 |
---|
17 | fi="/Users/pkb/data/Mooring_data/COARE/met_data_coare_expt_1992_p1.txt" |
---|
18 | res=read_ascii(fi,data_start=1) |
---|
19 | ff=res.field1 |
---|
20 | date=reform(ff(0,*)) |
---|
21 | sw92_1=reform(ff(7,*))/0.93 |
---|
22 | lw92_1=reform(ff(8,*)) |
---|
23 | lh92_1=reform(ff(5,*)) |
---|
24 | sh92_1=reform(ff(6,*)) |
---|
25 | |
---|
26 | net1=sw92_1+lw92_1+lh92_1+sh92_1 |
---|
27 | |
---|
28 | st1=921111 & en1=921203 |
---|
29 | |
---|
30 | ;; second leg |
---|
31 | |
---|
32 | fi="/Users/pkb/data/Mooring_data/COARE/met_data_coare_expt_1992_p2.txt" |
---|
33 | res=read_ascii(fi,data_start=1) |
---|
34 | ff=res.field1 |
---|
35 | sw92_2=reform(ff(7,*))/0.93 |
---|
36 | lw92_2=reform(ff(8,*)) |
---|
37 | lh92_2=reform(ff(5,*)) |
---|
38 | sh92_2=reform(ff(6,*)) |
---|
39 | |
---|
40 | net2=sw92_2+lw92_2+lh92_2+sh92_2 |
---|
41 | |
---|
42 | ;; start data - 17/12/92 and end date 31/12/92 |
---|
43 | st2=19921217 & en2=19921231 |
---|
44 | |
---|
45 | ;; third leg |
---|
46 | |
---|
47 | fi="/Users/pkb/data/Mooring_data/COARE/met_data_coare_expt_1993_p1.txt" |
---|
48 | res=read_ascii(fi,data_start=1) |
---|
49 | ff=res.field1 |
---|
50 | sw93_1=reform(ff(7,*))/0.93 |
---|
51 | lw93_1=reform(ff(8,*)) |
---|
52 | lh93_1=reform(ff(5,*)) |
---|
53 | sh93_1=reform(ff(6,*)) |
---|
54 | |
---|
55 | net3=sw93_1+lw93_1+lh93_1+sh93_1 |
---|
56 | |
---|
57 | ;; start data - 01/01/93 and end date 11/01/93 |
---|
58 | st3=19930101 & en3=19930111 |
---|
59 | |
---|
60 | ;; fourth leg |
---|
61 | |
---|
62 | fi="/Users/pkb/data/Mooring_data/COARE/met_data_coare_expt_1993_p2.txt" |
---|
63 | res=read_ascii(fi,data_start=1) |
---|
64 | ff=res.field1 |
---|
65 | sw93_2=reform(ff(7,*)) |
---|
66 | lw93_2=reform(ff(8,*)) |
---|
67 | lh93_2=reform(ff(5,*)) |
---|
68 | sh93_2=reform(ff(6,*)) |
---|
69 | |
---|
70 | net4=sw93_2+lw93_2+lh93_2+sh93_2 |
---|
71 | |
---|
72 | ;; start data - 28/01/93 and end date 16/02/93 |
---|
73 | st4=19930128 & en4=19930216 |
---|
74 | |
---|
75 | net=[net1, net2, net3, net4] |
---|
76 | help, net |
---|
77 | |
---|
78 | ;; reading other data sets |
---|
79 | |
---|
80 | st1=19921111 & en1=19921203 |
---|
81 | st2=19921217 & en2=19921231 |
---|
82 | st3=19930101 & en3=19930111 |
---|
83 | st4=19930128 & en4=19930216 |
---|
84 | |
---|
85 | ;file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_swr_19890101_20091231_oafluxgrid.nc' |
---|
86 | file="/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc" |
---|
87 | initncdf, file |
---|
88 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1) |
---|
89 | swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2) |
---|
90 | swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy", box=box,/nan) & swr3=reform(swr3) |
---|
91 | swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy", box=box,/nan) & swr4=reform(swr4) |
---|
92 | |
---|
93 | file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc' |
---|
94 | initncdf, file |
---|
95 | lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1) |
---|
96 | lwr2=read_ncdf('lwr',st2-1,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2) |
---|
97 | lwr3=read_ncdf('lwr',st3-1,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) & lwr3=reform(lwr3) |
---|
98 | lwr4=read_ncdf('lwr',st4-1,en4,file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy", box=box,/nan) & lwr4=reform(lwr4) |
---|
99 | |
---|
100 | file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc' |
---|
101 | initncdf, file |
---|
102 | lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) |
---|
103 | lhf2=-1*read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2) |
---|
104 | lhf3=-1*read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) & lhf3=reform(lhf3) |
---|
105 | lhf4=-1*read_ncdf('lhf',st4,en4,file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy", box=box,/nan) & lhf4=reform(lhf4) |
---|
106 | |
---|
107 | file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc' |
---|
108 | initncdf, file |
---|
109 | shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1) |
---|
110 | shf2=-1*read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2) |
---|
111 | shf3=-1*read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy", box=box,/nan) & shf3=reform(shf3) |
---|
112 | shf4=-1*read_ncdf('shf',st4,en4,file=file,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy", box=box,/nan) & shf4=reform(shf4) |
---|
113 | |
---|
114 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 |
---|
115 | net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 |
---|
116 | era=[net1,net2,net3,net4] |
---|
117 | |
---|
118 | help, era |
---|
119 | swr1=0 & swr2=0 & swr3=0 & swr4=0 & lwr1=0 & lwr2=0 & lwr3=0 & lwr4=0 |
---|
120 | lhf1=0 & lhf2=0 & lhf3=0 & lhf4=0 & shf1=0 & shf2=0 & shf3=0 & shf4=0 |
---|
121 | net1=0 & net2=0 & net3=0 & net4=0 |
---|
122 | |
---|
123 | file="/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc" |
---|
124 | initncdf, file |
---|
125 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) |
---|
126 | swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) |
---|
127 | swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) |
---|
128 | swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) |
---|
129 | |
---|
130 | lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) |
---|
131 | lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) |
---|
132 | lwr3=read_ncdf('lwr',st3,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) |
---|
133 | lwr4=read_ncdf('lwr',st4,en4,file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) |
---|
134 | |
---|
135 | lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) |
---|
136 | lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) |
---|
137 | lhf3=read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) |
---|
138 | lhf4=read_ncdf('lhf',st4,en4,file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) |
---|
139 | |
---|
140 | shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) |
---|
141 | shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2) |
---|
142 | shf3=read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3) |
---|
143 | shf4=read_ncdf('shf',st4,en4,file=file,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy",/nan, box=box) & shf4=reform(shf4) |
---|
144 | |
---|
145 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 |
---|
146 | net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 |
---|
147 | |
---|
148 | file="/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc" |
---|
149 | initncdf, file |
---|
150 | olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) |
---|
151 | olr2=read_ncdf("sw", st2-1, en2, file=file,/nostr, box=box) & olr2=grossemoyenne(olr2, "xy",/nan, box=box) & olr2=reform(olr2) |
---|
152 | olr3=read_ncdf("sw", st3-1, en3, file=file,/nostr, box=box) & olr3=grossemoyenne(olr3, "xy",/nan, box=box) & olr3=reform(olr3) |
---|
153 | olr4=read_ncdf("sw", st4-1, en4, file=file,/nostr, box=box) & olr4=grossemoyenne(olr4, "xy",/nan, box=box) & olr4=reform(olr4) |
---|
154 | |
---|
155 | neto_1=olr1+lwr1+lhf1+shf1 & neto_2=olr2+lwr2+lhf2+shf2 |
---|
156 | neto_3=olr3+lwr3+lhf3+shf3 & neto_4=olr4+lwr4+lhf4+shf4 |
---|
157 | |
---|
158 | trop=[net1,net2,net3,net4] |
---|
159 | olr=[neto_1,neto_2,neto_3,neto_4] |
---|
160 | help, trop, olr |
---|
161 | |
---|
162 | swr1=0 & swr2=0 & swr3=0 & swr4=0 & lwr1=0 & lwr2=0 & lwr3=0 & lwr4=0 |
---|
163 | lhf1=0 & lhf2=0 & lhf3=0 & lhf4=0 & shf1=0 & shf2=0 & shf3=0 & shf4=0 |
---|
164 | net1=0 & net2=0 & net3=0 & net4=0 & neto_1=0 & neto_2=0 & neto_3=0 & neto_4=0 |
---|
165 | |
---|
166 | file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc' |
---|
167 | initncdf, file |
---|
168 | swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) |
---|
169 | swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) |
---|
170 | swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) |
---|
171 | swr4=read_ncdf("swr", st4, en4, file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) |
---|
172 | |
---|
173 | file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc' |
---|
174 | initncdf, file |
---|
175 | lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) |
---|
176 | lwr2=-1*read_ncdf("lwr", st2, en2, file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) |
---|
177 | lwr3=-1*read_ncdf("lwr", st3, en3, file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) |
---|
178 | lwr4=-1*read_ncdf("lwr", st4, en4, file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) |
---|
179 | |
---|
180 | file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc' |
---|
181 | initncdf, file |
---|
182 | lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) |
---|
183 | lhf2=-1*read_ncdf("lhf", st2, en2, file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) |
---|
184 | lhf3=-1*read_ncdf("lhf", st3, en3, file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) |
---|
185 | lhf4=-1*read_ncdf("lhf", st4, en4, file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) |
---|
186 | |
---|
187 | file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc' |
---|
188 | initncdf, file |
---|
189 | shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) |
---|
190 | shf2=-1*read_ncdf("shf", st2, en2, file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2) |
---|
191 | shf3=-1*read_ncdf("shf", st3, en3, file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3) |
---|
192 | shf4=-1*read_ncdf("shf", st4, en4, file=file,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy",/nan, box=box) & shf4=reform(shf4) |
---|
193 | |
---|
194 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 |
---|
195 | net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 |
---|
196 | |
---|
197 | oaf=[net1,net2,net3,net4] |
---|
198 | |
---|
199 | help, oaf |
---|
200 | swr1=0 & swr2=0 & swr3=0 & swr4=0 & lwr1=0 & lwr2=0 & lwr3=0 & lwr4=0 |
---|
201 | lhf1=0 & lhf2=0 & lhf3=0 & lhf4=0 & shf1=0 & shf2=0 & shf3=0 & shf4=0 |
---|
202 | net1=0 & net2=0 & net3=0 & net4=0 |
---|
203 | |
---|
204 | fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc' |
---|
205 | initncdf, fi |
---|
206 | swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) |
---|
207 | swr2=read_ncdf("swr", st2, en2, file=fi,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) |
---|
208 | swr3=read_ncdf("swr", st3, en3, file=fi,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) |
---|
209 | swr4=read_ncdf("swr", st4, en4, file=fi,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) |
---|
210 | |
---|
211 | fi="/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc" |
---|
212 | initncdf, fi |
---|
213 | lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) |
---|
214 | lwr2=-1*read_ncdf("lwr", st2, en2, file=fi,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) |
---|
215 | lwr3=-1*read_ncdf("lwr", st3, en3, file=fi,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) |
---|
216 | lwr4=-1*read_ncdf("lwr", st4, en4, file=fi,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) |
---|
217 | |
---|
218 | fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
219 | initncdf, fi |
---|
220 | lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) |
---|
221 | lhf2=-1*read_ncdf("lhf", st2, en2, file=fi,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) |
---|
222 | lhf3=-1*read_ncdf("lhf", st3, en3, file=fi,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) |
---|
223 | lhf4=-1*read_ncdf("lhf", st4, en4, file=fi,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) |
---|
224 | |
---|
225 | fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
226 | initncdf, fi |
---|
227 | shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) |
---|
228 | shf2=-1*read_ncdf("shf", st2, en2, file=fi,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2) |
---|
229 | shf3=-1*read_ncdf("shf", st3, en3, file=fi,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3) |
---|
230 | shf4=-1*read_ncdf("shf", st4, en4, file=fi,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy",/nan, box=box) & shf4=reform(shf4) |
---|
231 | |
---|
232 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 |
---|
233 | net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 |
---|
234 | |
---|
235 | nce2=[net1,net2,net3,net4] |
---|
236 | |
---|
237 | help, nce2 |
---|
238 | swr1=0 & swr2=0 & swr3=0 & swr4=0 & lwr1=0 & lwr2=0 & lwr3=0 & lwr4=0 |
---|
239 | lhf1=0 & lhf2=0 & lhf3=0 & lhf4=0 & shf1=0 & shf2=0 & shf3=0 & shf4=0 |
---|
240 | net1=0 & net2=0 & net3=0 & net4=0 |
---|
241 | |
---|
242 | ;file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc' |
---|
243 | file="/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc" |
---|
244 | initncdf, file |
---|
245 | swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) |
---|
246 | swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) |
---|
247 | swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) |
---|
248 | swr4=read_ncdf("swr", st4, en4, file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) |
---|
249 | |
---|
250 | lwr1=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) |
---|
251 | lwr2=read_ncdf("lwr", st2, en2, file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) |
---|
252 | lwr3=read_ncdf("lwr", st3, en3, file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) |
---|
253 | lwr4=read_ncdf("lwr", st4, en4, file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) |
---|
254 | |
---|
255 | lhf1=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) |
---|
256 | lhf2=read_ncdf("lhf", st2, en2, file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) |
---|
257 | lhf3=read_ncdf("lhf", st3, en3, file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) |
---|
258 | lhf4=read_ncdf("lhf", st4, en4, file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) |
---|
259 | |
---|
260 | shf1=read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) |
---|
261 | shf2=read_ncdf("shf", st2, en2, file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2) |
---|
262 | shf3=read_ncdf("shf", st3, en3, file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3) |
---|
263 | shf4=read_ncdf("shf", st4, en4, file=file,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy",/nan, box=box) & shf4=reform(shf4) |
---|
264 | |
---|
265 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 |
---|
266 | net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 |
---|
267 | |
---|
268 | nce1=[net1,net2,net3,net4] & nce1=nce1 |
---|
269 | |
---|
270 | help, nce1 |
---|
271 | swr1=0 & swr2=0 & swr3=0 & swr4=0 & lwr1=0 & lwr2=0 & lwr3=0 & lwr4=0 |
---|
272 | lhf1=0 & lhf2=0 & lhf3=0 & lhf4=0 & shf1=0 & shf2=0 & shf3=0 & shf4=0 |
---|
273 | net1=0 & net2=0 & net3=0 & net4=0 |
---|
274 | |
---|
275 | ind=where(finite(net)) |
---|
276 | net=net(ind) & era=era(ind) & trop=trop(ind) & oaf=oaf(ind) & nce1=nce1(ind) & nce2=nce2(ind) |
---|
277 | olr=olr(ind) |
---|
278 | |
---|
279 | help, net, era, trop, oaf, nce1, nce2, olr |
---|
280 | ;------------------------------------------------------------ |
---|
281 | |
---|
282 | statistics, net, era, $ |
---|
283 | cor, bias, std, rmsd |
---|
284 | print, cor, bias, std, rmsd |
---|
285 | cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
286 | |
---|
287 | statistics, net, trop, $ |
---|
288 | cor, bias, std, rmsd |
---|
289 | print, cor, bias, std, rmsd |
---|
290 | cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
291 | |
---|
292 | statistics, net, oaf, $ |
---|
293 | cor, bias, std, rmsd |
---|
294 | print, cor, bias, std, rmsd |
---|
295 | cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
296 | |
---|
297 | statistics, net, nce1, $ |
---|
298 | cor, bias, std, rmsd |
---|
299 | print, cor, bias, std, rmsd |
---|
300 | cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
301 | |
---|
302 | statistics, net, nce2, $ |
---|
303 | cor, bias, std, rmsd |
---|
304 | print, cor, bias, std, rmsd |
---|
305 | cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
306 | |
---|
307 | statistics, net, olr, $ |
---|
308 | cor, bias, std, rmsd |
---|
309 | print, cor, bias, std, rmsd |
---|
310 | cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
311 | |
---|
312 | ;------------------------------------------------------------ |
---|
313 | |
---|
314 | splot, net, era, charsize=1.1, title='Net Flux - COARE Vs ERAI', $ |
---|
315 | xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1 |
---|
316 | oplot, [-200,200], [-200,200] |
---|
317 | xyouts, -150,-175, cstat_era, charsize=1. |
---|
318 | |
---|
319 | splot, net, trop, charsize=1.1, title='Net Flux - COARE Vs TropFlux',/noer, $ |
---|
320 | xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1 |
---|
321 | oplot, [-200,200], [-200,200] |
---|
322 | xyouts, -150,-175, cstat_trop, charsize=1. |
---|
323 | |
---|
324 | splot, net, oaf, charsize=1.1, title='Net Flux - COARE Vs OAFlux',/noer, $ |
---|
325 | xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1 |
---|
326 | oplot, [-200,200], [-200,200] |
---|
327 | xyouts, -150,-175, cstat_oaf, charsize=1. |
---|
328 | |
---|
329 | splot, net, nce1, charsize=1.1, title='Net Flux - COARE Vs NCEP1',/noer, $ |
---|
330 | xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1 |
---|
331 | oplot, [-200,200], [-200,200] |
---|
332 | xyouts, -150,-175, cstat_nce1, charsize=1. |
---|
333 | |
---|
334 | splot, net, nce2, charsize=1.1, title='Net Flux - COARE Vs NCEP2',/noer, $ |
---|
335 | xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1 |
---|
336 | oplot, [-200,200], [-200,200] |
---|
337 | xyouts, -150,-175, cstat_nce2, charsize=1. |
---|
338 | |
---|
339 | splot, net, olr, charsize=1.1, title='Net Flux - COARE Vs TropFlux_NRT',/noer, $ |
---|
340 | xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1 |
---|
341 | oplot, [-200,200], [-200,200] |
---|
342 | xyouts, -150,-175, cstat_olr, charsize=1. |
---|
343 | |
---|
344 | stop |
---|
345 | ;------------------------------------------------------------ |
---|
346 | closeps |
---|
347 | fig="coare_validation_net_1992_93_all_v11.ps" |
---|
348 | spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig |
---|
349 | spawn, 'gv '+cpsdir+fig |
---|
350 | ;------------------------------------------------------------ |
---|
351 | return |
---|
352 | end |
---|
353 | |
---|