source: trunk/MESOSCALE/PLOT/RESERVE/wind_stress.idl @ 205

Last change on this file since 205 was 85, checked in by aslmd, 14 years ago

LMD_MM_MARS et LMD_LES_MARS: ajout des routines IDL pour tracer les sorties --> voir mesoscale/PLOT

File size: 723 bytes
Line 
1
2;
3; field1='U'
4; field2='V'
5; winds=['PSFC','tk']
6;
7
8if ((winds(0) eq 'PSFC') $
9        and (winds(1) eq 'tk') $
10        and (field1 eq 'U') $
11        and (field2 eq 'V')) then begin
12
13
14print, 'computing wind stress'
15
16title='Wind stress (!NN!N.m!U-2!N)'
17
18temp=overvector_y
19press=overvector_x
20gasconst=192.
21rho=press/(gasconst*temp)
22
23vonkar=0.4
24heightlay=5.66  ;; a calculer ??
25roughness=0.01
26cd=vonkar/(alog(heightlay/roughness))
27cd=cd^2
28
29velocity2=what_I_plot^2 + overcontour^2
30
31stress=rho*cd*velocity2
32what_I_plot=stress
33
34;;overcontour=-10.*alog(overvector_x/610.)
35overcontour=overvector_x
36
37overvector_x=0
38overvector_y=0
39
40;;tmpfield=reform(u[*,*,0,*])
41;;press_bg = total(tmpfield,3)/n_elements(tmpfield(0,0,*))
42;;overcontour=press_bg
43
44
45endif
Note: See TracBrowser for help on using the repository browser.