source: trunk/src/paper01/fig14/subdctn_ses_validation_net_1991_93_all_v10.pro @ 43

Last change on this file since 43 was 43, checked in by pinsard, 13 years ago

add minimal header in paper01 IDL files

File size: 11.3 KB
Line 
1;+
2; .. _subdctn_ses_validation_net_1991_93_all_v10.pro
3;
4; ==============================================
5; subdctn_ses_validation_net_1991_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> subdctn_ses_validation_net_1991_93_all_v10
23;
24;
25; EVOLUTIONS
26; ==========
27;
28; $Id$
29;
30; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin)
31;
32;   * minimal header
33;
34;-
35pro subdctn_ses_validation_net_1991_93_all_v10
36@common
37reinitplt, /z,/invert
38key_portrait = 1
39coefpalit=.9
40
41openps, FILENAME = 'idl.ps'
42; partie a changer
43
44;; subduction experiment in the atlantic in 1991-93
45box=[337.5, 338.5, 17.5, 18.5]
46
47;; first leg
48
49;; second leg
50
51fi="/Users/pkb/data/Mooring_data/subduction_expt_atl/met_data_subduct_ses_92.txt"
52res=read_ascii(fi,data_start=1)
53ff=res.field1
54swr_92=reform(ff(7,*))
55lhf_92=reform(ff(5,*))
56shf_92=reform(ff(6,*))
57lwr_92=reform(ff(8,*))
58net_92=[swr_92+lwr_92+shf_92+lhf_92]
59help, net_92
60
61;; second leg
62
63fi="/Users/pkb/data/Mooring_data/subduction_expt_atl/met_data_subduct_ses_93.txt"
64res=read_ascii(fi,data_start=1)
65ff=res.field1
66swr_93=reform(ff(7,*))
67lhf_93=reform(ff(5,*))
68shf_93=reform(ff(6,*))
69lwr_93=reform(ff(8,*))
70net_93=[swr_93+lwr_93+shf_93+lhf_93]
71help, net_93
72
73net=[net_92, net_93]
74help, net
75
76;; reading other data sets
77
78st1=19920209 & en1=19920911
79st2=19920921 & en2=19930618
80
81file="/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc"
82initncdf, file
83swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1)
84swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2)
85
86file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc'
87initncdf, file
88lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1)
89lhf2=-1*read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2)
90
91file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc'
92initncdf, file
93shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1)
94shf2=-1*read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2)
95
96file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc'
97initncdf, file
98lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1)
99lwr2=read_ncdf('lwr',st2-1,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2)
100
101net1=swr1+(lwr1+shf1+lhf1) & net2=swr2+(lwr2+shf2+lhf2)
102era=[net1,net2]
103help, era
104
105lhf1=0. & lhf2=0. & shf1=0. & shf2=0.
106lwr1=0. & lwr2=0. & swr1=0. & swr2=0.
107net1=0. & net2=0.
108
109file="/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"
110initncdf, file
111lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1)
112lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2)
113shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1)
114shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2)
115lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1)
116lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2)
117swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1)
118swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2)
119
120file="/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc"
121initncdf, file
122olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1)
123olr2=read_ncdf("sw", st2-1, en2, file=file,/nostr, box=box) & olr2=grossemoyenne(olr2, "xy",/nan, box=box) & olr2=reform(olr2)
124
125net1=swr1+lwr1+(shf1+lhf1) & net2=swr2+lwr2+(shf2+lhf2)
126neto_1=olr1+lwr1+lhf1+shf1 & neto_2=olr2+lwr2+lhf2+shf2
127trop=[net1,net2] & olr=[neto_1,neto_2]
128help, trop, olr
129
130file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'
131initncdf, file
132swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1)
133swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2)
134
135file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'
136initncdf, file
137lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1)
138lwr2=-1*read_ncdf("lwr", st2, en2, file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2)
139
140file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc'
141initncdf, file
142lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1)
143lhf2=-1*read_ncdf("lhf", st2, en2, file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2)
144
145file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc'
146initncdf, file
147shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1)
148shf2=-1*read_ncdf("shf", st2, en2, file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2)
149
150net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2
151oaf=[net1,net2]
152help, oaf
153
154fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc'
155initncdf, fi
156swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1)
157swr2=read_ncdf("swr", st2, en2, file=fi,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2)
158
159fi="/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc"
160initncdf, fi
161lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1)
162lwr2=-1*read_ncdf("lwr", st2, en2, file=fi,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2)
163
164fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc'
165initncdf, fi
166lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1)
167lhf2=-1*read_ncdf("lhf", st2, en2, file=fi,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2)
168
169fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc'
170initncdf, fi
171shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1)
172shf2=-1*read_ncdf("shf", st2, en2, file=fi,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2)
173
174net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2
175nce2=[net1,net2]
176help, nce2
177
178file="/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc"
179initncdf, file
180lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1)
181lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2)
182shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1)
183shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2)
184lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1)
185lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2)
186swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1)
187swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2)
188net1=swr1+(lwr1+shf1+lhf1) & net2=swr2+(lwr2+shf2+lhf2)
189nce1=[net1,net2]
190
191help, nce1
192
193ind=where(finite(net))
194net=net(ind) & era=era(ind) & trop=trop(ind) & oaf=oaf(ind) & nce2=nce2(ind) & nce1=nce1(ind)
195olr=olr(ind)
196
197statistics, net, era, $
198                 cor, bias, std, rmsd
199print, cor, bias, std,  rmsd
200cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
201
202statistics, net, trop, $
203                 cor, bias, std, rmsd
204print, cor, bias, std,  rmsd
205cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
206
207statistics, net, oaf, $
208                 cor, bias, std, rmsd
209print, cor, bias, std,  rmsd
210cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
211
212statistics, net, nce1, $
213                 cor, bias, std, rmsd
214print, cor, bias, std,  rmsd
215cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
216
217statistics, net, nce2, $
218                 cor, bias, std, rmsd
219print, cor, bias, std,  rmsd
220cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
221
222statistics, net, olr, $
223                 cor, bias, std, rmsd
224print, cor, bias, std,  rmsd
225cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
226
227
228splot, net, era, charsize=1.1, title='Net Flux - Subdn. ses Vs ERAI', $
229     xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1
230oplot, [-200,200], [-200,200]
231xyouts, 0,-175, cstat_era, charsize=1.
232
233splot, net, trop, charsize=1.1, title='Net Flux - Subdn. ses Vs TropFlux',/noer, $
234     xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1
235oplot, [-200,200], [-200,200]
236xyouts, 0,-175, cstat_trop, charsize=1.
237
238splot, net, oaf, charsize=1.1, title='Net Flux - Subdn. ses Vs OAFlux',/noer, $
239     xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1
240oplot, [-200,200], [-200,200]
241xyouts, 0,-175, cstat_oaf, charsize=1.
242
243splot, net, nce1, charsize=1.1, title='Net Flux - Subdn. ses Vs NCEP1',/noer, $
244     xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1
245oplot, [-200,200], [-200,200]
246xyouts, 0,-175, cstat_nce1, charsize=1.
247
248splot, net, nce2, charsize=1.1, title='Net Flux - Subdn. ses Vs NCEP2',/noer, $
249     xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1
250oplot, [-200,200], [-200,200]
251xyouts, 0,-175, cstat_nce2, charsize=1.
252
253splot, net, olr, charsize=1.1, title='Net Flux - Subdn. ses Vs TropFlux_NRT',/noer, $
254     xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1
255oplot, [-200,200], [-200,200]
256xyouts, 0,-175, cstat_olr, charsize=1.
257
258stop
259closeps
260fig="subdctn_ses_validation_net_1991_93_all_v10.ps"
261spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig
262spawn, 'gv '+cpsdir+fig
263return
264end
Note: See TracBrowser for help on using the repository browser.