[85] | 1 | pro polar |
---|
| 2 | ; |
---|
| 3 | ; |
---|
| 4 | ; |
---|
| 5 | what_I_plot=0. |
---|
| 6 | overcontour=0. |
---|
| 7 | @polar_inc.pro |
---|
| 8 | SPAWN, '\rm param_plot.idl ; cp polar_inc.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,3,2] |
---|
| 16 | ;;!p.multi=[0,3,1] |
---|
| 17 | ;!p.multi=[0,2,2] |
---|
| 18 | ;!P.Charsize = 0.6 |
---|
| 19 | ; |
---|
| 20 | ; |
---|
| 21 | ; |
---|
| 22 | jojo = ['gw','gwsmooth'] |
---|
| 23 | ;jojo = ['gwhires','gw'] |
---|
| 24 | jojo = ['gw/30km'] |
---|
| 25 | filename_sav = filename |
---|
| 26 | for i=0,n_elements(jojo)-1 do begin |
---|
| 27 | ; |
---|
| 28 | filename = '/donnees/aslmd/MODELES//LMD_MM_MARS//OUTILS_CONVERSION/'+jojo(i)+'/'+filename_sav |
---|
| 29 | print, filename |
---|
| 30 | ; |
---|
| 31 | getcdf, file=filename, charvar=cfield1, invar=field1 |
---|
| 32 | getcdf, file=filename, charvar=cfield2, invar=field2 |
---|
| 33 | getcdf, file=filename, charvar=cfield3, invar=field3 |
---|
| 34 | getcdf, file=filename, charvar='XLONG', invar=longi |
---|
| 35 | getcdf, file=filename, charvar='XLAT', invar=lati |
---|
| 36 | ; |
---|
| 37 | ; |
---|
| 38 | ; |
---|
| 39 | |
---|
| 40 | for ntime = 0, n_elements(field1(0,0,0,*))-1 do begin |
---|
| 41 | ; for ntime = 11, n_elements(field1(0,0,0,*))-1, 5 do begin |
---|
| 42 | ;for ntime = 16, n_elements(field1(0,0,0,*))-1, 5 do begin |
---|
| 43 | |
---|
| 44 | ;for ntime = 06, n_elements(field1(0,0,0,*))-1, 5 do begin |
---|
| 45 | |
---|
| 46 | ;;; MOVIE MOVIE MOVIE |
---|
| 47 | zefile=save_ps+string(100+ntime,'(I0)') |
---|
| 48 | PS_Start, filename=zefile+'.ps' |
---|
| 49 | ;!P.Charsize = 1.2 |
---|
| 50 | ;!p.charthick = 2.0 |
---|
| 51 | ;!p.thick = 2.0 |
---|
| 52 | ;!x.thick = 2.0 |
---|
| 53 | ;!y.thick = 2.0 |
---|
| 54 | ; |
---|
| 55 | ; |
---|
| 56 | ; |
---|
| 57 | latmin = -90. & latmax = -50.01 & lonmin = -180. & lonmax = 180. |
---|
| 58 | 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] |
---|
| 59 | ; |
---|
| 60 | ; |
---|
| 61 | ; |
---|
| 62 | what_I_plot = reform(field1(*,*,nlevel,ntime)) |
---|
| 63 | overcontour = reform(field2(*,*,ntime)) |
---|
| 64 | lon = reform(longi(*,*,ntime)) |
---|
| 65 | lat = reform(lati (*,*,ntime)) |
---|
| 66 | overvector_x=0. |
---|
| 67 | overvector_y=0. |
---|
| 68 | ; |
---|
| 69 | ; |
---|
| 70 | ; |
---|
| 71 | ;loadct, 0 |
---|
| 72 | ;w=where(overcontour lt -5000.) & overcontour[w]=-5000. |
---|
| 73 | ;contour, overcontour, lon, lat, /cell_fill, nlevels=32, /overplot ;& overcontour=0 |
---|
| 74 | ; |
---|
| 75 | ; |
---|
| 76 | ; |
---|
| 77 | map_latlon, $ |
---|
| 78 | what_I_plot, $ ; 2D field |
---|
| 79 | lon, $ ; 1D latitude |
---|
| 80 | lat, $ ; 1D longitude |
---|
| 81 | minfield=minfield_init, $ ; minimum value of plotted field (=0: calculate) |
---|
| 82 | maxfield=maxfield_init, $ ; maximum value of plotted field (=0: calculate) |
---|
| 83 | overcontour=overcontour, $ ; another 2D field to overplot with contour lines (=0: no) |
---|
| 84 | overvector_x=overvector_x, $ ; wind vector - x component (=0: no) |
---|
| 85 | overvector_y=overvector_y, $ ; wind vector - y component (=0: no) |
---|
| 86 | ct=pal, $ ; color table (33-rainbow is default) |
---|
| 87 | colors=colors, $ ; number of colors/levels (32 is default) |
---|
| 88 | title=title_user, $ ; title of the plot ('' is default) |
---|
| 89 | format=format ; format of colorbar annotations ('(F6.2)' is default) |
---|
| 90 | ; |
---|
| 91 | ; |
---|
| 92 | ; |
---|
| 93 | loadct, 0 |
---|
| 94 | contour, reform(field3(*,*,ntime)), $ |
---|
| 95 | lon,lat, $ |
---|
| 96 | /overplot, $ |
---|
| 97 | levels=[1,100,200,300], $ |
---|
| 98 | c_labels=[0,1,0,1], $ |
---|
| 99 | c_thick=1.5, $ |
---|
| 100 | ;c_linestyle=2,$ |
---|
| 101 | color=0;255 |
---|
| 102 | ; |
---|
| 103 | ; |
---|
| 104 | ; |
---|
| 105 | loadct, 0 |
---|
| 106 | MAP_GRID, CHARSIZE = 0.6, $ |
---|
| 107 | COLOR = 0, $ |
---|
| 108 | LABEL = 1, $ ;(one label any 1 grid lines) |
---|
| 109 | LATDEL = 05., $ |
---|
| 110 | LONDEL = 45., $ |
---|
| 111 | lats=-60, $ |
---|
| 112 | GLINESTYLE = 1, $ |
---|
| 113 | GLINETHICK = 0.1, $ |
---|
| 114 | LONLAB = -70., $ |
---|
| 115 | LATLAB = (lonmin+lonmax)/2. |
---|
| 116 | ; |
---|
| 117 | ; |
---|
| 118 | ; |
---|
| 119 | PS_End, /PNG |
---|
| 120 | endfor |
---|
| 121 | endfor |
---|
| 122 | ;PS_End, /PNG |
---|
| 123 | end |
---|