source: trunk/MESOSCALE/PLOT/SPEC/POLAR/polaract.pro @ 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: 3.4 KB
Line 
1pro polaract
2;
3;
4;
5what_I_plot=0.
6overcontour=0.
7@polaract_inc.pro
8SPAWN, '\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;
24jojo = ['gw','gwsmooth']
25        ;jojo = ['gwplus','gwsmooth']
26        ;jojo = ['gwhires','gw']
27filename_sav = filename
28for i=0,n_elements(jojo)-1 do begin
29;
30filename = '/donnees/aslmd/MODELES//LMD_MM_MARS//OUTILS_CONVERSION/'+jojo(i)+'/'+filename_sav
31print, filename
32;
33getcdf, file=filename, charvar=cfield1, invar=field1
34getcdf, file=filename, charvar=cfield2, invar=field2
35getcdf, file=filename, charvar='XLONG', invar=longi
36getcdf, file=filename, charvar='XLAT', invar=lati
37;
38;
39;
40if (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,*)
48endif
49;
50;
51;
52latmin = -90. & latmax = -50.0 & lonmin = -180. & lonmax = 180.
53        ;lonmin = 0. & lonmax = 90. ;; pour des tranches
54map_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
59dbl_integral = TOTAL(TOTAL(field1*field1,3),3)
60dbl_integral = TEMPORARY(dbl_integral) / n_elements(field1(0,0,*,0)) / n_elements(field1(0,0,0,*))
61print, n_elements(field1(0,0,*,0)), n_elements(field1(0,0,0,*))
62  ;; smooth a little bit
63smoothampl=2 ;0;3
64overcontour = smooth(TEMPORARY(dbl_integral),[smoothampl,smoothampl],/EDGE_TRUNCATE)
65  ;; plot topography
66what_I_plot = reform(field2(*,*,0))
67  ;; coordinates
68lon = reform(longi(*,*,0))
69lat = reform(lati (*,*,0))
70overvector_x=0.
71overvector_y=0.
72;
73;
74;
75SPAWN, '\rm param_plot.idl ; cp polaract_inc.pro param_plot.idl'
76map_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;
92loadct, 0
93MAP_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;
106endfor
107PS_End, /PNG
108end
Note: See TracBrowser for help on using the repository browser.