power,'_kin','hel_kin',k=k,spec1=spec1,spec2=spec2,i=n,tt=t,/noplot & print,n ;power,'hel_kin','hel_mag',k=k,spec1=spec1h,spec2=spec2h,i=n,tt=t,/noplot & print,n ; $Id: ppower_all_kin.pro,v 1.4 2016/11/09 12:34:06 brandenb Exp $ ; ; This routine is used to view all power spectra ; that were written during the run (controlled by dspec) ; The plot range yr is set to a default value. ; The time interval of plotting is "w" (default value) ; ; 5-oct-02/axel: written ; spawn,'if (! -f param.pro) touch parameters.pro' @parameters xr=[1,max(k)] default,yr,[1e-15,1e-1] istride=100 istride=1 default,w,.2 default,t1,.0 default,iover,0 default,istride,1 ampl15=3e-10 & ampl4=1e-13 ampl15=3e-6 & ampl4=1e-8 comp=k^1.6667 ; for i=0,n-2,istride do begin if(t(i) ge t1) then begin if iover eq 0 or i eq 0 then begin plot_oo,k,spec1(*,i)*comp,xr=xr,yr=yr,tit='t='+str(t(i)) endif else begin oplot,k,spec1(*,i)*comp endelse k1=k & k1[0]=1. & k1=1./k1 & k1[0]=0. oplot,k,.5*k1*abs(spec2(*,i)),li=2 circ_sym,1.3,1 oplot,k,+.5*k1*spec2(*,i),col=122,ps=8 circ_sym,1.3,0 oplot,k,-.5*k1*spec2(*,i),col=55,ps=8 ;oplot,k,abs(spec1o(*,i))/k^2,li=2 kk=[4,200] & oplot,kk,4e-5/kk^0.6667,col=188 kk=[4,80] & oplot,kk,4e-6/kk^2.0000,col=188 ;kk=[1,60] & oplot,kk,1e-5/kk,col=188 ;kk=[1,60.] & oplot,kk,1e-4/kk^3,col=188 ;kk=[2,40.] & oplot,kk,1e-8*kk^4,col=188 kk=[2,30.] & oplot,kk,1e-6*kk^2,col=188 kk=[2,30.] & oplot,kk,1e-9*kk^3,col=188 print,i,t(i) wait,w end end ; print,'E_K (white), E_M (red), E_T (yellow)' ; ; averages ; mspec1=total(spec1,2)/i mspec2=total(spec2,2)/i mspec1o=total(spec1o,2)/i ; save,file='mean_spec.sav',k,mspec1,mspec2,mspec1o,mspec2h ; END