1 | pro polar_topo |
---|
2 | ; |
---|
3 | ; |
---|
4 | ; |
---|
5 | what_I_plot=0. |
---|
6 | overcontour=0. |
---|
7 | @polar_inc_topo.pro |
---|
8 | SPAWN, '\rm param_plot.idl ; cp polar_inc_topo.pro param_plot.idl' |
---|
9 | ; |
---|
10 | ; |
---|
11 | ; |
---|
12 | zefile=save_ps |
---|
13 | PS_Start, filename=zefile+'.ps' |
---|
14 | print, zefile+'.ps' |
---|
15 | ;!p.multi=[0,2,2] |
---|
16 | ;!P.Charsize = 0.6 |
---|
17 | ; |
---|
18 | ; |
---|
19 | ; |
---|
20 | getcdf, file=filename, charvar=cfield1, invar=field1 |
---|
21 | getcdf, file=filename, charvar=cfield2, invar=field2 |
---|
22 | getcdf, file=filename, charvar=cfield3, invar=field3 |
---|
23 | getcdf, file=filename, charvar=lonfield, invar=longi |
---|
24 | getcdf, file=filename, charvar=latfield, invar=lati |
---|
25 | ; |
---|
26 | ; |
---|
27 | ; |
---|
28 | |
---|
29 | ;zefile=save_ps+string(100+ntime,'(I0)') |
---|
30 | ;PS_Start, filename=zefile+'.ps' |
---|
31 | ;!P.Charsize = 1.2 |
---|
32 | ;!p.charthick = 2.0 |
---|
33 | ;!p.thick = 2.0 |
---|
34 | ;!x.thick = 2.0 |
---|
35 | ;!y.thick = 2.0 |
---|
36 | ; |
---|
37 | ; |
---|
38 | ; |
---|
39 | ;latmin = -90. & latmax = 10.0 & lonmin = -180. & lonmax = 180. |
---|
40 | map_set, -90., 0., /isotropic, /azimuthal, /noborder, limit=[latmin,lonmin,latmax,lonmax],title=title_user,/advance ;, position=[0.10, 0.12, 0.90, 0.92] |
---|
41 | ; |
---|
42 | ; |
---|
43 | ; |
---|
44 | what_I_plot = reform(field1(*,*,0)) |
---|
45 | overcontour = reform(field2(*,*,0)) |
---|
46 | lon = reform(longi(*,*,0)) |
---|
47 | lat = reform(lati(*,*,0)) |
---|
48 | overvector_x=0. |
---|
49 | overvector_y=0. |
---|
50 | |
---|
51 | ;contour, what_I_plot, lon, lat |
---|
52 | ;PS_End, /PNG |
---|
53 | ;stop |
---|
54 | |
---|
55 | ; |
---|
56 | ; |
---|
57 | ; |
---|
58 | map_latlon, $ |
---|
59 | what_I_plot, $ ; 2D field |
---|
60 | lon, $ ; 1D latitude |
---|
61 | lat, $ ; 1D longitude |
---|
62 | minfield=minfield_init, $ ; minimum value of plotted field (=0: calculate) |
---|
63 | maxfield=maxfield_init, $ ; maximum value of plotted field (=0: calculate) |
---|
64 | overcontour=overcontour, $ ; another 2D field to overplot with contour lines (=0: no) |
---|
65 | overvector_x=overvector_x, $ ; wind vector - x component (=0: no) |
---|
66 | overvector_y=overvector_y, $ ; wind vector - y component (=0: no) |
---|
67 | ct=pal, $ ; color table (33-rainbow is default) |
---|
68 | colors=colors, $ ; number of colors/levels (32 is default) |
---|
69 | title=title_user, $ ; title of the plot ('' is default) |
---|
70 | format=format ; format of colorbar annotations ('(F6.2)' is default) |
---|
71 | ;; |
---|
72 | ;; |
---|
73 | ;; |
---|
74 | ;loadct, 0 |
---|
75 | ;contour, reform(field3(*,*,ntime)), $ |
---|
76 | ; lon,lat, $ |
---|
77 | ; /overplot, $ |
---|
78 | ; levels=[1,100,200], $ |
---|
79 | ; c_labels=[0,0,0], $ |
---|
80 | ; c_thick=1.5, $ |
---|
81 | ; color=255 |
---|
82 | ;PS_End, /PNG |
---|
83 | ;end |
---|
84 | ; |
---|
85 | ; |
---|
86 | ; |
---|
87 | loadct, 0 |
---|
88 | MAP_GRID, $ |
---|
89 | CHARSIZE = 1., $ |
---|
90 | COLOR = 0, $ |
---|
91 | ; LABEL = 2, $ ;; /LABEL or LABEL=2 (one label any 2 grid lines) |
---|
92 | ; LATDEL = 10., $ ;;5 |
---|
93 | ; LONDEL = 30., $ ;;15 |
---|
94 | ;lats=-60, $ |
---|
95 | ; LONLAB = -70., $ ;(latmin+latmax)/2., $ |
---|
96 | ; LATLAB = (lonmin+lonmax)/2., $ |
---|
97 | ;LATLAB = lonmax, $ |
---|
98 | ;LABEL = 1, $ |
---|
99 | LABEL = 2, $ |
---|
100 | LATDEL = 10., $ |
---|
101 | LONDEL = 15., $ |
---|
102 | LONLAB = latmax, $ |
---|
103 | LATLAB = -0.001, $ |
---|
104 | GLINESTYLE = 2, $ |
---|
105 | GLINETHICK = 0.3 |
---|
106 | ;LONALIGN = 0., $ |
---|
107 | ;LATALIGN = 1. |
---|
108 | |
---|
109 | ;; |
---|
110 | ;; |
---|
111 | PS_End, /PNG |
---|
112 | end |
---|