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