[85] | 1 | pro turb_period |
---|
| 2 | ; |
---|
| 3 | ; |
---|
| 4 | ; |
---|
| 5 | what_I_plot=0. |
---|
| 6 | overcontour=0. |
---|
| 7 | SPAWN, '\rm param_plot.idl ; cp turb_inc.pro param_plot.idl' |
---|
| 8 | ; |
---|
| 9 | ; |
---|
| 10 | ; |
---|
| 11 | altiuser=0.5 |
---|
| 12 | start_lt = 8 |
---|
| 13 | zefile='turbh_period' |
---|
| 14 | ; |
---|
| 15 | ; |
---|
| 16 | ; |
---|
| 17 | filefile = "/home/aymeric/Work/submitted/mars_journal/LMD_MM_MARS_ustar_LEScaseC.nc" |
---|
| 18 | filefile = "/home/aymeric/extract.nc" |
---|
| 19 | getcdf, file=filefile, charvar="USTM", invar=zevar |
---|
| 20 | getcdf, file=filefile, charvar="U", invar=zeu |
---|
| 21 | getcdf, file=filefile, charvar="V", invar=zev |
---|
| 22 | getcdf, file=filefile, charvar="W", invar=zew |
---|
| 23 | getcdf, file=filefile, charvar="PSFC", invar=zevar |
---|
| 24 | |
---|
| 25 | nx = n_elements(zevar(*,0)) |
---|
| 26 | ny = n_elements(zevar(0,*)) |
---|
| 27 | ;lon = findgen(nx) / 10. |
---|
| 28 | ;lat = findgen(ny) / 10. |
---|
| 29 | lon = findgen(2*nx+1) / 10. |
---|
| 30 | lat = findgen(2*ny+1) / 10. |
---|
| 31 | |
---|
| 32 | alpha=1 |
---|
| 33 | nstart=195 |
---|
| 34 | nend=215 |
---|
| 35 | nstride=1 |
---|
| 36 | ;nstart=1 |
---|
| 37 | ;nend=n_elements(zevar(0,0,*))-1 |
---|
| 38 | ;nstride=10 |
---|
| 39 | for nt=nstart,nend,nstride do begin |
---|
| 40 | print, nt |
---|
| 41 | ; |
---|
| 42 | ; |
---|
| 43 | ; |
---|
| 44 | PS_Start, filename=zefile+string(1000+alpha,'(I0)')+'.ps' |
---|
| 45 | print, zefile+'.ps' |
---|
| 46 | ;!p.multi=[0,3,2] |
---|
| 47 | ;!P.Charsize = 0.6 |
---|
| 48 | !P.Charsize = 1.2 |
---|
| 49 | !p.charthick = 2.0 |
---|
| 50 | !p.thick = 2.0 |
---|
| 51 | !x.thick = 2.0 |
---|
| 52 | !y.thick = 2.0 |
---|
| 53 | ;; |
---|
| 54 | ;; |
---|
| 55 | ;; |
---|
| 56 | ;restore, filename='../LES/MERIDIANI_tau100/savew' |
---|
| 57 | ;;restore, filename='../LES/MERIDIANI_tau100_wind10/savew' |
---|
| 58 | ;;restore, filename='../LES/MERIDIANI_tau100_wind20/savew' |
---|
| 59 | ;;;restore, filename='saveu' |
---|
| 60 | ;indind=where(abs(h - altiuser) eq min(abs(h - altiuser))) |
---|
| 61 | ;print, h(indind) |
---|
| 62 | ;; |
---|
| 63 | ;; |
---|
| 64 | ;; |
---|
| 65 | ;;what_I_plot = reform(wprime(*,*,indind)) |
---|
| 66 | ;what_I_plot = wprime(*,*,indind) |
---|
| 67 | ;;what_I_plot = veltot(*,*,indind) |
---|
| 68 | ;;contour, wprime(*,*,indind), nlevels=30 |
---|
| 69 | ;lon = findgen(n_elements(wprime(*,0,0))) / 10. |
---|
| 70 | ;lat = findgen(n_elements(wprime(0,*,0))) / 10. |
---|
| 71 | ;nx = n_elements(wprime(*,0,0)) |
---|
| 72 | ;ny = n_elements(wprime(0,*,0)) |
---|
| 73 | |
---|
| 74 | ;;; |
---|
| 75 | what_I_plot = reform(zevar(*,*,nt)) |
---|
| 76 | overvector_x = reform(zeu(0:nx-1,*,0,nt)) |
---|
| 77 | overvector_y = reform(zev(*,0:ny-1,0,nt)) |
---|
| 78 | what_I_plot = reform(zew(*,*,0,nt)) |
---|
| 79 | ;what_I_plot = reform(zevar(*,*,nt)) - mean(reform(zevar(*,*,nt))) |
---|
| 80 | ;;; |
---|
| 81 | |
---|
| 82 | what_I_plot_period = fltarr(2*nx+1,2*ny+1) |
---|
| 83 | what_I_plot_period(0:nx-1 ,0:ny-1 ) = what_I_plot(0:nx-1,0:ny-1) |
---|
| 84 | what_I_plot_period(nx:2*nx-1,0:ny-1 ) = what_I_plot(0:nx-1,0:ny-1) |
---|
| 85 | what_I_plot_period(0:nx-1 ,ny:2*ny-1) = what_I_plot(0:nx-1,0:ny-1) |
---|
| 86 | what_I_plot_period(nx:2*nx-1,ny:2*ny-1) = what_I_plot(0:nx-1,0:ny-1) |
---|
| 87 | what_I_plot_period(2*nx,*) = what_I_plot_period(0,*) |
---|
| 88 | what_I_plot_period(*,2*ny) = what_I_plot_period(*,0) |
---|
| 89 | what_I_plot = TEMPORARY(what_I_plot_period) |
---|
| 90 | |
---|
| 91 | overvector_x_period = fltarr(2*nx+1,2*ny+1) |
---|
| 92 | overvector_x_period(0:nx-1 ,0:ny-1 ) = overvector_x(0:nx-1,0:ny-1) |
---|
| 93 | overvector_x_period(nx:2*nx-1,0:ny-1 ) = overvector_x(0:nx-1,0:ny-1) |
---|
| 94 | overvector_x_period(0:nx-1 ,ny:2*ny-1) = overvector_x(0:nx-1,0:ny-1) |
---|
| 95 | overvector_x_period(nx:2*nx-1,ny:2*ny-1) = overvector_x(0:nx-1,0:ny-1) |
---|
| 96 | overvector_x_period(2*nx,*) = overvector_x_period(0,*) |
---|
| 97 | overvector_x_period(*,2*ny) = overvector_x_period(*,0) |
---|
| 98 | overvector_x = TEMPORARY(overvector_x_period) |
---|
| 99 | |
---|
| 100 | overvector_y_period = fltarr(2*nx+1,2*ny+1) |
---|
| 101 | overvector_y_period(0:nx-1 ,0:ny-1 ) = overvector_y(0:nx-1,0:ny-1) |
---|
| 102 | overvector_y_period(nx:2*nx-1,0:ny-1 ) = overvector_y(0:nx-1,0:ny-1) |
---|
| 103 | overvector_y_period(0:nx-1 ,ny:2*ny-1) = overvector_y(0:nx-1,0:ny-1) |
---|
| 104 | overvector_y_period(nx:2*nx-1,ny:2*ny-1) = overvector_y(0:nx-1,0:ny-1) |
---|
| 105 | overvector_y_period(2*nx,*) = overvector_y_period(0,*) |
---|
| 106 | overvector_y_period(*,2*ny) = overvector_y_period(*,0) |
---|
| 107 | overvector_y = TEMPORARY(overvector_y_period) |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | print, 'plot !!!!' |
---|
| 111 | ; |
---|
| 112 | ; |
---|
| 113 | ; |
---|
| 114 | ;localtime_h = start_lt + 100*nt/3700 ;; division euclidienne |
---|
| 115 | ;localtime_m = float(100*nt mod 3700)/3700. |
---|
| 116 | ;localtime_m = 60.*localtime_m |
---|
| 117 | ;title_user=string(localtime_h,'(I0)')+'h'+string(localtime_m,'(I0)') |
---|
| 118 | title_user='local time = '+string(start_lt + 100.*float(nt)/3700.,'(F5.2)') |
---|
| 119 | print, title_user |
---|
| 120 | ; |
---|
| 121 | ; |
---|
| 122 | ; |
---|
| 123 | map_latlon, $ |
---|
| 124 | what_I_plot, $ ; 2D field |
---|
| 125 | lon, $ ; 1D latitude |
---|
| 126 | lat, $ ; 1D longitude |
---|
| 127 | minfield=minfield_init, $ ; minimum value of plotted field (=0: calculate) |
---|
| 128 | maxfield=maxfield_init, $ ; maximum value of plotted field (=0: calculate) |
---|
| 129 | ; overcontour=overcontour, $ ; another 2D field to overplot with contour lines (=0: no) |
---|
| 130 | overvector_x=overvector_x, $ ; wind vector - x component (=0: no) |
---|
| 131 | overvector_y=overvector_y, $ ; wind vector - y component (=0: no) |
---|
| 132 | ct=pal, $ ; color table (33-rainbow is default) |
---|
| 133 | colors=colors, $ ; number of colors/levels (32 is default) |
---|
| 134 | title=title_user, $ ; title of the plot ('' is default) |
---|
| 135 | format=format ; format of colorbar annotations ('(F6.2)' is default) |
---|
| 136 | ; |
---|
| 137 | ; |
---|
| 138 | ; |
---|
| 139 | PS_End, /PNG |
---|
| 140 | alpha=alpha+1 |
---|
| 141 | endfor |
---|
| 142 | end |
---|