;$Id: pspecm_scl5_hel_comp3.pro,v 1.4 2020/11/01 15:07:06 brandenb Exp $
if !d.name eq 'PS' then begin
  device,xsize=18,ysize=12,yoffset=3
  !p.charthick=2 & !p.thick=2 & !x.thick=2 & !y.thick=2
end
;
s1=.3
s2=.5
thick4=5
siz=1.2
siz2=.7
!p.charsize=1.2
!x.margin=[8.0,1.3]
!y.margin=[3.2,0.2]
!p.multi=[0,2,2]
fac2=2.
half='!s!u 1!n!r!s-!r!d 2!n'
specm='/specm.sav'
xout=2.7e-4
yout=2.7e-15
label=''
mixed=0.
;
dir0='F1152d2_sig1_t11_M2c_double'
dir1='F1152sigm1a'
dir2='F1152sig001a'
dir3='F1152sigm001a'
dir4='F1152sig01a'
dir5='F1152sigm01a'
;dir='~/tex/roper/PencilGW/data/'
dir='~/tex/roper/helical/data/'
;
yr_pspecm_scl3=[2d-23,1d-7]
energyfac=1e2
;
Hstar=2.066d10
a0=1.2545d15
freq=Hstar/(2.*!pi*a0)
H0=3.24d-18
rhocrit_fac=3./(8.*!pi)
fac_h=sqrt(3./2.)*H0/!pi
fac=(Hstar/H0)^2/rhocrit_fac*(1./a0)^4
facGW=1./(16.*!pi)
xr=[2.0e-4,13.0e-2]
;
;  1st panel
;
!x.title='!6'
!y.title='!6!8h!6!s!d0!n!r!u2!n!7X!6!dGW!n and !6!8h!6!s!d0!n!r!u2!n!7N!6!dGW!n'
;dir0='M512km1_sig1'
;dir0='M512km1_sig1b'
;dir0='M512km1_sig1e3'
restore,'../'+dir0+specm
grav_tot=grav1m+grah1m/tm^2+mixed
ghel_tot=grav2m+grah2m/tm^2+mixed
OmegaGW=facGW*fac*k*grav_tot
   XiGW=facGW*fac*k*ghel_tot
plot_oo,freq*k,energyfac*OmegaGW,xr=xr,yr=yr
oplot,freq*k,energyfac*abs(XiGW),li=2
;oplot,freq*k,k/1e14
;oplot,freq*k,k^2/1e18
circ_sym,s2,1 & oplot,freq*k,-energyfac*XiGW,ps=8,col=55
circ_sym,s2,0 & oplot,freq*k,+energyfac*XiGW,ps=8,col=122
loadct,6
;file=dir+'Robson_Cornish.rtf'
file=dir+'omLISA.dat'
n1=rtable(file,2,head=1)
file=dir+'omLISApol.dat'
n2=rtable(file,2,head=1)
;oplot,10^n1[0,*],((10^n1[1,*]/fac_h)*10^n1[0,*])^2,li=3,col=122,thick=thick4
oplot,n1[0,*],n1[1,*],li=3,col=122,thick=thick4
oplot,n2[0,*],n2[1,*],li=3,col=122,thick=thick4
xyouts,.009,6e-9,siz=siz2,col=122,'!6!8h!6!s!d0!n!r!u2!n!7N!6!s!dGW!n!r!uLISA!n'
xyouts,.012,2e-11,siz=siz2,col=122,'!6!8h!6!s!d0!n!r!u2!n!7X!6!s!dGW!n!r!uLISA!n'
loadct,5
circ_sym,s2,0 & legend,1.1e-3,0.,1e-13,0,'!6 +',vshift=-.6e-13,col=122,siz=2,ps=8
circ_sym,s2,1 & legend,1.1e-3,0.,1e-14,0,'!6 -',vshift=-.6e-14,col=55,siz=2,ps=8
;circ_sym,s2,0 & legend,8e-4,0.,3e-13,0,'!6 +',col=122,siz=2,ps=8
;circ_sym,s2,1 & legend,8e-4,0.,3e-14,0,'!6 -',col=55,siz=2,ps=8
;xyouts,siz=siz,xout,2e-22,'!7r!6=1'
xyouts,siz=siz,xout,yout ,'!6(a)'
;
;  2nd panel
;
!x.title='!6'
!y.title='!6!8h!6!s!d0!n!r!u2!n!7X!6!dGW!n and !6!8h!6!s!d0!n!r!u2!n!7N!6!dGW!n'
restore,'../'+dir4+specm
grav_tot=grav1m+grah1m/tm^2+mixed
ghel_tot=grav2m+grah2m/tm^2+mixed
OmegaGW=facGW*fac*k*grav_tot
   XiGW=facGW*fac*k*ghel_tot
plot_oo,freq*k,energyfac*OmegaGW,xr=xr,yr=yr
oplot,freq*k,energyfac*abs(XiGW),li=2
circ_sym,s2,1 & oplot,freq*k,-energyfac*XiGW,ps=8,col=55
circ_sym,s2,0 & oplot,freq*k,+energyfac*XiGW,ps=8,col=122
loadct,6
;file=dir+'Robson_Cornish.rtf'
file=dir+'omLISA.dat'
n1=rtable(file,2,head=1)
file=dir+'omLISApol.dat'
n2=rtable(file,2,head=1)
;oplot,10^n1[0,*],((10^n1[1,*]/fac_h)*10^n1[0,*])^2,li=3,col=122,thick=thick4
oplot,n1[0,*],n1[1,*],li=3,col=122,thick=thick4
oplot,n2[0,*],n2[1,*],li=3,col=122,thick=thick4
xyouts,.009,6e-9,siz=siz2,col=122,'!6!8h!6!s!d0!n!r!u2!n!7N!6!s!dGW!n!r!uLISA!n'
xyouts,.012,2e-11,siz=siz2,col=122,'!6!8h!6!s!d0!n!r!u2!n!7X!6!s!dGW!n!r!uLISA!n'
loadct,5
circ_sym,s2,0 & legend,1.1e-3,0.,1e-13,0,'!6 +',vshift=-.6e-13,col=122,siz=2,ps=8
circ_sym,s2,1 & legend,1.1e-3,0.,1e-14,0,'!6 -',vshift=-.6e-14,col=55,siz=2,ps=8
;circ_sym,s2,0 & legend,8e-4,0.,1e-16,0,'!6 +',col=122,siz=2,ps=8
;circ_sym,s2,1 & legend,8e-4,0.,1e-18,0,'!6 -',col=55,siz=2,ps=8
;xyouts,siz=siz,xout,2e-22,'!7r!6=0.1'
xyouts,siz=siz,xout,yout ,'!6(b)'
;
;-----------------------------------------------------------------------------
dir0='M1152e_exp6k4'
dir1='M1152e_exp6k4_sig07'
dir2='M1152e_exp6k4_sig05'
dir3='M1152e_exp6k4_sig03'
dir4='M1152e_exp6k4_sig01'
dir5='M1152e_exp6k4_sig01'
dir='~/tex/roper/helical/data/'
;
yr_pspecm_scl3=[1d-15,1d-7]
energyfac=1e3
;
;  determine normalization
;
default,maglabel,'mag'
default,green_lines,0
default,plot_polarization,1
;ytickf='logticks_exp'
yr=yr_pspecm_scl3
;
;  1st panel
;
!x.title='!6'
!y.title='!6!8h!6!s!d0!n!r!u2!n!7X!6!dGW!n and !6!8h!6!s!d0!n!r!u2!n!7N!6!dGW!n'
restore,'../'+dir0+specm
grav_tot=grav1m+grah1m/tm^2+mixed
ghel_tot=grav2m+grah2m/tm^2+mixed
OmegaGW=facGW*fac*k*grav_tot
   XiGW=facGW*fac*k*ghel_tot
plot_oo,freq*k,energyfac*OmegaGW,xr=xr,yr=yr
oplot,freq*k,energyfac*abs(XiGW),li=2
circ_sym,s2,1 & oplot,freq*k,-energyfac*XiGW,ps=8,col=55
circ_sym,s2,0 & oplot,freq*k,+energyfac*XiGW,ps=8,col=122
loadct,6
file=dir+'omLISA.dat'
n1=rtable(file,2,head=1)
file=dir+'omLISApol.dat'
n2=rtable(file,2,head=1)
oplot,n1[0,*],n1[1,*],li=3,col=122,thick=thick4
oplot,n2[0,*],n2[1,*],li=3,col=122,thick=thick4
xyouts,.009,6e-9,siz=siz2,col=122,'!6!8h!6!s!d0!n!r!u2!n!7N!6!s!dGW!n!r!uLISA!n'
xyouts,.012,2e-11,siz=siz2,col=122,'!6!8h!6!s!d0!n!r!u2!n!7X!6!s!dGW!n!r!uLISA!n'
loadct,5
circ_sym,s2,0 & legend,4e-3,0.,1e-13,0,'!6 +',vshift=-.6e-13,col=122,siz=2,ps=8
circ_sym,s2,1 & legend,4e-3,0.,1e-14,0,'!6 -',vshift=-.6e-14,col=55,siz=2,ps=8
;xyouts,siz=siz,xout,yout ,'!7r!6=1'
xyouts,siz=siz,xout,yout ,'!6(c)'
;
;  4th panel
;
!y.title='!6!8h!6!s!d0!n!r!u2!n!7X!6!dGW!n and !6!8h!6!s!d0!n!r!u2!n!7N!6!dGW!n'
restore,'../'+dir4+specm
grav_tot=grav1m+grah1m/tm^2+mixed
ghel_tot=grav2m+grah2m/tm^2+mixed
OmegaGW=facGW*fac*k*grav_tot
   XiGW=facGW*fac*k*ghel_tot
plot_oo,freq*k,energyfac*OmegaGW,xr=xr,yr=yr
oplot,freq*k,energyfac*abs(XiGW),li=2
circ_sym,s2,1 & oplot,freq*k,-energyfac*XiGW,ps=8,col=55
circ_sym,s2,0 & oplot,freq*k,+energyfac*XiGW,ps=8,col=122
loadct,6
file=dir+'omLISA.dat'
n1=rtable(file,2,head=1)
file=dir+'omLISApol.dat'
n2=rtable(file,2,head=1)
oplot,n1[0,*],n1[1,*],li=3,col=122,thick=thick4
oplot,n2[0,*],n2[1,*],li=3,col=122,thick=thick4
xyouts,.009,6e-9,siz=siz2,col=122,'!6!8h!6!s!d0!n!r!u2!n!7N!6!s!dGW!n!r!uLISA!n'
xyouts,.012,2e-11,siz=siz2,col=122,'!6!8h!6!s!d0!n!r!u2!n!7X!6!s!dGW!n!r!uLISA!n'
loadct,5
circ_sym,s2,0 & legend,4e-3,0.,1e-13,0,'!6 +',vshift=-.6e-13,col=122,siz=2,ps=8
circ_sym,s2,1 & legend,4e-3,0.,1e-14,0,'!6 -',vshift=-.6e-14,col=55,siz=2,ps=8
;xyouts,siz=siz,xout,yout ,'!7r!6=0.1'
xyouts,siz=siz,xout,yout ,'!6(d)'
;
print,'$mv idl.ps ~/tex/roper/helical/fig/pspecm_scl5_hel_comp3.ps'
!p.multi=0
END
