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

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

LMD_MM_MARS: (newphys) modifications mineures pour permettre la generation d'une base d'etats initiaux (start,startfi) pour relancer le GCM en vue d'une simulation meso-echelle particuliere

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