source: trunk/MESOSCALE/PLOT/SPEC/GW/gravitwave2.pro @ 205

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

mars

M 130 mars/libf/phymars/callradite.F
M 130 mars/README
no more need to modify callradite.F prior to compilation
[but still dimradmars.h must be modified]

--> in callradite.F we now have

-- DEFAULT name_iaer(1) is "dust_conrath"
-- IF (doubleq.AND.active) name_iaer(1) = "dust_doubleq"
-- IF (water.AND.activice) name_iaer(2) = "h2o_ice"

M 130 000-USERS
small meeting about SVN for "planeto" team

M 130 mars/libf/phymars/meso_physiq.F
purely cosmetic changes

M 130 mesoscale/PLOT/MINIMAL/map_latlon.pro
M 130 mesoscale/PLOT/SPEC/GW/gravitwave2.pro
M 130 mesoscale/PLOT/SPEC/GW/gravitwaveprof.pro
M 130 mesoscale/PLOT/SPEC/GW/gravitwave_inc.pro
A 0 mesoscale/PLOT/SPEC/MAP/defs/THARSIS_newphys_bugnoRAC_RACgcm_TAUTES.map_uvt_inc.pro
M 130 mesoscale/PLOT/SPEC/MAP/map_uvt.pro
graphic stuff for GW studies and H2O cycle

  • Property svn:executable set to *
File size: 4.8 KB
Line 
1pro gravitwave2
2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4        ;;;; KEEP REFERENCES of FIRST PLOTS
5        ;file='../EN_COURS/gw/ok_hires_wrfout_d01_9999-09-09_09:00:00_z'
6        ;file='../EN_COURS/gw/_wrfout_d01_9999-09-09_09:00:00_z'
7        ;file='../LMD_MM_MARS/TESTGW/_wrfout_d01_9999-09-09_09:00:00_z'
8        ;;file='../LMD_MM_MARS/TESTGW/wind15_wrfout_d01_9999-09-09_09:00:00_z'
9        ;file='../TESTGW/wind20c_wrfout_d01_9999-09-09_09:00:00_z'
10folder='/d5/aslmd/GRAVITWAVE/GW_MARS_highwind_3D.157077/'
11folder='/d5/aslmd/GRAVITWAVE/GW_MARS_highwind_narrowmountain_2D.156878/'
12;folder='/d5/aslmd/GRAVITWAVE/GW_MARS_highwind_narrowmountain_3D.157025/'
13folder='/d5/aslmd/GRAVITWAVE/GW_MARS_highwind_narrowmountain_2D.morepoints.160818/'
14folder='/d5/aslmd/GRAVITWAVE/GW_MARS_highwind_3D_loweropacity_morepoints_LT15.161544/'
15folder='/home/aslmd/GRAVITWAVE/GW_MARS_highwind_3D_loweropacity_morepoints.161542/'
16;folder='/home/aslmd/GRAVITWAVE/GW_MARS_highwind_3D_loweropacity_morepoints_LTcst.168440/'
17;folder='/home/aslmd/GRAVITWAVE/GW_MARS_highwind_3D_loweropacity_morepoints_widehill.168468/'
18file=folder+'wrfout_d01_9999-09-09_09:00:00_z'
19charvar='W' & charvarc='W'
20charvar='W' & charvarc='tk' & cond=0
21;charvar='tk' & charvarc='W'
22;charvar='tk' & charvarc='W' & cond=1
23;charvar='tk' & charvarc='tk' & cond=1
24;charvar='tk' & charvarc='tk' & cond=0
25;;charvar='tpot' & charvarc='tpot'
26charvar='HR_NLTE' & charvarc='tk' & cond=0
27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
28        ;folder='/home/aslmd/GRAVITWAVE/'
29        ;file=folder+'GW_MARS_highwind_3D_loweropacity_morepoints_diff.nc'
30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
31;
32;
33;
34what_I_plot=0. & overcontour=0.
35SPAWN, '\rm param_plot.idl ; cp gravitwave_inc.pro param_plot.idl'
36;
37;
38;
39getcdf, $
40        file=file, $
41        charvar=charvar, $
42        invar=invar
43getcdf, $
44        file=file, $
45        charvar=charvarc, $
46        invar=invarc
47;getcdf, $
48;        file=file, $
49;        charvar='vert', $
50;        invar=vert
51getcdf, $
52         file='/home/aslmd/GRAVITWAVE/GW_MARS_highwind_3D.157077/wrfout_d01_9999-09-09_09:00:00_z', $
53         charvar='vert', $
54         invar=vert
55getcdf, $
56        file=file, $
57        charvar='PTOT', $
58        invar=columnp
59;
60;
61;
62;for nt=4,10 do begin
63;for nt=27,27 do begin
64for nt=1,40 do begin
65;for nt=9,9 do begin
66;for nt=0,20 do begin
67zefile='gravitwave_'+charvar+'_'+charvarc+'_'+string(nt+100,'(I0)')
68if (n_elements(cond) ne 0) then if (cond ne 0) then zefile = 'cond_' + zefile
69;
70;
71;
72  PS_Start, filename=zefile+'.ps' & print, zefile+'.ps'
73;
74;
75;
76s = size(invar) & middle = floor(s[2]/2) & print, 'PLOT at y subs ', middle
77what_I_plot = reform(invar(*,middle,*,nt)) & print, min(what_I_plot), max(what_I_plot)
78overcontour = reform(invarc(*,middle,*,nt))
79   if (n_elements(cond) ne 0) then begin
80   if (cond ne 0) then begin
81     column = columnp
82     ;column = reform(columnp(*,1,*,1))
83     @tempcond.inc
84     yeye = reform(overplot(*,middle,*,nt))
85     w = where(yeye le 0.) & yeye[w] = 0.
86     if (charvar eq 'tk') then what_I_plot = what_I_plot - yeye
87     if (charvarc eq 'tk') then overcontour = overcontour - yeye
88   endif
89   endif
90xx = findgen(n_elements(what_I_plot(*,0)))
91zz = vert / 1000.
92;
93        ;;w = where(what_I_plot lt 2.)
94        ;;w = where(what_I_plot lt 0.)
95        ;w = where(what_I_plot lt -1.)
96        ;;w = where(what_I_plot lt -3.)
97        ;if (w(0) ne -1) then begin
98        ;for i=0,n_elements(w)-1 do begin
99        ; ind = ARRAY_INDICES(what_I_plot, w(i))
100        ; print, 'x '+string(ind(0),'(I0)')+' z '+string(zz(ind(1)),'(I0)')+' t '+string(nt*925./3700.,'(F4.1)'), what_I_plot(ind[0],ind[1])
101        ;endfor
102        ;endif
103;
104;
105;
106if (charvar eq 'HR_NLTE') then begin
107        what_I_plot = what_I_plot * 3700. ;; en K/hour
108        ;w = where((zz le 60.) and (zz ge 50.)) ;; pour enlever la ligne d'altitude ou le NLTE est active
109        ;if (w(0) ne -1) then what_I_plot(*,w) = 0.
110endif
111;
112;
113;
114map_latlon, $
115        what_I_plot, $                          ; 2D field
116        xx, $                                   ; 1D latitude
117        zz, $                                   ; 1D longitude
118;        minfield_init, $               ; minimum value of plotted field (=0: calculate)
119;        maxfield_init, $               ; maximum value of plotted field (=0: calculate)
120        overcontour=overcontour, $              ; another 2D field to overplot with contour lines (=0: no)
121;        overvector_x=overvector_x, $            ; wind vector - x component (=0: no)
122;        overvector_y=overvector_y, $            ; wind vector - y component (=0: no)
123;        ct=pal, $                               ; color table (33-rainbow is default)
124;        colors=colors, $                        ; number of colors/levels (32 is default)
125;        title=title_user, $                     ; title of the plot ('' is default)
126        format=format                           ; format of colorbar annotations ('(F6.2)' is default)
127;
128;
129;
130PS_End, /PNG
131SPAWN, 'mv '+zefile+'.png '+folder+' ; \rm '+zefile+'.*ps*'
132endfor
133end
Note: See TracBrowser for help on using the repository browser.