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 | ; .. graphviz:: |
---|
12 | ; |
---|
13 | ; digraph coare_validation_net_1992_93_all_v10 { |
---|
14 | ; graph [ |
---|
15 | ; rankdir="LR", |
---|
16 | ; ] |
---|
17 | ; met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_as_expt_199*_p*.txt"]; |
---|
18 | ; swr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; |
---|
19 | ; lwr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; |
---|
20 | ; lhf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; |
---|
21 | ; shf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"]; |
---|
22 | ; tropflux_general [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_19890101_20091231.nc"]; |
---|
23 | ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; |
---|
24 | ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_oafluxgrid_1985_2007.nc"]; |
---|
25 | ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lwr_oafluxgrid_1985_2007.nc"]; |
---|
26 | ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_oafluxgrid_1985_2007.nc"]; |
---|
27 | ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_oafluxgrid_1985_2007.nc"]; |
---|
28 | ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; |
---|
29 | ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/NCEP2_flux_19890101_20090729.nc"]; |
---|
30 | ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; |
---|
31 | ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; |
---|
32 | ; |
---|
33 | ; ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/ncep1_flux_19890101_20091231.nc"]; |
---|
34 | ; |
---|
35 | ; figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/coare_validation_net_1992_93_all_v11.ps"]; |
---|
36 | ; |
---|
37 | ; coare_validation_net_1992_93_all_v10 [shape=box, |
---|
38 | ; fontname=Courier, |
---|
39 | ; color=blue, |
---|
40 | ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/coare_validation_net_1992_93_all_v10.pro", |
---|
41 | ; label="${TROPFLUX}/src/paper01/fig14/coare_validation_net_1992_93_all_v10.pro"]; |
---|
42 | ; |
---|
43 | ; {met_data swr_erai lwr_erai lhf_erai shf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {coare_validation_net_1992_93_all_v10} -> {figure} |
---|
44 | ; } |
---|
45 | ; |
---|
46 | ; SEE ALSO |
---|
47 | ; ======== |
---|
48 | ; |
---|
49 | ; :ref:`project_profile.sh` |
---|
50 | ; :ref:`project_init.pro` |
---|
51 | ; :ref:`cm_project.pro` |
---|
52 | ; |
---|
53 | ; :ref:`statistics.pro` |
---|
54 | ; |
---|
55 | ; EXAMPLES |
---|
56 | ; ======== |
---|
57 | ; |
---|
58 | ; :: |
---|
59 | ; |
---|
60 | ; IDL> coare_validation_net_1992_93_all_v10 |
---|
61 | ; |
---|
62 | ; TODO |
---|
63 | ; ==== |
---|
64 | ; |
---|
65 | ; make it work on cratos : missing data |
---|
66 | ; |
---|
67 | ; coding rules |
---|
68 | ; |
---|
69 | ; get rid of spwan |
---|
70 | ; |
---|
71 | ; complete description |
---|
72 | ; |
---|
73 | ; handle IO error |
---|
74 | ; |
---|
75 | ; EVOLUTIONS |
---|
76 | ; ========== |
---|
77 | ; |
---|
78 | ; $Id$ |
---|
79 | ; |
---|
80 | ; - fplod 20110420T120449Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
81 | ; |
---|
82 | ; * remove hard coding path |
---|
83 | ; * add graphviz |
---|
84 | ; |
---|
85 | ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
86 | ; |
---|
87 | ; * minimal header |
---|
88 | ; |
---|
89 | ;- |
---|
90 | pro coare_validation_net_1992_93_all_v10 |
---|
91 | @cm_general |
---|
92 | @cm_project |
---|
93 | reinitplt, /z,/invert |
---|
94 | key_portrait = 1 |
---|
95 | coefpalit=.9 |
---|
96 | |
---|
97 | openps, FILENAME = 'idl.ps' |
---|
98 | ; partie a changer |
---|
99 | |
---|
100 | box=[155.5, 156.5, -2, -1] |
---|
101 | |
---|
102 | ;; first leg |
---|
103 | ;; start data - 11/11/92 and end date 03/12/92 |
---|
104 | fi=project_id_env+"met_data_coare_expt_1992_p1.txt" |
---|
105 | res=read_ascii(fi,data_start=1) |
---|
106 | ff=res.field1 |
---|
107 | date=reform(ff(0,*)) |
---|
108 | sw92_1=reform(ff(7,*))/0.93 |
---|
109 | lw92_1=reform(ff(8,*)) |
---|
110 | lh92_1=reform(ff(5,*)) |
---|
111 | sh92_1=reform(ff(6,*)) |
---|
112 | |
---|
113 | net1=sw92_1+lw92_1+lh92_1+sh92_1 |
---|
114 | |
---|
115 | st1=921111 & en1=921203 |
---|
116 | |
---|
117 | ;; second leg |
---|
118 | |
---|
119 | fi=project_id_env+"met_data_coare_expt_1992_p2.txt" |
---|
120 | res=read_ascii(fi,data_start=1) |
---|
121 | ff=res.field1 |
---|
122 | sw92_2=reform(ff(7,*))/0.93 |
---|
123 | lw92_2=reform(ff(8,*)) |
---|
124 | lh92_2=reform(ff(5,*)) |
---|
125 | sh92_2=reform(ff(6,*)) |
---|
126 | |
---|
127 | net2=sw92_2+lw92_2+lh92_2+sh92_2 |
---|
128 | |
---|
129 | ;; start data - 17/12/92 and end date 31/12/92 |
---|
130 | st2=19921217 & en2=19921231 |
---|
131 | |
---|
132 | ;; third leg |
---|
133 | |
---|
134 | fi=project_id_env+"met_data_coare_expt_1993_p1.txt" |
---|
135 | res=read_ascii(fi,data_start=1) |
---|
136 | ff=res.field1 |
---|
137 | sw93_1=reform(ff(7,*))/0.93 |
---|
138 | lw93_1=reform(ff(8,*)) |
---|
139 | lh93_1=reform(ff(5,*)) |
---|
140 | sh93_1=reform(ff(6,*)) |
---|
141 | |
---|
142 | net3=sw93_1+lw93_1+lh93_1+sh93_1 |
---|
143 | |
---|
144 | ;; start data - 01/01/93 and end date 11/01/93 |
---|
145 | st3=19930101 & en3=19930111 |
---|
146 | |
---|
147 | ;; fourth leg |
---|
148 | |
---|
149 | fi=project_id_env+"met_data_coare_expt_1993_p2.txt" |
---|
150 | res=read_ascii(fi,data_start=1) |
---|
151 | ff=res.field1 |
---|
152 | sw93_2=reform(ff(7,*)) |
---|
153 | lw93_2=reform(ff(8,*)) |
---|
154 | lh93_2=reform(ff(5,*)) |
---|
155 | sh93_2=reform(ff(6,*)) |
---|
156 | |
---|
157 | net4=sw93_2+lw93_2+lh93_2+sh93_2 |
---|
158 | |
---|
159 | ;; start data - 28/01/93 and end date 16/02/93 |
---|
160 | st4=19930128 & en4=19930216 |
---|
161 | |
---|
162 | net=[net1, net2, net3, net4] |
---|
163 | help, net |
---|
164 | |
---|
165 | ;; reading other data sets |
---|
166 | |
---|
167 | st1=19921111 & en1=19921203 |
---|
168 | st2=19921217 & en2=19921231 |
---|
169 | st3=19930101 & en3=19930111 |
---|
170 | st4=19930128 & en4=19930216 |
---|
171 | |
---|
172 | file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" |
---|
173 | initncdf, file |
---|
174 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1) |
---|
175 | swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2) |
---|
176 | swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy", box=box,/nan) & swr3=reform(swr3) |
---|
177 | swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy", box=box,/nan) & swr4=reform(swr4) |
---|
178 | |
---|
179 | file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' |
---|
180 | initncdf, file |
---|
181 | lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1) |
---|
182 | lwr2=read_ncdf('lwr',st2-1,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2) |
---|
183 | lwr3=read_ncdf('lwr',st3-1,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) & lwr3=reform(lwr3) |
---|
184 | lwr4=read_ncdf('lwr',st4-1,en4,file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy", box=box,/nan) & lwr4=reform(lwr4) |
---|
185 | |
---|
186 | file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' |
---|
187 | initncdf, file |
---|
188 | lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) |
---|
189 | lhf2=-1*read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2) |
---|
190 | lhf3=-1*read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) & lhf3=reform(lhf3) |
---|
191 | lhf4=-1*read_ncdf('lhf',st4,en4,file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy", box=box,/nan) & lhf4=reform(lhf4) |
---|
192 | |
---|
193 | file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' |
---|
194 | initncdf, file |
---|
195 | shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1) |
---|
196 | shf2=-1*read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2) |
---|
197 | shf3=-1*read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy", box=box,/nan) & shf3=reform(shf3) |
---|
198 | shf4=-1*read_ncdf('shf',st4,en4,file=file,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy", box=box,/nan) & shf4=reform(shf4) |
---|
199 | |
---|
200 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 |
---|
201 | net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 |
---|
202 | era=[net1,net2,net3,net4] |
---|
203 | |
---|
204 | help, era |
---|
205 | swr1=0 & swr2=0 & swr3=0 & swr4=0 & lwr1=0 & lwr2=0 & lwr3=0 & lwr4=0 |
---|
206 | lhf1=0 & lhf2=0 & lhf3=0 & lhf4=0 & shf1=0 & shf2=0 & shf3=0 & shf4=0 |
---|
207 | net1=0 & net2=0 & net3=0 & net4=0 |
---|
208 | |
---|
209 | file=project_id_env+"TropFlux_19890101_20091231.nc" |
---|
210 | initncdf, file |
---|
211 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) |
---|
212 | swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) |
---|
213 | swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) |
---|
214 | swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) |
---|
215 | |
---|
216 | lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) |
---|
217 | lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) |
---|
218 | lwr3=read_ncdf('lwr',st3,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) |
---|
219 | lwr4=read_ncdf('lwr',st4,en4,file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) |
---|
220 | |
---|
221 | lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) |
---|
222 | lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) |
---|
223 | lhf3=read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) |
---|
224 | lhf4=read_ncdf('lhf',st4,en4,file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) |
---|
225 | |
---|
226 | shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) |
---|
227 | shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2) |
---|
228 | shf3=read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3) |
---|
229 | shf4=read_ncdf('shf',st4,en4,file=file,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy",/nan, box=box) & shf4=reform(shf4) |
---|
230 | |
---|
231 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 |
---|
232 | net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 |
---|
233 | |
---|
234 | file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" |
---|
235 | initncdf, file |
---|
236 | olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) |
---|
237 | olr2=read_ncdf("sw", st2-1, en2, file=file,/nostr, box=box) & olr2=grossemoyenne(olr2, "xy",/nan, box=box) & olr2=reform(olr2) |
---|
238 | olr3=read_ncdf("sw", st3-1, en3, file=file,/nostr, box=box) & olr3=grossemoyenne(olr3, "xy",/nan, box=box) & olr3=reform(olr3) |
---|
239 | olr4=read_ncdf("sw", st4-1, en4, file=file,/nostr, box=box) & olr4=grossemoyenne(olr4, "xy",/nan, box=box) & olr4=reform(olr4) |
---|
240 | |
---|
241 | neto_1=olr1+lwr1+lhf1+shf1 & neto_2=olr2+lwr2+lhf2+shf2 |
---|
242 | neto_3=olr3+lwr3+lhf3+shf3 & neto_4=olr4+lwr4+lhf4+shf4 |
---|
243 | |
---|
244 | trop=[net1,net2,net3,net4] |
---|
245 | olr=[neto_1,neto_2,neto_3,neto_4] |
---|
246 | help, trop, olr |
---|
247 | |
---|
248 | swr1=0 & swr2=0 & swr3=0 & swr4=0 & lwr1=0 & lwr2=0 & lwr3=0 & lwr4=0 |
---|
249 | lhf1=0 & lhf2=0 & lhf3=0 & lhf4=0 & shf1=0 & shf2=0 & shf3=0 & shf4=0 |
---|
250 | net1=0 & net2=0 & net3=0 & net4=0 & neto_1=0 & neto_2=0 & neto_3=0 & neto_4=0 |
---|
251 | |
---|
252 | file=project_id_env+'swr_oafluxgrid_1985_2007.nc' |
---|
253 | initncdf, file |
---|
254 | swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) |
---|
255 | swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) |
---|
256 | swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) |
---|
257 | swr4=read_ncdf("swr", st4, en4, file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) |
---|
258 | |
---|
259 | file=project_id_env+'lwr_oafluxgrid_1985_2007.nc' |
---|
260 | initncdf, file |
---|
261 | lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) |
---|
262 | lwr2=-1*read_ncdf("lwr", st2, en2, file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) |
---|
263 | lwr3=-1*read_ncdf("lwr", st3, en3, file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) |
---|
264 | lwr4=-1*read_ncdf("lwr", st4, en4, file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) |
---|
265 | |
---|
266 | file=project_id_env+'lhf_oafluxgrid_1985_2009.nc' |
---|
267 | initncdf, file |
---|
268 | lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) |
---|
269 | lhf2=-1*read_ncdf("lhf", st2, en2, file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) |
---|
270 | lhf3=-1*read_ncdf("lhf", st3, en3, file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) |
---|
271 | lhf4=-1*read_ncdf("lhf", st4, en4, file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) |
---|
272 | |
---|
273 | file=project_id_env+'shf_oafluxgrid_1985_2009.nc' |
---|
274 | initncdf, file |
---|
275 | shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) |
---|
276 | shf2=-1*read_ncdf("shf", st2, en2, file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2) |
---|
277 | shf3=-1*read_ncdf("shf", st3, en3, file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3) |
---|
278 | shf4=-1*read_ncdf("shf", st4, en4, file=file,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy",/nan, box=box) & shf4=reform(shf4) |
---|
279 | |
---|
280 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 |
---|
281 | net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 |
---|
282 | |
---|
283 | oaf=[net1,net2,net3,net4] |
---|
284 | |
---|
285 | help, oaf |
---|
286 | swr1=0 & swr2=0 & swr3=0 & swr4=0 & lwr1=0 & lwr2=0 & lwr3=0 & lwr4=0 |
---|
287 | lhf1=0 & lhf2=0 & lhf3=0 & lhf4=0 & shf1=0 & shf2=0 & shf3=0 & shf4=0 |
---|
288 | net1=0 & net2=0 & net3=0 & net4=0 |
---|
289 | |
---|
290 | fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' |
---|
291 | initncdf, fi |
---|
292 | swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) |
---|
293 | swr2=read_ncdf("swr", st2, en2, file=fi,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) |
---|
294 | swr3=read_ncdf("swr", st3, en3, file=fi,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) |
---|
295 | swr4=read_ncdf("swr", st4, en4, file=fi,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) |
---|
296 | |
---|
297 | fi=project_id_env+"NCEP2_flux_19890101_20090729.nc" |
---|
298 | initncdf, fi |
---|
299 | lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) |
---|
300 | lwr2=-1*read_ncdf("lwr", st2, en2, file=fi,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) |
---|
301 | lwr3=-1*read_ncdf("lwr", st3, en3, file=fi,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) |
---|
302 | lwr4=-1*read_ncdf("lwr", st4, en4, file=fi,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) |
---|
303 | |
---|
304 | fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
305 | initncdf, fi |
---|
306 | lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) |
---|
307 | lhf2=-1*read_ncdf("lhf", st2, en2, file=fi,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) |
---|
308 | lhf3=-1*read_ncdf("lhf", st3, en3, file=fi,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) |
---|
309 | lhf4=-1*read_ncdf("lhf", st4, en4, file=fi,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) |
---|
310 | |
---|
311 | fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
312 | initncdf, fi |
---|
313 | shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) |
---|
314 | shf2=-1*read_ncdf("shf", st2, en2, file=fi,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2) |
---|
315 | shf3=-1*read_ncdf("shf", st3, en3, file=fi,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3) |
---|
316 | shf4=-1*read_ncdf("shf", st4, en4, file=fi,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy",/nan, box=box) & shf4=reform(shf4) |
---|
317 | |
---|
318 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 |
---|
319 | net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 |
---|
320 | |
---|
321 | nce2=[net1,net2,net3,net4] |
---|
322 | |
---|
323 | help, nce2 |
---|
324 | swr1=0 & swr2=0 & swr3=0 & swr4=0 & lwr1=0 & lwr2=0 & lwr3=0 & lwr4=0 |
---|
325 | lhf1=0 & lhf2=0 & lhf3=0 & lhf4=0 & shf1=0 & shf2=0 & shf3=0 & shf4=0 |
---|
326 | net1=0 & net2=0 & net3=0 & net4=0 |
---|
327 | |
---|
328 | file=project_id_env+"ncep1_flux_19890101_20091231.nc" |
---|
329 | initncdf, file |
---|
330 | swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) |
---|
331 | swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) |
---|
332 | swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) |
---|
333 | swr4=read_ncdf("swr", st4, en4, file=file,/nostr, box=box) & swr4=grossemoyenne(swr4, "xy",/nan, box=box) & swr4=reform(swr4) |
---|
334 | |
---|
335 | lwr1=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) |
---|
336 | lwr2=read_ncdf("lwr", st2, en2, file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) |
---|
337 | lwr3=read_ncdf("lwr", st3, en3, file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) |
---|
338 | lwr4=read_ncdf("lwr", st4, en4, file=file,/nostr, box=box) & lwr4=grossemoyenne(lwr4, "xy",/nan, box=box) & lwr4=reform(lwr4) |
---|
339 | |
---|
340 | lhf1=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) |
---|
341 | lhf2=read_ncdf("lhf", st2, en2, file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) |
---|
342 | lhf3=read_ncdf("lhf", st3, en3, file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) |
---|
343 | lhf4=read_ncdf("lhf", st4, en4, file=file,/nostr, box=box) & lhf4=grossemoyenne(lhf4, "xy",/nan, box=box) & lhf4=reform(lhf4) |
---|
344 | |
---|
345 | shf1=read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) |
---|
346 | shf2=read_ncdf("shf", st2, en2, file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2) |
---|
347 | shf3=read_ncdf("shf", st3, en3, file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3) |
---|
348 | shf4=read_ncdf("shf", st4, en4, file=file,/nostr, box=box) & shf4=grossemoyenne(shf4, "xy",/nan, box=box) & shf4=reform(shf4) |
---|
349 | |
---|
350 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 |
---|
351 | net3=swr3+lwr3+lhf3+shf3 & net4=swr4+lwr4+lhf4+shf4 |
---|
352 | |
---|
353 | nce1=[net1,net2,net3,net4] & nce1=nce1 |
---|
354 | |
---|
355 | help, nce1 |
---|
356 | swr1=0 & swr2=0 & swr3=0 & swr4=0 & lwr1=0 & lwr2=0 & lwr3=0 & lwr4=0 |
---|
357 | lhf1=0 & lhf2=0 & lhf3=0 & lhf4=0 & shf1=0 & shf2=0 & shf3=0 & shf4=0 |
---|
358 | net1=0 & net2=0 & net3=0 & net4=0 |
---|
359 | |
---|
360 | ind=where(finite(net)) |
---|
361 | net=net(ind) & era=era(ind) & trop=trop(ind) & oaf=oaf(ind) & nce1=nce1(ind) & nce2=nce2(ind) |
---|
362 | olr=olr(ind) |
---|
363 | |
---|
364 | help, net, era, trop, oaf, nce1, nce2, olr |
---|
365 | |
---|
366 | statistics, net, era, $ |
---|
367 | cor, bias, std, rmsd |
---|
368 | print, cor, bias, std, rmsd |
---|
369 | cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
370 | |
---|
371 | statistics, net, trop, $ |
---|
372 | cor, bias, std, rmsd |
---|
373 | print, cor, bias, std, rmsd |
---|
374 | cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
375 | |
---|
376 | statistics, net, oaf, $ |
---|
377 | cor, bias, std, rmsd |
---|
378 | print, cor, bias, std, rmsd |
---|
379 | cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
380 | |
---|
381 | statistics, net, nce1, $ |
---|
382 | cor, bias, std, rmsd |
---|
383 | print, cor, bias, std, rmsd |
---|
384 | cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
385 | |
---|
386 | statistics, net, nce2, $ |
---|
387 | cor, bias, std, rmsd |
---|
388 | print, cor, bias, std, rmsd |
---|
389 | cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
390 | |
---|
391 | statistics, net, olr, $ |
---|
392 | cor, bias, std, rmsd |
---|
393 | print, cor, bias, std, rmsd |
---|
394 | cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
395 | |
---|
396 | |
---|
397 | splot, net, era, charsize=1.1, title='Net Flux - COARE Vs ERAI', $ |
---|
398 | xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1 |
---|
399 | oplot, [-200,200], [-200,200] |
---|
400 | xyouts, -150,-175, cstat_era, charsize=1. |
---|
401 | |
---|
402 | splot, net, trop, charsize=1.1, title='Net Flux - COARE Vs TropFlux',/noer, $ |
---|
403 | xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1 |
---|
404 | oplot, [-200,200], [-200,200] |
---|
405 | xyouts, -150,-175, cstat_trop, charsize=1. |
---|
406 | |
---|
407 | splot, net, oaf, charsize=1.1, title='Net Flux - COARE Vs OAFlux',/noer, $ |
---|
408 | xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1 |
---|
409 | oplot, [-200,200], [-200,200] |
---|
410 | xyouts, -150,-175, cstat_oaf, charsize=1. |
---|
411 | |
---|
412 | splot, net, nce1, charsize=1.1, title='Net Flux - COARE Vs NCEP1',/noer, $ |
---|
413 | xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1 |
---|
414 | oplot, [-200,200], [-200,200] |
---|
415 | xyouts, -150,-175, cstat_nce1, charsize=1. |
---|
416 | |
---|
417 | splot, net, nce2, charsize=1.1, title='Net Flux - COARE Vs NCEP2',/noer, $ |
---|
418 | xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1 |
---|
419 | oplot, [-200,200], [-200,200] |
---|
420 | xyouts, -150,-175, cstat_nce2, charsize=1. |
---|
421 | |
---|
422 | splot, net, olr, charsize=1.1, title='Net Flux - COARE Vs TropFlux_NRT',/noer, $ |
---|
423 | xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1 |
---|
424 | oplot, [-200,200], [-200,200] |
---|
425 | xyouts, -150,-175, cstat_olr, charsize=1. |
---|
426 | |
---|
427 | closeps |
---|
428 | fig=project_od_env+"coare_validation_net_1992_93_all_v11.ps" |
---|
429 | spawn, 'mv '+psdir+'idl.ps '+fig |
---|
430 | spawn, 'gv '+fig |
---|
431 | end |
---|