;$Id: pkt128.pro,v 1.1 2011/12/31 12:00:52 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/pkt128_128c5_noforce.ps
;  mv idl.ps ~/tex/tina/Decay/fig/pkt128_128c5_noforce3.ps
;  mv idl.ps ~/tex/tina/Decay/fig/pkt128_128c5_noforce3_pm10.ps
;  mv idl.ps ~/tex/tina/Decay/fig/pkt128_128c5_noforce3_pm100.ps
;
default,iread,0
if iread eq 0 then begin
  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!d1!n'
!y.title='!8E!6!dM!n!6(!8k,t!6) and !8E!6!dK!n!6(!8k,t!6)'
!x.margin=[7.8,.8]
!y.margin=[3.3,.8]
!p.charsize=1.7
yr=[1e-9,1e-1]
yr=[2e-11,6e-4]
tilde='!9!s!aA!n!r!6'
@parameters
;
;w=0.
default,w,.1
s=1./k^2.
s=k^1.667
s=k^2.5
s=1.
E=t
EK=t
D=t
II=t
IIK=t
plot_oo,k,s*spec2(*,0),xr=[1,64],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,s*spec2(*,it),li=0,thick=.5
  oplot,k,s*spec1(*,it),li=1,thick=.5
  print,it,t(it)-t(0)
  wait,w
endfor
it=n-2 & oplot,k,s*spec2(*,it),li=0,thick=8
it=n-2 & oplot,k,s*spec1(*,it),li=2,thick=8
;
;  overplot slope
;
@postproc
;xx=[1,10] & oplot,xx,2e-7*xx^3,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
