Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInference 4.1.9.1-3a66518
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cbcBayesBurstPostProc Namespace Reference

Data Structures

class  LIGOLWContentHandlerExtractSimBurstTable
 
class  LIGOLWContentHandlerExtractSimInspiralTable
 

Functions

def email_notify (address, path)
 
def pickle_to_file (obj, fname)
 Pickle/serialize 'obj' into 'fname'. More...
 
def oneD_dict_to_file (dict, fname)
 
def multipleFileCB (opt, opt_str, value, parser)
 
def dict2html (d, parent=None)
 
def extract_hdf5_metadata (h5grp, parent=None)
 
def cbcBayesBurstPostProc (outdir, data, oneDMenu, twoDGreedyMenu, GreedyRes, confidence_levels, twoDplots, injfile=None, eventnum=None, trigfile=None, trignum=None, skyres=None, dievidence=False, boxing=64, difactor=1.0, ellevidence=False, bayesfactornoise=None, bayesfactorcoherent=None, snrfactor=None, ns_flag=False, ns_Nlive=None, ss_flag=False, ss_spin_flag=False, li_flag=False, deltaLogL=None, fixedBurnins=None, nDownsample=None, oldMassConvention=False, fm_flag=False, noacf=False, twodkdeplots=False, RconvergenceTests=False, savepdfs=True, covarianceMatrices=None, meanVectors=None, header=None, psd_files=None, statsonly=False)
 This is a demonstration script for using the functionality/data structures contained in lalinference.bayespputils . More...
 

Variables

string USAGE
 
 parser = OptionParser(USAGE)
 
 dest
 
 help
 
 metavar
 
 action
 
 callback
 
 multipleFileCB
 
 default
 
 None
 
 type
 
 False
 
 True
 
 opts
 
 args
 
list datafiles = []
 
list fixedBurnins = [int(fixedBurnin) for fixedBurnin in opts.fixedBurnin]
 
 archive
 
list polParams = ['psi','polarisation','polarization']
 
list skyParams = ['ra','rightascension','declination','dec']
 
list timeParams = ['time']
 
list ellParams = ['alpha','polar_eccentricity','polar_angle']
 
list burstParams = ['frequency','loghrss','quality','hrss','duration']
 
list phaseParams = ['phase','phi_orb']
 
list endTimeParams = []
 
list statsParams = ['logl']
 
list calibParams = ['calpha_l1','calpha_h1','calamp_l1','calamp_h1']
 
list oneDMenu = polParams + skyParams + timeParams + statsParams+burstParams+ellParams+phaseParams+calibParams
 
list ifos_menu = ['h1','l1','v1']
 
list twoDGreedyMenu = []
 
dictionary greedyBinSizes = {'time':1e-4,'ra':0.05,'dec':0.05,'polarisation':0.04,'rightascension':0.05,'declination':0.05, 'loghrss':0.01,'frequency':0.5,'quality':0.05,'phase':0.1,'phi_orb':0.1,'psi':0.04,'polarization':0.04,'alpha':0.01,'duration':0.0001,'calamp_l1':0.01,'calamp_h1':0.01,'calpha_h1':0.01,'calpha_l1':0.01,'polar_eccentricity':0.01}
 
list confidenceLevels = [0.67,0.9,0.95,0.99]
 
list twoDplots = twoDGreedyMenu
 
 injfile
 
 eventnum
 
 trigfile
 
 trignum
 
 skyres
 
 dievidence
 
 boxing
 
 difactor
 
 ellevidence
 
 bayesfactornoise
 
 bsn
 
 bayesfactorcoherent
 
 snrfactor
 
 ns_flag
 
 ns
 
 ns_Nlive
 
 ss_flag
 
 ss
 
 ss_spin_flag
 
 li_flag
 
 lalinfmcmc
 
 deltaLogL
 
 nDownsample
 
 downsample
 
 oldMassConvention
 
 fm_flag
 
 noacf
 
 twodkdeplots
 
 RconvergenceTests
 
 savepdfs
 
 covarianceMatrices
 
 meanVectors
 
 header
 
 psd_files
 
 statsonly
 

Function Documentation

◆ email_notify()

def cbcBayesBurstPostProc.email_notify (   address,
  path 
)

Definition at line 63 of file cbcBayesBurstPostProc.py.

◆ pickle_to_file()

def cbcBayesBurstPostProc.pickle_to_file (   obj,
  fname 
)

Pickle/serialize 'obj' into 'fname'.

Definition at line 150 of file cbcBayesBurstPostProc.py.

◆ oneD_dict_to_file()

def cbcBayesBurstPostProc.oneD_dict_to_file (   dict,
  fname 
)

Definition at line 155 of file cbcBayesBurstPostProc.py.

◆ multipleFileCB()

def cbcBayesBurstPostProc.multipleFileCB (   opt,
  opt_str,
  value,
  parser 
)

Definition at line 160 of file cbcBayesBurstPostProc.py.

◆ dict2html()

def cbcBayesBurstPostProc.dict2html (   d,
  parent = None 
)

Definition at line 186 of file cbcBayesBurstPostProc.py.

◆ extract_hdf5_metadata()

def cbcBayesBurstPostProc.extract_hdf5_metadata (   h5grp,
  parent = None 
)

Definition at line 198 of file cbcBayesBurstPostProc.py.

◆ cbcBayesBurstPostProc()

def cbcBayesBurstPostProc.cbcBayesBurstPostProc (   outdir,
  data,
  oneDMenu,
  twoDGreedyMenu,
  GreedyRes,
  confidence_levels,
  twoDplots,
  injfile = None,
  eventnum = None,
  trigfile = None,
  trignum = None,
  skyres = None,
  dievidence = False,
  boxing = 64,
  difactor = 1.0,
  ellevidence = False,
  bayesfactornoise = None,
  bayesfactorcoherent = None,
  snrfactor = None,
  ns_flag = False,
  ns_Nlive = None,
  ss_flag = False,
  ss_spin_flag = False,
  li_flag = False,
  deltaLogL = None,
  fixedBurnins = None,
  nDownsample = None,
  oldMassConvention = False,
  fm_flag = False,
  noacf = False,
  twodkdeplots = False,
  RconvergenceTests = False,
  savepdfs = True,
  covarianceMatrices = None,
  meanVectors = None,
  header = None,
  psd_files = None,
  statsonly = False 
)

This is a demonstration script for using the functionality/data structures contained in lalinference.bayespputils .

It will produce a webpage from a file containing posterior samples generated by the parameter estimation codes with 1D/2D plots and stats from the marginal posteriors for each parameter/set of parameters.

Definition at line 214 of file cbcBayesBurstPostProc.py.

Variable Documentation

◆ USAGE

string cbcBayesBurstPostProc.USAGE
Initial value:
1= '''%prog [options] datafile.dat [datafile2.dat ...]
2Generate a web page displaying results of parameter estimation based on the contents
3of one or more datafiles containing samples from one of the bayesian algorithms (MCMC, nested sampling).
4Options specify which extra statistics to compute and allow specification of additional information.
5'''

Definition at line 1180 of file cbcBayesBurstPostProc.py.

◆ parser

cbcBayesBurstPostProc.parser = OptionParser(USAGE)

Definition at line 1189 of file cbcBayesBurstPostProc.py.

◆ dest

cbcBayesBurstPostProc.dest

Definition at line 1190 of file cbcBayesBurstPostProc.py.

◆ help

cbcBayesBurstPostProc.help

Definition at line 1190 of file cbcBayesBurstPostProc.py.

◆ metavar

cbcBayesBurstPostProc.metavar

Definition at line 1190 of file cbcBayesBurstPostProc.py.

◆ action

cbcBayesBurstPostProc.action

Definition at line 1191 of file cbcBayesBurstPostProc.py.

◆ callback

cbcBayesBurstPostProc.callback

Definition at line 1191 of file cbcBayesBurstPostProc.py.

◆ multipleFileCB

cbcBayesBurstPostProc.multipleFileCB

Definition at line 1191 of file cbcBayesBurstPostProc.py.

◆ default

cbcBayesBurstPostProc.default

Definition at line 1193 of file cbcBayesBurstPostProc.py.

◆ None

cbcBayesBurstPostProc.None

Definition at line 1196 of file cbcBayesBurstPostProc.py.

◆ type

cbcBayesBurstPostProc.type

Definition at line 1196 of file cbcBayesBurstPostProc.py.

◆ False

cbcBayesBurstPostProc.False

Definition at line 1201 of file cbcBayesBurstPostProc.py.

◆ True

cbcBayesBurstPostProc.True

Definition at line 1230 of file cbcBayesBurstPostProc.py.

◆ opts

cbcBayesBurstPostProc.opts

Definition at line 1237 of file cbcBayesBurstPostProc.py.

◆ args

cbcBayesBurstPostProc.args

Definition at line 1237 of file cbcBayesBurstPostProc.py.

◆ datafiles

list cbcBayesBurstPostProc.datafiles = []

Definition at line 1239 of file cbcBayesBurstPostProc.py.

◆ fixedBurnins

cbcBayesBurstPostProc.fixedBurnins = [int(fixedBurnin) for fixedBurnin in opts.fixedBurnin]

Definition at line 1246 of file cbcBayesBurstPostProc.py.

◆ archive

cbcBayesBurstPostProc.archive

Definition at line 1250 of file cbcBayesBurstPostProc.py.

◆ polParams

list cbcBayesBurstPostProc.polParams = ['psi','polarisation','polarization']

Definition at line 1253 of file cbcBayesBurstPostProc.py.

◆ skyParams

list cbcBayesBurstPostProc.skyParams = ['ra','rightascension','declination','dec']

Definition at line 1254 of file cbcBayesBurstPostProc.py.

◆ timeParams

list cbcBayesBurstPostProc.timeParams = ['time']

Definition at line 1255 of file cbcBayesBurstPostProc.py.

◆ ellParams

list cbcBayesBurstPostProc.ellParams = ['alpha','polar_eccentricity','polar_angle']

Definition at line 1256 of file cbcBayesBurstPostProc.py.

◆ burstParams

list cbcBayesBurstPostProc.burstParams = ['frequency','loghrss','quality','hrss','duration']

Definition at line 1257 of file cbcBayesBurstPostProc.py.

◆ phaseParams

list cbcBayesBurstPostProc.phaseParams = ['phase','phi_orb']

Definition at line 1258 of file cbcBayesBurstPostProc.py.

◆ endTimeParams

list cbcBayesBurstPostProc.endTimeParams = []

Definition at line 1260 of file cbcBayesBurstPostProc.py.

◆ statsParams

list cbcBayesBurstPostProc.statsParams = ['logl']

Definition at line 1262 of file cbcBayesBurstPostProc.py.

◆ calibParams

list cbcBayesBurstPostProc.calibParams = ['calpha_l1','calpha_h1','calamp_l1','calamp_h1']

Definition at line 1263 of file cbcBayesBurstPostProc.py.

◆ oneDMenu

Definition at line 1264 of file cbcBayesBurstPostProc.py.

◆ ifos_menu

list cbcBayesBurstPostProc.ifos_menu = ['h1','l1','v1']

Definition at line 1266 of file cbcBayesBurstPostProc.py.

◆ twoDGreedyMenu

list cbcBayesBurstPostProc.twoDGreedyMenu = []

Definition at line 1272 of file cbcBayesBurstPostProc.py.

◆ greedyBinSizes

dictionary cbcBayesBurstPostProc.greedyBinSizes = {'time':1e-4,'ra':0.05,'dec':0.05,'polarisation':0.04,'rightascension':0.05,'declination':0.05, 'loghrss':0.01,'frequency':0.5,'quality':0.05,'phase':0.1,'phi_orb':0.1,'psi':0.04,'polarization':0.04,'alpha':0.01,'duration':0.0001,'calamp_l1':0.01,'calamp_h1':0.01,'calpha_h1':0.01,'calpha_l1':0.01,'polar_eccentricity':0.01}

Definition at line 1295 of file cbcBayesBurstPostProc.py.

◆ confidenceLevels

list cbcBayesBurstPostProc.confidenceLevels = [0.67,0.9,0.95,0.99]

Definition at line 1307 of file cbcBayesBurstPostProc.py.

◆ twoDplots

list cbcBayesBurstPostProc.twoDplots = twoDGreedyMenu

Definition at line 1310 of file cbcBayesBurstPostProc.py.

◆ injfile

cbcBayesBurstPostProc.injfile

Definition at line 1315 of file cbcBayesBurstPostProc.py.

◆ eventnum

cbcBayesBurstPostProc.eventnum

Definition at line 1315 of file cbcBayesBurstPostProc.py.

◆ trigfile

cbcBayesBurstPostProc.trigfile

Definition at line 1316 of file cbcBayesBurstPostProc.py.

◆ trignum

cbcBayesBurstPostProc.trignum

Definition at line 1316 of file cbcBayesBurstPostProc.py.

◆ skyres

cbcBayesBurstPostProc.skyres

Definition at line 1317 of file cbcBayesBurstPostProc.py.

◆ dievidence

cbcBayesBurstPostProc.dievidence

Definition at line 1319 of file cbcBayesBurstPostProc.py.

◆ boxing

cbcBayesBurstPostProc.boxing

Definition at line 1319 of file cbcBayesBurstPostProc.py.

◆ difactor

cbcBayesBurstPostProc.difactor

Definition at line 1319 of file cbcBayesBurstPostProc.py.

◆ ellevidence

cbcBayesBurstPostProc.ellevidence

Definition at line 1321 of file cbcBayesBurstPostProc.py.

◆ bayesfactornoise

cbcBayesBurstPostProc.bayesfactornoise

Definition at line 1323 of file cbcBayesBurstPostProc.py.

◆ bsn

cbcBayesBurstPostProc.bsn

Definition at line 1323 of file cbcBayesBurstPostProc.py.

◆ bayesfactorcoherent

cbcBayesBurstPostProc.bayesfactorcoherent

Definition at line 1323 of file cbcBayesBurstPostProc.py.

◆ snrfactor

cbcBayesBurstPostProc.snrfactor

Definition at line 1325 of file cbcBayesBurstPostProc.py.

◆ ns_flag

cbcBayesBurstPostProc.ns_flag

Definition at line 1327 of file cbcBayesBurstPostProc.py.

◆ ns

cbcBayesBurstPostProc.ns

Definition at line 1327 of file cbcBayesBurstPostProc.py.

◆ ns_Nlive

cbcBayesBurstPostProc.ns_Nlive

Definition at line 1327 of file cbcBayesBurstPostProc.py.

◆ ss_flag

cbcBayesBurstPostProc.ss_flag

Definition at line 1329 of file cbcBayesBurstPostProc.py.

◆ ss

cbcBayesBurstPostProc.ss

Definition at line 1329 of file cbcBayesBurstPostProc.py.

◆ ss_spin_flag

cbcBayesBurstPostProc.ss_spin_flag

Definition at line 1329 of file cbcBayesBurstPostProc.py.

◆ li_flag

cbcBayesBurstPostProc.li_flag

Definition at line 1331 of file cbcBayesBurstPostProc.py.

◆ lalinfmcmc

cbcBayesBurstPostProc.lalinfmcmc

Definition at line 1331 of file cbcBayesBurstPostProc.py.

◆ deltaLogL

cbcBayesBurstPostProc.deltaLogL

Definition at line 1331 of file cbcBayesBurstPostProc.py.

◆ nDownsample

cbcBayesBurstPostProc.nDownsample

Definition at line 1331 of file cbcBayesBurstPostProc.py.

◆ downsample

cbcBayesBurstPostProc.downsample

Definition at line 1331 of file cbcBayesBurstPostProc.py.

◆ oldMassConvention

cbcBayesBurstPostProc.oldMassConvention

Definition at line 1331 of file cbcBayesBurstPostProc.py.

◆ fm_flag

cbcBayesBurstPostProc.fm_flag

Definition at line 1333 of file cbcBayesBurstPostProc.py.

◆ noacf

cbcBayesBurstPostProc.noacf

Definition at line 1335 of file cbcBayesBurstPostProc.py.

◆ twodkdeplots

cbcBayesBurstPostProc.twodkdeplots

Definition at line 1338 of file cbcBayesBurstPostProc.py.

◆ RconvergenceTests

cbcBayesBurstPostProc.RconvergenceTests

Definition at line 1340 of file cbcBayesBurstPostProc.py.

◆ savepdfs

cbcBayesBurstPostProc.savepdfs

Definition at line 1342 of file cbcBayesBurstPostProc.py.

◆ covarianceMatrices

cbcBayesBurstPostProc.covarianceMatrices

Definition at line 1344 of file cbcBayesBurstPostProc.py.

◆ meanVectors

cbcBayesBurstPostProc.meanVectors

Definition at line 1346 of file cbcBayesBurstPostProc.py.

◆ header

cbcBayesBurstPostProc.header

Definition at line 1348 of file cbcBayesBurstPostProc.py.

◆ psd_files

cbcBayesBurstPostProc.psd_files

Definition at line 1350 of file cbcBayesBurstPostProc.py.

◆ statsonly

cbcBayesBurstPostProc.statsonly

Definition at line 1351 of file cbcBayesBurstPostProc.py.