1 | pro polaract |
---|
2 | ; |
---|
3 | ; |
---|
4 | ; |
---|
5 | what_I_plot=0. |
---|
6 | overcontour=0. |
---|
7 | @polaract_inc.pro |
---|
8 | SPAWN, '\rm param_plot.idl ; cp polar_inc.pro param_plot.idl' |
---|
9 | ; |
---|
10 | ; |
---|
11 | ; |
---|
12 | zefile=save_ps |
---|
13 | PS_Start, filename=zefile+'.ps' |
---|
14 | print, zefile+'.ps' |
---|
15 | !P.Charsize = 0.6 |
---|
16 | !P.multi=[0,2,1] |
---|
17 | ;!p.charthick = 2.0 |
---|
18 | ;!p.thick = 2.0 |
---|
19 | ;!x.thick = 2.0 |
---|
20 | ;!y.thick = 2.0 |
---|
21 | ; |
---|
22 | ; |
---|
23 | ; |
---|
24 | jojo = ['gw','gwsmooth'] |
---|
25 | ;jojo = ['gwplus','gwsmooth'] |
---|
26 | ;jojo = ['gwhires','gw'] |
---|
27 | filename_sav = filename |
---|
28 | for i=0,n_elements(jojo)-1 do begin |
---|
29 | ; |
---|
30 | filename = '/donnees/aslmd/MODELES//LMD_MM_MARS//OUTILS_CONVERSION/'+jojo(i)+'/'+filename_sav |
---|
31 | print, filename |
---|
32 | ; |
---|
33 | getcdf, file=filename, charvar=cfield1, invar=field1 |
---|
34 | getcdf, file=filename, charvar=cfield2, invar=field2 |
---|
35 | getcdf, file=filename, charvar='XLONG', invar=longi |
---|
36 | getcdf, file=filename, charvar='XLAT', invar=lati |
---|
37 | ; |
---|
38 | ; |
---|
39 | ; |
---|
40 | if (jojo(i) eq 'gwhires') then begin |
---|
41 | sp = 6;5 ;; relaxation width |
---|
42 | nx = n_elements(longi(0,*)) |
---|
43 | ny = n_elements(longi(*,0)) |
---|
44 | field1 = field1 (sp:nx-sp-1,sp:ny-sp-1,*,*) |
---|
45 | field2 = field2 (sp:nx-sp-1,sp:ny-sp-1,*) |
---|
46 | longi = longi (sp:nx-sp-1,sp:ny-sp-1,*) |
---|
47 | lati = lati (sp:nx-sp-1,sp:ny-sp-1,*) |
---|
48 | endif |
---|
49 | ; |
---|
50 | ; |
---|
51 | ; |
---|
52 | latmin = -90. & latmax = -50.0 & lonmin = -180. & lonmax = 180. |
---|
53 | ;lonmin = 0. & lonmax = 90. ;; pour des tranches |
---|
54 | map_set, -90., 0., /isotropic, /azimuthal, /noborder, limit=[latmin,lonmin,latmax,lonmax],title=title_user,/advance ;, position=[0.10, 0.12, 0.90, 0.92] |
---|
55 | ; |
---|
56 | ; |
---|
57 | ; |
---|
58 | ;; average on time and height |
---|
59 | dbl_integral = TOTAL(TOTAL(field1*field1,3),3) |
---|
60 | dbl_integral = TEMPORARY(dbl_integral) / n_elements(field1(0,0,*,0)) / n_elements(field1(0,0,0,*)) |
---|
61 | print, n_elements(field1(0,0,*,0)), n_elements(field1(0,0,0,*)) |
---|
62 | ;; smooth a little bit |
---|
63 | smoothampl=2 ;0;3 |
---|
64 | overcontour = smooth(TEMPORARY(dbl_integral),[smoothampl,smoothampl],/EDGE_TRUNCATE) |
---|
65 | ;; plot topography |
---|
66 | what_I_plot = reform(field2(*,*,0)) |
---|
67 | ;; coordinates |
---|
68 | lon = reform(longi(*,*,0)) |
---|
69 | lat = reform(lati (*,*,0)) |
---|
70 | overvector_x=0. |
---|
71 | overvector_y=0. |
---|
72 | ; |
---|
73 | ; |
---|
74 | ; |
---|
75 | SPAWN, '\rm param_plot.idl ; cp polaract_inc.pro param_plot.idl' |
---|
76 | map_latlon, $ |
---|
77 | what_I_plot, $ ; 2D field |
---|
78 | lon, $ ; 1D latitude |
---|
79 | lat, $ ; 1D longitude |
---|
80 | minfield=minfield_init, $ ; minimum value of plotted field (=0: calculate) |
---|
81 | maxfield=maxfield_init, $ ; maximum value of plotted field (=0: calculate) |
---|
82 | overcontour=overcontour, $ ; another 2D field to overplot with contour lines (=0: no) |
---|
83 | overvector_x=overvector_x, $ ; wind vector - x component (=0: no) |
---|
84 | overvector_y=overvector_y, $ ; wind vector - y component (=0: no) |
---|
85 | ct=pal, $ ; color table (33-rainbow is default) |
---|
86 | colors=colors, $ ; number of colors/levels (32 is default) |
---|
87 | title=title_user, $ ; title of the plot ('' is default) |
---|
88 | format=format ; format of colorbar annotations ('(F6.2)' is default) |
---|
89 | ; |
---|
90 | ; |
---|
91 | ; |
---|
92 | loadct, 0 |
---|
93 | MAP_GRID, CHARSIZE = 0.6, $ |
---|
94 | COLOR = 0, $ |
---|
95 | LABEL = 1, $ (one label any 1 grid lines) |
---|
96 | LATDEL = 05., $ |
---|
97 | LONDEL = 45., $ |
---|
98 | lats=-60, $ |
---|
99 | GLINESTYLE = 1, $ |
---|
100 | GLINETHICK = 0.1, $ |
---|
101 | LONLAB = -70., $ |
---|
102 | LATLAB = (lonmin+lonmax)/2. |
---|
103 | ; |
---|
104 | ; |
---|
105 | ; |
---|
106 | endfor |
---|
107 | PS_End, /PNG |
---|
108 | end |
---|