source: trunk/MESOSCALE/PLOT/SPEC/SERIES/mawd.pro @ 205

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

LMD_MM_MARS: update graphic tools for GW, water cycle + generic graphic stuff (ps_start, map_latlon) + update notes

File size: 2.6 KB
Line 
1pro mawd
2
3;;;;;;;
4experiment='a035'
5;experiment='a040'
6;experiment='a045'
7;;f_user='/donnees/aslmd/SVN/trunk/mesoscale/TMPDIR/GCMINI/mawd.nc'
8;;f_user='/tmp7/aslmd/mawd.nc'
9f_user='/d5/aslmd/WATERCYCLE/mawd_'+experiment+'.nc'
10v_user = 'mtot'
11x_user = 'Time'
12y_user = 'latitude'
13transp = 'yes'
14tes = 'no'
15;;;;;;;
16;f_user='/donnees/aslmd/TES/TES.SeasonalClimatology.nc'
17;v_user = 'water'
18;x_user = 'time'
19;y_user = 'latitude'
20;transp = 'yes'
21;tes = 'yes'
22;;;;;;;
23
24
25what_I_plot=0.
26overcontour=0
27@mawd_inc.pro
28print, lev
29SPAWN, '\rm param_plot.idl ; cp mawd_inc.pro param_plot.idl'
30
31PS_START, file='mawd_'+experiment+'.ps'
32;  !P.Charsize = 1.2
33;  !p.charthick = 2.0
34;  !p.thick = 2.0
35;  !x.thick = 2.0
36;  !y.thick = 2.0
37
38cdfid = ncdf_open(f_user)
39
40varid=ncdf_varid(cdfid,v_user)
41ncdf_varget, cdfid, varid, champ
42
43varid=ncdf_varid(cdfid,y_user)
44ncdf_varget, cdfid, varid, yy
45
46varid=ncdf_varid(cdfid,x_user)
47ncdf_varget, cdfid, varid, xx
48
49if (tes eq 'no') then begin
50  ;;; en precip-microns
51  champ = champ * 1.e6 / 917.
52  ;;;; entre 0 et 360
53  ;xx = xx MOD 360
54  xx = xx - 360.*3.
55endif else begin
56  xx = xx - 360.*2.
57endelse
58
59help, champ
60if (tes eq 'no') then begin
61  what_I_plot = champ
62endif else begin
63  what_I_plot = float(reform(champ(0,*,*)))
64endelse
65help, what_I_plot
66overcontour = what_I_plot
67
68if (tes eq 'yes') then begin
69  w=where(what_I_plot eq -1.)
70  what_I_plot[w] = !VALUES.F_NAN
71  overcontour[w] = !VALUES.F_NAN
72endif
73
74if (transp eq 'yes') then begin
75        what_I_plot = transpose(what_I_plot)
76        overcontour = transpose(overcontour)
77endif
78
79what_I_plot = smooth(what_I_plot,[10,1])
80
81map_latlon, $
82        what_I_plot, $                          ; 2D field
83        xx, $                                  ; 1D latitude OR 2D
84        yy, $                                  ; 1D longitude OR 2D
85;        minfield=minfield_init, $               ; minimum value of plotted field (=0: calculate)
86;        maxfield=maxfield_init, $               ; maximum value of plotted field (=0: calculate)
87        overcontour=overcontour, $              ; another 2D field to overplot with contour lines (=0: no)
88;        overvector_x=overvector_x, $            ; wind vector - x component (=0: no)
89;        overvector_y=overvector_y, $            ; wind vector - y component (=0: no)
90        ct=pal, $                               ; color table (33-rainbow is default)
91;        colors=colors, $                        ; number of colors/levels (32 is default)
92;        title=title_user, $                     ; title of the plot ('' is default)
93        format=format                           ; format of colorbar annotations ('(F6.2)' is default)
94
95
96PS_END, /PNG
97
98end
Note: See TracBrowser for help on using the repository browser.