source: trunk/src/paper01/fig1/fig1_no_obs_map.pro @ 182

Last change on this file since 182 was 182, checked in by pinsard, 12 years ago

fix some svn propset

  • Property svn:executable set to *
  • Property svn:keywords set to Id URL
File size: 5.3 KB
Line 
1;+
2; .. _fig1_no_obs_map.pro:
3;
4; ===================
5; fig1_no_obs_map.pro
6; ===================
7;
8; DESCRIPTION
9; ===========
10;
11; :file:`${PROJECT_OD}/mask_oaflux_30N30S.nc`
12; containing OAFLUX grid
13; has been produced by
14; :func:`oaflux_mask_30N30S`.
15;
16; Figure of
17; ++
18; is saved in
19; :file:`${PROJECT_OD}/fig1_no_obs_map.ps`.
20;
21; .. graphviz::
22;
23;    digraph fig1_no_obs_map {
24;
25;       mask [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/mask_oaflux_30N30S.nc"];
26;       lhf_no_obs [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_no_obs.txt"];
27;       sw_no_obs [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/sw_no_obs.txt"];
28;       lw_no_obs [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lw_no_obs.txt"];
29;       figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/fig1_no_obs_map.ps"];
30;
31;       fig1_no_obs_map [shape=box,
32;       fontname=Courier,
33;       color=blue,
34;       URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/paper01/fig1/fig1_no_obs_map.pro",
35;       label="${TROPFLUX}/src/paper01/fig1/fig1_no_obs_map.pro"];
36;
37;       {mask lhf_no_obs sw_no_obs lw_no_obs} -> {fig1_no_obs_map} -> {figure}
38;
39;    }
40;
41; SEE ALSO
42; ========
43;
44; :ref:`data_in_oaflux`
45;
46; :ref:`project_profile.sh`
47; :ref:`project_init.pro`
48;
49; :func:`x_site_location`
50; :func:`y_site_location`
51;
52; :func:`oaflux_mask_30N30S`
53;
54; EXAMPLES
55; ========
56;
57; ::
58;
59;  fig1_no_obs_map
60;
61; TODO
62; ====
63;
64; how text files have been produced ?
65;
66; coding rules
67;
68; complete description
69;
70; handle IO error
71;
72; EVOLUTIONS
73; ==========
74;
75; $Id$
76;
77; - fplod 20110817T104358Z aedon.locean-ipsl.upmc.fr (Darwin)
78;
79;   * get rid of spawn
80;
81; - pinsard 2011-04-20T15:08:28Z loholt1.ipsl.polytechnique.fr (Linux)
82;
83;   * make it work on loholt1
84;
85; - fplod 20110420T134821Z aedon.locean-ipsl.upmc.fr (Darwin)
86;
87;   * externalize functions
88;
89; - fplod 20110412T073818Z aedon.locean-ipsl.upmc.fr (Darwin)
90;
91;   * make it work on cratos
92;   * remove hard coding path
93;   * add graphviz
94;
95; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin)
96;
97;   * minimal header
98;
99;-
100pro fig1_no_obs_map
101;
102@cm_4cal
103@cm_4data
104@cm_4mesh
105@cm_4data
106@cm_project
107;
108reinitplt, /z,/invert
109key_portrait = 1
110;
111openps, FILENAME = project_od_env + 'fig1_no_obs_map.ps'
112close,/all
113;
114yr=365.
115lh_mi=365/yr
116lh_ma=3285/yr
117lh_int=0.25
118sw_mi=365/yr
119sw_ma=3285/yr
120sw_int=0.25
121lw_mi=365/yr
122lw_ma=1460/yr
123lw_int=0.125
124lct=65
125;
126file=project_id_env + 'mask_oaflux_30N30S.nc'
127initncdf, file
128domdef, 30,390,-30,30
129msk=ncdf_lec(file,var='msk')
130;
131fi=project_id_env + 'lhf_no_obs.txt'
132res=read_ascii(fi,data_start=1)
133ff=res.field1
134lat=reform(ff(0,*))
135lon=reform(ff(1,*))
136no=reform(ff(2,*))
137no=no/yr
138;ind=where(no ge lh_ma)
139; no(ind)=no-0.5
140;
141marge1=[0,0,-5,0]
142plt, .4+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,box=box,lct=lct, lh_mi, lh_ma, int=lh_int, $
143   title='a) Turbulent Flux validation sites', subtitle='', small=[1,4,1],/rempl, marge=marge1, format='(i5)'
144NN=n_elements(lat)
145;
146usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
147;
148for n=0,NN-1 do begin
149  x=lon[n]
150  y=lat[n]
151  c=no[n]
152  cmi=lh_mi
153  cma=lh_ma
154  dc=cma-cmi
155  col=((10+244*(c-cmi)/dc) > 10) < 254
156  plots, x,y,psym=8,symsize=1.5,color=col
157endfor
158;
159usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
160;
161for n=0,NN-1 do begin
162  x=lon[n]
163  y=lat[n]
164  c=no[n]
165;
166  plots, x,y,psym=8,symsize=1.5,color=0
167endfor
168;
169fi=project_id_env + 'sw_no_obs.txt'
170res=read_ascii(fi,data_start=1)
171ff=res.field1
172lat=reform(ff(0,*))
173lon=reform(ff(1,*))
174no=reform(ff(2,*))
175no=no/yr
176;ind=where(no ge sw_ma)
177;no(ind)=sw_ma-0.5
178marge1=[0,0,-5,0]
179plt, .4+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,box=box,lct=lct, sw_mi, sw_ma, int=sw_int, $
180   title='b) SWR validation sites', subtitle='', small=[1,4,2],/noer,/rempl, marge=marge1, format='(i5)'
181NN=n_elements(lat)
182;
183usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
184;
185for n=0,NN-1 do begin
186  x=lon[n]
187  y=lat[n]
188  c=no[n]
189  cmi=sw_mi
190  cma=sw_ma
191  dc=cma-cmi
192  col=((10+244*(c-cmi)/dc) > 10) < 254
193  plots, x,y,psym=8,symsize=1.5,color=col
194endfor
195;
196usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
197;
198for n=0,NN-1 do begin
199  x=lon[n]
200  y=lat[n]
201  c=no[n]
202;
203  plots, x,y,psym=8,symsize=1.5,color=0
204endfor
205;
206fi=project_id_env + 'lw_no_obs.txt'
207res=read_ascii(fi,data_start=1)
208ff=res.field1
209lat=reform(ff(0,*))
210lon=reform(ff(1,*))
211no=reform(ff(2,*))
212no=no/yr
213;ind=where(no ge lw_ma)
214;no(ind)=lw_ma-0.25
215;
216marge1=[0,0,-5,0]
217plt, .4+msk*1.e-5,realcont=2,/nocont,/nofill,/noer,xminor=1,yminor=1,box=box,lct=lct,lw_mi, lw_ma, int=lw_int, $
218   title='c) LWR validation sites', subtitle='', small=[1,4,3],/rempl, marge=marge1, format='(i5)'
219NN=n_elements(lat)
220;
221usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
222;
223for n=0,NN-1 do begin
224  x=lon[n]
225  y=lat[n]
226  c=no[n]
227  cmi=lw_mi
228  cma=lw_ma
229  dc=cma-cmi
230  col=((10+244*(c-cmi)/dc) > 10) < 254
231  plots, x,y,psym=8,symsize=1.5,color=col
232endfor
233;
234usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
235;
236for n=0,NN-1 do begin
237  x=lon[n]
238  y=lat[n]
239  c=no[n]
240;
241  plots, x,y,psym=8,symsize=1.5,color=0
242endfor
243;
244; independent validation sites
245;
246plots, 61.5, 15.5,psym=2      ; as location
247plots, 331, 25.5,psym=2       ; subduction (central)
248plots, 326, 18,psym=2         ; subduction (sw)
249plots, 338, 18,psym=2         ; subduction (se)
250plots, 156, -1.7 , psym=2     ; coare
251plots, 274.2, -21, psym=2     ; stratus
252plots, 202.46, 22.45, psym=2  ; WHOTS
253;
254closeps
255;
256end
Note: See TracBrowser for help on using the repository browser.