1 | pro mawd |
---|
2 | |
---|
3 | ;;;;;;; |
---|
4 | f_user='/donnees/aslmd/SVN/trunk/mesoscale/TMPDIR/GCMINI/mawd.nc' |
---|
5 | ;f_user='/tmp7/aslmd/mawd.nc' |
---|
6 | v_user = 'mtot' |
---|
7 | x_user = 'Time' |
---|
8 | y_user = 'latitude' |
---|
9 | transp = 'yes' |
---|
10 | tes = '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 | |
---|
21 | what_I_plot=0. |
---|
22 | overcontour=0 |
---|
23 | @mawd_inc.pro |
---|
24 | print, lev |
---|
25 | SPAWN, '\rm param_plot.idl ; cp mawd_inc.pro param_plot.idl' |
---|
26 | |
---|
27 | PS_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 | |
---|
34 | cdfid = ncdf_open(f_user) |
---|
35 | |
---|
36 | varid=ncdf_varid(cdfid,v_user) |
---|
37 | ncdf_varget, cdfid, varid, champ |
---|
38 | |
---|
39 | varid=ncdf_varid(cdfid,x_user) |
---|
40 | ncdf_varget, cdfid, varid, xx |
---|
41 | |
---|
42 | varid=ncdf_varid(cdfid,y_user) |
---|
43 | ncdf_varget, cdfid, varid, yy |
---|
44 | |
---|
45 | if (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 |
---|
50 | endif else begin |
---|
51 | xx = xx - 360.*2. |
---|
52 | endelse |
---|
53 | |
---|
54 | help, champ |
---|
55 | if (tes eq 'no') then begin |
---|
56 | what_I_plot = champ |
---|
57 | endif else begin |
---|
58 | what_I_plot = float(reform(champ(0,*,*))) |
---|
59 | endelse |
---|
60 | help, what_I_plot |
---|
61 | overcontour = what_I_plot |
---|
62 | |
---|
63 | if (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 |
---|
67 | endif |
---|
68 | |
---|
69 | if (transp eq 'yes') then begin |
---|
70 | what_I_plot = transpose(what_I_plot) |
---|
71 | overcontour = transpose(overcontour) |
---|
72 | endif |
---|
73 | |
---|
74 | map_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 | |
---|
89 | PS_END, /PNG |
---|
90 | |
---|
91 | end |
---|