source: trunk/MESOSCALE/PLOT/RESERVE/wind_esa.pro @ 163

Last change on this file since 163 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: 2.1 KB
Line 
1pro wind_esa
2
3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
5filename='ok_mesoscale_profile'
6retrieve='true'
7;retrieve='false'
8file='/d6/vblmd/MERIDIANI_EXOMARS/saves_simu_LS_68.5/jour20/wrfout_d01_2024-03-20_06:00:00'
9start_time=6.
10interv=1.
11landing_site=[353.87-360.,-1.88]
12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
14
15if (retrieve eq 'true') then begin
16
17;
18; load WRF coordinates
19;
20getcdf, file=file, charvar='XLAT', invar=lat
21getcdf, file=file, charvar='XLONG', invar=lon
22getcdf, file=file, charvar='HGT', invar=elevation
23;
24; find simulated lander grid point
25;
26findxy, $
27        x=lon, $
28        y=lat, $
29        point=landing_site, $
30        ind=indp, $
31        flag=2
32;
33; get field
34;
35getcdf, file=file, charvar='U', invar=u
36getcdf, file=file, charvar='V', invar=v
37  ;;; BEWARE: arrays not the same size... because staggering... u^2+v^2 is wrong and IDL does not complain...
38field=sqrt( u(indp[0],indp[1],*,*)^2 + v(indp[0],indp[1],*,*)^2 ) & u=0. & v=0.
39what_I_plot=reform(field)
40;
41; local time
42;
43localtime = float(start_time) + float(interv)*findgen(n_elements(field(0,0,0,*))) ;+ lon(indp[0],indp[1])/15.
44;
45; get model height
46;
47getcdf, file=file, charvar='PHTOT', invar=ph
48height=reform(ph(indp[0],indp[1],*,*))
49;height=total(height,2)/n_elements(height(0,*))
50height=height/1000./3.72
51;heightp=height(0:n_elements(height(*))-2)-elevation(indp[0],indp[1])/1000.
52heightp = height - elevation(indp[0],indp[1]) / 1000.
53;
54; save
55;
56save, what_I_plot, localtime, heightp, filename='yeahyeah'
57
58endif else begin
59
60restore, filename='yeahyeah'   
61       
62endelse
63
64lctime=[7.,8.,9.,10.,11.]
65for ll=0,n_elements(lctime)-1 do begin
66  w = where(localtime eq lctime(ll))
67  print, localtime[w(0)]
68  tab1 = reform(heightp(*,w(0)))
69  tab2 = reform(what_I_plot(*,w(0)))
70  tab1 = tab1[0:n_elements(tab1)-14]
71  tab2 = tab2[0:n_elements(tab2)-14]
72  make_ascii, filename+'_LT'+string(lctime(ll),'(I0)'), tab1, tab2
73  plot, tab1, tab2
74endfor
75
76
77end
Note: See TracBrowser for help on using the repository browser.