;$Id: pkt2048_hel.pro,v 1.6 2014/02/17 19:06:49 brandenb Exp $
if !d.name eq 'PS' then begin
  device,xsize=18,ysize=12,yoffset=3
  !p.charthick=3 & !p.thick=3 & !x.thick=3 & !y.thick=3
end
;
;  mv idl.ps ~/tex/tina/Decay/fig/pkt2048_hel_short2048pm1b3_noforce.ps
;  mv idl.ps ~/tex/tina/Decay/fig/pkt2048_hel_short2048pm1b4_noforce.ps
;  mv idl.ps ~/tex/tina/Decay/fig/pkt2048_hel_short2048pm100b4_noforce.ps
;  mv idl.ps ~/tex/tina/Decay/fig/pkt2048_hel_short2048pm1b3.ps
;
default,iread,0
if iread eq 0 then begin
  ;power,'hel_mag','_mag',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
  power,'_kin','_mag',k=k,spec1=spec1,spec2=spec2,i=n,tt=t,/noplot & print,n
  iread=1
endif
;
siz=1.7
!p.multi=0
!x.title='!8k!6/!8k!6!d0!n'
!y.title='!8k!6!u5/3!n!8E!6!dM!n!6(!8k,t!6) and !8k!6!u5/3!n!8E!6!dK!n!6(!8k,t!6)'
!y.title='!8E!6!dM!n!6(!8k,t!6) and !8E!6!dK!n!6(!8k,t!6)'
!x.margin=[9.4,.8]
!y.margin=[3.3,.8]
!p.charsize=1.7
tilde='!9!s!aA!n!r!6'
@parameters
;
;w=0.
default,w,.1
s=1./k^2.
s=k^2.5
;s=k^1.667 & yr=[2e-5,2e-0]
s=1. & default,yr,[2e-9,2e-2]
k0=15.
E=t
EK=t
D=t
II=t
IIK=t
plot_oo,k/k0,s*spec2(*,0),xr=[1,1024]/k0,yr=yr,/nodata
default,it3,80
;oplot,k,k*0+1e-2
;for it=8,n-2,it3 do begin
nit=n_elements(iit)
for i=0,nit-1 do begin
  it=iit(i)
  oplot,k/k0,s*spec2(*,it),li=0,thick=.5
  ;oplot,k,s*spec1(*,it)*k/2.,li=1,thick=.5
  oplot,k/k0,s*spec1(*,it),li=1,thick=.5
  ;oplot,k/k0,s*spec1(*,it)+s*spec2(*,it),thick=.5
  print,it,t(it)-t(0)
  wait,w
endfor
it=n-2 & oplot,k/k0,s*spec2(*,it),li=0,thick=8
;it=n-2 & oplot,k/k0,s*spec1(*,it)*k/2.,li=2,thick=8
it=n-2 & oplot,k/k0,s*spec1(*,it),li=2,thick=8
;
;  overplot slope
;
@postproc
;xx=[1,4] & oplot,xx/k0,6.0e-7*xx^2,col=155
;xx=[1,4] & oplot,xx/k0,2.0e-6*xx^4,col=122
;xx=[6.,266.] & oplot,xx/k0,1.4e-2/xx^2.,col=122
;xx=[12.,34.] & oplot,xx,3e-2/xx^2.5,col=122
;xx=[1.7,6] & oplot,xx,2e-7/xx^.5,col=122
;xx=[1,6] & oplot,xx,2e-8/xx ;(for PrM=100)
;
END
