source: trunk/mesoscale/PLOT/SPEC/SERIES/mawd.pro @ 112

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

LMD_MM_MARS et LMD_LES_MARS: fichiers pour graphiques et MAJ notes

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