1 | ;+ |
---|
2 | ; .. _whots_validation_net_2004_2007_all_v10.pro: |
---|
3 | ; |
---|
4 | ; ========================================== |
---|
5 | ; whots_validation_net_2004_2007_all_v10.pro |
---|
6 | ; ========================================== |
---|
7 | ; |
---|
8 | ; DESCRIPTION |
---|
9 | ; =========== |
---|
10 | ; |
---|
11 | ; .. graphviz:: |
---|
12 | ; |
---|
13 | ; digraph whots_validation_net_2004_2007_all_v10 { |
---|
14 | ; graph [ |
---|
15 | ; rankdir="LR", |
---|
16 | ; ] |
---|
17 | ; met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_WHOTS_200?_200?.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}/WHOTS_validation_net_2004_2007_all_v10.ps"]; |
---|
36 | ; |
---|
37 | ; whots_validation_net_2004_2007_all_v10 [shape=box, |
---|
38 | ; fontname=Courier, |
---|
39 | ; color=blue, |
---|
40 | ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/whots_validation_net_2004_2007_all_v10.pro", |
---|
41 | ; label="${TROPFLUX}/src/paper01/fig14/whots_validation_net_2004_2007_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} -> {whots_validation_net_2004_2007_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> whots_validation_net_2004_2007_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 20110420T122057Z 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 whots_validation_net_2004_2007_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 | ;; WHOTS in the NC pacific 2004-09 |
---|
101 | ;22.45N, 157.54W (202.46E) |
---|
102 | box=[202, 203, 22., 23.] |
---|
103 | |
---|
104 | ;; first leg |
---|
105 | |
---|
106 | fi=project_id_env+"met_data_WHOTS_2004_2005.txt" |
---|
107 | res=read_ascii(fi,data_start=1) |
---|
108 | ff=res.field1 |
---|
109 | lhf_04=reform(ff(5,*)) |
---|
110 | shf_04=reform(ff(6,*)) |
---|
111 | swr_04=reform(ff(7,*))/0.93 |
---|
112 | lwr_04=reform(ff(8,*)) |
---|
113 | net_04=[lhf_04+shf_04+swr_04+lwr_04] |
---|
114 | |
---|
115 | fi=project_id_env+"met_data_WHOTS_2005_2006.txt" |
---|
116 | res=read_ascii(fi,data_start=1) |
---|
117 | ff=res.field1 |
---|
118 | lhf_05=reform(ff(5,*)) |
---|
119 | shf_05=reform(ff(6,*)) |
---|
120 | swr_05=reform(ff(7,*))/0.93 |
---|
121 | lwr_05=reform(ff(8,*)) |
---|
122 | net_05=[lhf_05+shf_05+swr_05+lwr_05] |
---|
123 | |
---|
124 | fi=project_id_env+"met_data_WHOTS_2006_2007.txt" |
---|
125 | res=read_ascii(fi,data_start=1) |
---|
126 | ff=res.field1 |
---|
127 | lhf_06=reform(ff(5,*)) |
---|
128 | shf_06=reform(ff(6,*)) |
---|
129 | swr_06=reform(ff(7,*))/0.93 |
---|
130 | lwr_06=reform(ff(8,*)) |
---|
131 | net_06=[lhf_06+shf_06+swr_06+lwr_06] |
---|
132 | |
---|
133 | net=[net_04, net_05, net_06] |
---|
134 | |
---|
135 | help, net |
---|
136 | |
---|
137 | ;; reading other data sets |
---|
138 | |
---|
139 | st1=20040813 & en1=20050725 |
---|
140 | st2=20050728 & en2=20060624 |
---|
141 | st3=20060627 & en3=20070628 |
---|
142 | ;st4=20070626 & en4=20080606 |
---|
143 | ;st5=20080605 & en5=20090715 |
---|
144 | |
---|
145 | file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' |
---|
146 | initncdf, file |
---|
147 | lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) |
---|
148 | lhf2=-1*read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2) |
---|
149 | lhf3=-1*read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) & lhf3=reform(lhf3) |
---|
150 | |
---|
151 | file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' |
---|
152 | initncdf, file |
---|
153 | shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1) |
---|
154 | shf2=-1*read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2) |
---|
155 | shf3=-1*read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy", box=box,/nan) & shf3=reform(shf3) |
---|
156 | |
---|
157 | file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' |
---|
158 | initncdf, file |
---|
159 | lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1) |
---|
160 | lwr2=read_ncdf('lwr',st2-1,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2) |
---|
161 | lwr3=read_ncdf('lwr',st3-1,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) & lwr3=reform(lwr3) |
---|
162 | |
---|
163 | file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" |
---|
164 | initncdf, file |
---|
165 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1) |
---|
166 | swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2) |
---|
167 | swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy", box=box,/nan) & swr3=reform(swr3) |
---|
168 | |
---|
169 | net1=swr1+(lwr1+shf1+lhf1) & net2=swr2+(lwr2+shf2+lhf2) & net3=swr3+(lwr3+shf3+lhf3) |
---|
170 | era=[net1,net2,net3] |
---|
171 | lhf1=0. & lhf2=0. & lhf3=0. |
---|
172 | shf1=0. & shf2=0. & shf3=0. |
---|
173 | lwr1=0. & lwr2=0. & lwr3=0. |
---|
174 | swr1=0. & swr2=0. & swr3=0. |
---|
175 | net1=0. & net2=0. & net3=0. |
---|
176 | help, era |
---|
177 | |
---|
178 | file=project_id_env+"TropFlux_19890101_20091231.nc" |
---|
179 | initncdf, file |
---|
180 | |
---|
181 | lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) |
---|
182 | lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2) |
---|
183 | lhf3=read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) & lhf3=reform(lhf3) |
---|
184 | |
---|
185 | shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1) |
---|
186 | shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2) |
---|
187 | shf3=read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy", box=box,/nan) & shf3=reform(shf3) |
---|
188 | |
---|
189 | lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1) |
---|
190 | lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2) |
---|
191 | lwr3=read_ncdf('lwr',st3,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) & lwr3=reform(lwr3) |
---|
192 | |
---|
193 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1) |
---|
194 | swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2) |
---|
195 | swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy", box=box,/nan) & swr3=reform(swr3) |
---|
196 | |
---|
197 | file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" |
---|
198 | initncdf, file |
---|
199 | olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) |
---|
200 | olr2=read_ncdf("sw", st2-1, en2, file=file,/nostr, box=box) & olr2=grossemoyenne(olr2, "xy",/nan, box=box) & olr2=reform(olr2) |
---|
201 | olr3=read_ncdf("sw", st3-1, en3, file=file,/nostr, box=box) & olr3=grossemoyenne(olr3, "xy",/nan, box=box) & olr3=reform(olr3) |
---|
202 | |
---|
203 | net1=swr1+lwr1+(shf1+lhf1) & net2=swr2+lwr2+(shf2+lhf2) & net3=swr3+lwr3+(shf3+lhf3) |
---|
204 | neto_1=olr1+lwr1+lhf1+shf1 & neto_2=olr2+lwr2+lhf2+shf2 & neto_3=olr3+lwr3+lhf3+shf3 |
---|
205 | |
---|
206 | trop=[net1,net2,net3] & olr=[neto_1,neto_2,neto_3] |
---|
207 | |
---|
208 | lhf1=0. & lhf2=0. & lhf3=0. |
---|
209 | shf1=0. & shf2=0. & shf3=0. |
---|
210 | lwr1=0. & lwr2=0. & lwr3=0. |
---|
211 | swr1=0. & swr2=0. & swr3=0. |
---|
212 | net1=0. & net2=0. & net3=0. |
---|
213 | neto_1=0 & neto_2=0 & neto_3=0 |
---|
214 | |
---|
215 | help, trop, olr |
---|
216 | |
---|
217 | file=project_id_env+'swr_oafluxgrid_1985_2007.nc' |
---|
218 | initncdf, file |
---|
219 | swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) |
---|
220 | swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) |
---|
221 | swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) |
---|
222 | |
---|
223 | file=project_id_env+'lwr_oafluxgrid_1985_2007.nc' |
---|
224 | initncdf, file |
---|
225 | lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) |
---|
226 | lwr2=-1*read_ncdf("lwr", st2, en2, file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) |
---|
227 | lwr3=-1*read_ncdf("lwr", st3, en3, file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) |
---|
228 | |
---|
229 | file=project_id_env+'lhf_oafluxgrid_1985_2009.nc' |
---|
230 | initncdf, file |
---|
231 | lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) |
---|
232 | lhf2=-1*read_ncdf("lhf", st2, en2, file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) |
---|
233 | lhf3=-1*read_ncdf("lhf", st3, en3, file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) |
---|
234 | |
---|
235 | file=project_id_env+'shf_oafluxgrid_1985_2009.nc' |
---|
236 | initncdf, file |
---|
237 | shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) |
---|
238 | shf2=-1*read_ncdf("shf", st2, en2, file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2) |
---|
239 | shf3=-1*read_ncdf("shf", st3, en3, file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3) |
---|
240 | |
---|
241 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 & net3=swr3+lwr3+lhf3+shf3 |
---|
242 | |
---|
243 | oaf=[net1,net2,net3] |
---|
244 | lhf1=0. & lhf2=0. & lhf3=0. |
---|
245 | shf1=0. & shf2=0. & shf3=0. |
---|
246 | lwr1=0. & lwr2=0. & lwr3=0. |
---|
247 | swr1=0. & swr2=0. & swr3=0. |
---|
248 | net1=0. & net2=0. & net3=0. |
---|
249 | help, oaf |
---|
250 | |
---|
251 | fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' |
---|
252 | initncdf, fi |
---|
253 | swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1) |
---|
254 | swr2=read_ncdf("swr", st2, en2, file=fi,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2) |
---|
255 | swr3=read_ncdf("swr", st3, en3, file=fi,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3) |
---|
256 | |
---|
257 | fi=project_id_env+'NCEP2_flux_19890101_20090729.nc" |
---|
258 | initncdf, fi |
---|
259 | lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1) |
---|
260 | lwr2=-1*read_ncdf("lwr", st2, en2, file=fi,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2) |
---|
261 | lwr3=-1*read_ncdf("lwr", st3, en3, file=fi,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3) |
---|
262 | |
---|
263 | fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
264 | initncdf, fi |
---|
265 | lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1) |
---|
266 | lhf2=-1*read_ncdf("lhf", st2, en2, file=fi,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2) |
---|
267 | lhf3=-1*read_ncdf("lhf", st3, en3, file=fi,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3) |
---|
268 | |
---|
269 | fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
270 | initncdf, fi |
---|
271 | shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1) |
---|
272 | shf2=-1*read_ncdf("shf", st2, en2, file=fi,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2) |
---|
273 | shf3=-1*read_ncdf("shf", st3, en3, file=fi,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3) |
---|
274 | |
---|
275 | net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 & net3=swr3+lwr3+lhf3+shf3 |
---|
276 | |
---|
277 | nce2=[net1,net2,net3] |
---|
278 | help, nce2 |
---|
279 | |
---|
280 | lhf1=0. & lhf2=0. & lhf3=0. |
---|
281 | shf1=0. & shf2=0. & shf3=0. |
---|
282 | lwr1=0. & lwr2=0. & lwr3=0. |
---|
283 | swr1=0. & swr2=0. & swr3=0. |
---|
284 | net1=0. & net2=0. & net3=0. |
---|
285 | |
---|
286 | file=project_id_env+"ncep1_flux_19890101_20091231.nc" |
---|
287 | initncdf, file |
---|
288 | |
---|
289 | lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1) |
---|
290 | lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2) |
---|
291 | lhf3=read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) & lhf3=reform(lhf3) |
---|
292 | |
---|
293 | shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1) |
---|
294 | shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2) |
---|
295 | shf3=read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy", box=box,/nan) & shf3=reform(shf3) |
---|
296 | |
---|
297 | lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1) |
---|
298 | lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2) |
---|
299 | lwr3=read_ncdf('lwr',st3,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) & lwr3=reform(lwr3) |
---|
300 | |
---|
301 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1) |
---|
302 | swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2) |
---|
303 | swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy", box=box,/nan) & swr3=reform(swr3) |
---|
304 | |
---|
305 | net1=swr1+(lwr1+shf1+lhf1) & net2=swr2+(lwr2+shf2+lhf2) & net3=swr3+(lwr3+shf3+lhf3) |
---|
306 | nce1=[net1,net2,net3] |
---|
307 | help, nce1 |
---|
308 | |
---|
309 | lhf1=0. & lhf2=0. & lhf3=0. |
---|
310 | shf1=0. & shf2=0. & shf3=0. |
---|
311 | lwr1=0. & lwr2=0. & lwr3=0. |
---|
312 | swr1=0. & swr2=0. & swr3=0. |
---|
313 | net1=0. & net2=0. & net3=0. |
---|
314 | |
---|
315 | ind=where(finite(net)) |
---|
316 | net=net(ind) & era=era(ind) & trop=trop(ind) & oaf=oaf(ind) |
---|
317 | nce2=nce2(ind) & nce1=nce1(ind) & olr=olr(ind) |
---|
318 | |
---|
319 | |
---|
320 | statistics, net, era, $ |
---|
321 | cor, bias, std, rmsd |
---|
322 | print, cor, bias, std, rmsd |
---|
323 | cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
324 | |
---|
325 | statistics, net, trop, $ |
---|
326 | cor, bias, std, rmsd |
---|
327 | print, cor, bias, std, rmsd |
---|
328 | cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
329 | |
---|
330 | statistics, net, oaf, $ |
---|
331 | cor, bias, std, rmsd |
---|
332 | print, cor, bias, std, rmsd |
---|
333 | cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
334 | |
---|
335 | statistics, net, nce1, $ |
---|
336 | cor, bias, std, rmsd |
---|
337 | print, cor, bias, std, rmsd |
---|
338 | cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
339 | |
---|
340 | statistics, net, nce2, $ |
---|
341 | cor, bias, std, rmsd |
---|
342 | print, cor, bias, std, rmsd |
---|
343 | cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
344 | |
---|
345 | statistics, net, olr, $ |
---|
346 | cor, bias, std, rmsd |
---|
347 | print, cor, bias, std, rmsd |
---|
348 | cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
349 | |
---|
350 | |
---|
351 | splot, net, era, charsize=1.1, title='Net Flux - WHOTS Vs ERAI', $ |
---|
352 | xrange=[-250,250], yrange=[-250,250], small=[2,3,1], psym=2, xmin=1, ymin=1 |
---|
353 | oplot, [-250,250], [-250,250] |
---|
354 | xyouts, 0,-200, cstat_era, charsize=1. |
---|
355 | |
---|
356 | splot, net, trop, charsize=1.1, title='Net Flux - WHOTS Vs TropFlux',/noer, $ |
---|
357 | xrange=[-250,250], yrange=[-250,250], small=[2,3,2], psym=2, xmin=1, ymin=1 |
---|
358 | oplot, [-250,250], [-250,250] |
---|
359 | xyouts, 0,-200, cstat_trop, charsize=1. |
---|
360 | |
---|
361 | splot, net, oaf, charsize=1.1, title='Net Flux - WHOTS Vs OAFlux',/noer, $ |
---|
362 | xrange=[-250,250], yrange=[-250,250], small=[2,3,3], psym=2, xmin=1, ymin=1 |
---|
363 | oplot, [-250,250], [-250,250] |
---|
364 | xyouts, 0,-200, cstat_oaf, charsize=1. |
---|
365 | |
---|
366 | splot, net, nce1, charsize=1.1, title='Net Flux - WHOTS Vs NCEP1',/noer, $ |
---|
367 | xrange=[-250,250], yrange=[-250,250], small=[2,3,4], psym=2, xmin=1, ymin=1 |
---|
368 | oplot, [-250,250], [-250,250] |
---|
369 | xyouts, 0,-200, cstat_nce1, charsize=1. |
---|
370 | |
---|
371 | splot, net, nce2, charsize=1.1, title='Net Flux - WHOTS Vs NCEP2',/noer, $ |
---|
372 | xrange=[-250,250], yrange=[-250,250], small=[2,3,5], psym=2, xmin=1, ymin=1 |
---|
373 | oplot, [-250,250], [-250,250] |
---|
374 | xyouts, 0,-200, cstat_nce2, charsize=1. |
---|
375 | |
---|
376 | splot, net, olr, charsize=1.1, title='Net Flux - WHOTS Vs TropFlux_NRT',/noer, $ |
---|
377 | xrange=[-250,250], yrange=[-250,250], small=[2,3,6], psym=2, xmin=1, ymin=1 |
---|
378 | oplot, [-250,250], [-250,250] |
---|
379 | xyouts, 0,-200, cstat_olr, charsize=1. |
---|
380 | |
---|
381 | closeps |
---|
382 | fig=project_od_env+"WHOTS_validation_net_2004_2007_all_v10.ps" |
---|
383 | spawn, 'mv '+psdir+'idl.ps '+fig |
---|
384 | spawn, 'gv '+fig |
---|
385 | end |
---|