LALApps 10.1.0.1-eeff03c
power.c File Reference

Prototypes

static size_t min (size_t a, size_t b)
 
static int is_power_of_2 (int x)
 
static int double_is_power_of_2 (double x)
 
static struct optionsoptions_new (void)
 
static void options_free (struct options *options)
 
static void print_usage (const char *program)
 
static void print_bad_argument (const char *prog, const char *arg, const char *msg)
 
static void print_missing_argument (const char *prog, const char *arg)
 
static int all_required_arguments_present (char *prog, struct LALoption *long_options, const struct options *options)
 
static ProcessParamsTable ** add_process_param (ProcessParamsTable **proc_param, const ProcessTable *process, const char *type, const char *param, const char *value)
 
static struct optionsparse_command_line (int argc, char *argv[], const ProcessTable *process, ProcessParamsTable **paramaddpoint)
 
static REAL8TimeSeriesget_time_series (const char *cachefilename, const char *chname, LIGOTimeGPS start, LIGOTimeGPS end, size_t lengthlimit)
 
static int XLALEPConditionData (REAL8TimeSeries *series, REAL8 flow, REAL8 resampledeltaT, INT4 corruption)
 
static void gaussian_noise (REAL8TimeSeries *series, REAL8 rms, gsl_rng *rng)
 
static void destroy_injection_document (struct injection_document *doc)
 
static struct injection_documentload_injection_document (const char *filename)
 
static int add_xml_injections (REAL8TimeSeries *h, const struct injection_document *injection_document)
 
static REAL8TimeSeriesadd_mdc_injections (const char *mdccachefile, const char *channel_name, REAL8TimeSeries *series)
 
static SnglBurst ** analyze_series (SnglBurst **addpoint, REAL8TimeSeries *series, int psd_length, int psd_shift, struct options *options)
 
static void output_results (char *file, const ProcessTable *_process_table, const ProcessParamsTable *_process_params_table, const SearchSummaryTable *_search_summary_table, const SnglBurst *_sngl_burst_table)
 
int main (int argc, char *argv[])
 

Go to the source code of this file.

Data Structures

struct  options
 
struct  injection_document
 

Macros

#define PROGRAM_NAME   "lalapps_power"
 
#define CVS_REVISION   "$Revision$"
 
#define CVS_SOURCE   "$Source$"
 
#define CVS_DATE   "$Date$"
 
#define ADD_PROCESS_PARAM(process, type)    do { paramaddpoint = add_process_param(paramaddpoint, process, type, long_options[option_index].name, LALoptarg); } while(0)
 

Macro Definition Documentation

◆ PROGRAM_NAME

#define PROGRAM_NAME   "lalapps_power"

Definition at line 73 of file power.c.

◆ CVS_REVISION

#define CVS_REVISION   "$Revision$"

Definition at line 74 of file power.c.

◆ CVS_SOURCE

#define CVS_SOURCE   "$Source$"

Definition at line 75 of file power.c.

◆ CVS_DATE

#define CVS_DATE   "$Date$"

Definition at line 76 of file power.c.

◆ ADD_PROCESS_PARAM

#define ADD_PROCESS_PARAM (   process,
  type 
)     do { paramaddpoint = add_process_param(paramaddpoint, process, type, long_options[option_index].name, LALoptarg); } while(0)

Definition at line 446 of file power.c.

Function Documentation

◆ min()

static size_t min ( size_t  a,
size_t  b 
)
static

Definition at line 93 of file power.c.

◆ is_power_of_2()

static int is_power_of_2 ( int  x)
static

Definition at line 107 of file power.c.

◆ double_is_power_of_2()

static int double_is_power_of_2 ( double  x)
static

Definition at line 118 of file power.c.

◆ options_new()

static struct options * options_new ( void  )
static

Definition at line 235 of file power.c.

◆ options_free()

static void options_free ( struct options options)
static

Definition at line 277 of file power.c.

◆ print_usage()

static void print_usage ( const char program)
static

Definition at line 291 of file power.c.

◆ print_bad_argument()

static void print_bad_argument ( const char prog,
const char arg,
const char msg 
)
static

Definition at line 329 of file power.c.

◆ print_missing_argument()

static void print_missing_argument ( const char prog,
const char arg 
)
static

Definition at line 335 of file power.c.

◆ all_required_arguments_present()

static int all_required_arguments_present ( char prog,
struct LALoption long_options,
const struct options options 
)
static

Definition at line 346 of file power.c.

◆ add_process_param()

static ProcessParamsTable ** add_process_param ( ProcessParamsTable **  proc_param,
const ProcessTable process,
const char type,
const char param,
const char value 
)
static

Definition at line 434 of file power.c.

◆ parse_command_line()

static struct options * parse_command_line ( int  argc,
char argv[],
const ProcessTable process,
ProcessParamsTable **  paramaddpoint 
)
static

Definition at line 455 of file power.c.

◆ get_time_series()

static REAL8TimeSeries * get_time_series ( const char cachefilename,
const char chname,
LIGOTimeGPS  start,
LIGOTimeGPS  end,
size_t  lengthlimit 
)
static

Definition at line 861 of file power.c.

◆ XLALEPConditionData()

static int XLALEPConditionData ( REAL8TimeSeries series,
REAL8  flow,
REAL8  resampledeltaT,
INT4  corruption 
)
static

Definition at line 969 of file power.c.

◆ gaussian_noise()

static void gaussian_noise ( REAL8TimeSeries series,
REAL8  rms,
gsl_rng *  rng 
)
static

Definition at line 1029 of file power.c.

◆ destroy_injection_document()

static void destroy_injection_document ( struct injection_document doc)
static

Definition at line 1062 of file power.c.

◆ load_injection_document()

static struct injection_document * load_injection_document ( const char filename)
static

Definition at line 1074 of file power.c.

◆ add_xml_injections()

static int add_xml_injections ( REAL8TimeSeries h,
const struct injection_document injection_document 
)
static

Definition at line 1129 of file power.c.

◆ add_mdc_injections()

static REAL8TimeSeries * add_mdc_injections ( const char mdccachefile,
const char channel_name,
REAL8TimeSeries series 
)
static

Definition at line 1159 of file power.c.

◆ analyze_series()

static SnglBurst ** analyze_series ( SnglBurst **  addpoint,
REAL8TimeSeries series,
int  psd_length,
int  psd_shift,
struct options options 
)
static

Definition at line 1201 of file power.c.

◆ output_results()

static void output_results ( char file,
const ProcessTable _process_table,
const ProcessParamsTable _process_params_table,
const SearchSummaryTable _search_summary_table,
const SnglBurst _sngl_burst_table 
)
static

Definition at line 1259 of file power.c.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 1318 of file power.c.