mirror of
https://asciireactor.com/otho/clag-agn.git
synced 2024-11-21 17:55:06 +00:00
fixed cross spectrum errors
This commit is contained in:
parent
fdaea7f534
commit
630275a5a0
@ -3,7 +3,7 @@
|
||||
mkdir -p data/tables
|
||||
mkdir -p logs
|
||||
|
||||
analysis_script="psdlag_5bin.py"
|
||||
analysis_script="psdlag_4bin.py"
|
||||
|
||||
ref_band="1367A"
|
||||
refpsd_tabfile=data/tables/psd_${ref_band}.tab
|
||||
|
@ -77,6 +77,7 @@ Cx = clag.clag('cxd10r',
|
||||
# a good starting point generally
|
||||
p = np.concatenate( ((p1+p2)*0.5-0.3,p1*0+0.1) )
|
||||
p, pe = clag.optimize(Cx, p)
|
||||
p, pe = clag.errors(Cx, p, pe)
|
||||
|
||||
phi, phie = p[nfq:], pe[nfq:]
|
||||
lag, lage = phi/(2*np.pi*fqd), phie/(2*np.pi*fqd)
|
||||
|
@ -80,6 +80,7 @@ echo_psd_err = p2e
|
||||
Cx = clag.clag('cxd10r', [[t1,t2]], [[l1,l2]], [[l1e,l2e]], dt, fqL, p1, p2)
|
||||
p = np.concatenate( ((p1+p2)*0.5-0.3,p1*0+0.1) ) # a good starting point generally
|
||||
p, pe = clag.optimize(Cx, p)
|
||||
p, pe = clag.errors(Cx, p, pe)
|
||||
|
||||
phi, phie = p[nfq:], pe[nfq:]
|
||||
lag, lage = phi/(2*np.pi*fqd), phie/(2*np.pi*fqd)
|
||||
|
@ -80,6 +80,7 @@ echo_psd_err = p2e
|
||||
Cx = clag.clag('cxd10r', [[t1,t2]], [[l1,l2]], [[l1e,l2e]], dt, fqL, p1, p2)
|
||||
p = np.concatenate( ((p1+p2)*0.5-0.3,p1*0+0.1) ) # a good starting point generally
|
||||
p, pe = clag.optimize(Cx, p)
|
||||
p, pe = clag.errors(Cx, p, pe)
|
||||
|
||||
phi, phie = p[nfq:], pe[nfq:]
|
||||
lag, lage = phi/(2*np.pi*fqd), phie/(2*np.pi*fqd)
|
||||
|
@ -79,6 +79,7 @@ echo_psd_err = p2e
|
||||
Cx = clag.clag('cxd10r', [[t1,t2]], [[l1,l2]], [[l1e,l2e]], dt, fqL, p1, p2)
|
||||
p = np.concatenate( ((p1+p2)*0.5-0.3,p1*0+0.1) ) # a good starting point generally
|
||||
p, pe = clag.optimize(Cx, p)
|
||||
p, pe = clag.errors(Cx, p, pe)
|
||||
|
||||
phi, phie = p[nfq:], pe[nfq:]
|
||||
lag, lage = phi/(2*np.pi*fqd), phie/(2*np.pi*fqd)
|
||||
|
@ -70,6 +70,7 @@ echo_psd_err = p2e
|
||||
Cx = clag.clag('cxd10r', [[t1,t2]], [[l1,l2]], [[l1e,l2e]], dt, fqL, p1, p2)
|
||||
p = np.concatenate( ((p1+p2)*0.5-0.3,p1*0+0.1) ) # a good starting point generally
|
||||
p, pe = clag.optimize(Cx, p)
|
||||
p, pe = clag.errors(Cx, p, pe)
|
||||
|
||||
phi, phie = p[nfq:], pe[nfq:]
|
||||
lag, lage = phi/(2*np.pi*fqd), phie/(2*np.pi*fqd)
|
||||
|
Loading…
Reference in New Issue
Block a user