Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALApps 10.1.0.1-ea7c608
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
inspawgfile.c File Reference

Prototypes

void I8ToLIGOTimeGPS (LIGOTimeGPS *output, INT8 input)
 
int main (int argc, char **argv)
 

Go to the source code of this file.

Macros

#define INSPAWGFILEC_ENORM   0
 
#define INSPAWGFILEC_ESUB   1
 
#define INSPAWGFILEC_EARG   2
 
#define INSPAWGFILEC_EVAL   3
 
#define INSPAWGFILEC_EFILE   4
 
#define INSPAWGFILEC_EINPUT   5
 
#define INSPAWGFILEC_EMEM   6
 
#define INSPAWGFILEC_MSGENORM   "Normal exit"
 
#define INSPAWGFILEC_MSGESUB   "Subroutine failed"
 
#define INSPAWGFILEC_MSGEARG   "Error parsing arguments"
 
#define INSPAWGFILEC_MSGEVAL   "Input argument out of valid range"
 
#define INSPAWGFILEC_MSGEFILE   "Could not open file"
 
#define INSPAWGFILEC_MSGEINPUT   "Error reading file"
 
#define INSPAWGFILEC_MSGEMEM   "Out of memory"
 
#define EPOCH   (0)
 
#define DIST   (0.00002*LAL_MRSUN_SI )
 
#define M1   (1.4)
 
#define M2   (1.4)
 
#define INC   (0.0)
 
#define PHIC   (0.0)
 
#define SEC   (0)
 
#define NSEC   (0)
 
#define NPT   (1048576)
 
#define DT   (1.0/16384.0)
 
#define SIGMA   (0.0)
 
#define MSGLEN   (256) /* maximum length of warning/info messages */
 
#define FSTART   (40.0) /* initial frequency of waveform */
 
#define FSTOP   (3000.0) /* termination frequency of waveform */
 
#define DELTAT   (0.00006103515625) /* sampling interval of amplitude and phase */
 
#define USAGE
 
#define ERROR(code, msg, statement)
 
#define INFO(statement)
 
#define WARNING(statement)
 
#define SUB(func, statusptr)
 
#define CHECKVAL(val, lower, upper)
 

Macro Definition Documentation

◆ INSPAWGFILEC_ENORM

#define INSPAWGFILEC_ENORM   0

Definition at line 42 of file inspawgfile.c.

◆ INSPAWGFILEC_ESUB

#define INSPAWGFILEC_ESUB   1

Definition at line 43 of file inspawgfile.c.

◆ INSPAWGFILEC_EARG

#define INSPAWGFILEC_EARG   2

Definition at line 44 of file inspawgfile.c.

◆ INSPAWGFILEC_EVAL

#define INSPAWGFILEC_EVAL   3

Definition at line 45 of file inspawgfile.c.

◆ INSPAWGFILEC_EFILE

#define INSPAWGFILEC_EFILE   4

Definition at line 46 of file inspawgfile.c.

◆ INSPAWGFILEC_EINPUT

#define INSPAWGFILEC_EINPUT   5

Definition at line 47 of file inspawgfile.c.

◆ INSPAWGFILEC_EMEM

#define INSPAWGFILEC_EMEM   6

Definition at line 48 of file inspawgfile.c.

◆ INSPAWGFILEC_MSGENORM

#define INSPAWGFILEC_MSGENORM   "Normal exit"

Definition at line 50 of file inspawgfile.c.

◆ INSPAWGFILEC_MSGESUB

#define INSPAWGFILEC_MSGESUB   "Subroutine failed"

Definition at line 51 of file inspawgfile.c.

◆ INSPAWGFILEC_MSGEARG

#define INSPAWGFILEC_MSGEARG   "Error parsing arguments"

Definition at line 52 of file inspawgfile.c.

◆ INSPAWGFILEC_MSGEVAL

#define INSPAWGFILEC_MSGEVAL   "Input argument out of valid range"

Definition at line 53 of file inspawgfile.c.

◆ INSPAWGFILEC_MSGEFILE

#define INSPAWGFILEC_MSGEFILE   "Could not open file"

Definition at line 54 of file inspawgfile.c.

◆ INSPAWGFILEC_MSGEINPUT

#define INSPAWGFILEC_MSGEINPUT   "Error reading file"

Definition at line 55 of file inspawgfile.c.

◆ INSPAWGFILEC_MSGEMEM

#define INSPAWGFILEC_MSGEMEM   "Out of memory"

Definition at line 56 of file inspawgfile.c.

◆ EPOCH

#define EPOCH   (0)

Definition at line 59 of file inspawgfile.c.

◆ DIST

#define DIST   (0.00002*LAL_MRSUN_SI )

Definition at line 60 of file inspawgfile.c.

◆ M1

#define M1   (1.4)

Definition at line 61 of file inspawgfile.c.

◆ M2

#define M2   (1.4)

Definition at line 62 of file inspawgfile.c.

◆ INC

#define INC   (0.0)

Definition at line 63 of file inspawgfile.c.

◆ PHIC

#define PHIC   (0.0)

Definition at line 64 of file inspawgfile.c.

◆ SEC

#define SEC   (0)

Definition at line 65 of file inspawgfile.c.

◆ NSEC

#define NSEC   (0)

Definition at line 66 of file inspawgfile.c.

◆ NPT

#define NPT   (1048576)

Definition at line 67 of file inspawgfile.c.

◆ DT

#define DT   (1.0/16384.0)

Definition at line 68 of file inspawgfile.c.

◆ SIGMA

#define SIGMA   (0.0)

Definition at line 69 of file inspawgfile.c.

◆ MSGLEN

#define MSGLEN   (256) /* maximum length of warning/info messages */

Definition at line 72 of file inspawgfile.c.

◆ FSTART

#define FSTART   (40.0) /* initial frequency of waveform */

Definition at line 73 of file inspawgfile.c.

◆ FSTOP

#define FSTOP   (3000.0) /* termination frequency of waveform */

Definition at line 74 of file inspawgfile.c.

◆ DELTAT

#define DELTAT   (0.00006103515625) /* sampling interval of amplitude and phase */

Definition at line 75 of file inspawgfile.c.

◆ USAGE

#define USAGE
Value:
"Usage: %s [-s sourcefile] [-r respfile] [-o outfile] [-e seed]\n" \
" [-i infile | -n sec nsec npt dt sigma] [-fi lowf] [-fe highf] \n" \
" [-d debuglevel] [-p]\n"

Definition at line 78 of file inspawgfile.c.

◆ ERROR

#define ERROR (   code,
  msg,
  statement 
)
Value:
do \
if ( lalDebugLevel & LALERROR ) \
{ \
LALPrintError( "Error[0] %d: program %s, file %s, line %d, %s\n" \
" %s %s\n", (code), *argv, __FILE__, \
__LINE__, "$Id$", statement ? statement : \
"", (msg) ); \
} \
while (0)
LALERROR

Definition at line 83 of file inspawgfile.c.

◆ INFO

#define INFO (   statement)
Value:
do \
if ( lalDebugLevel & LALINFO ) \
{ \
LALPrintError( "Info[0]: program %s, file %s, line %d, %s\n" \
" %s\n", *argv, __FILE__, __LINE__, \
"$Id$", (statement) ); \
} \
while (0)
LALINFO

Definition at line 94 of file inspawgfile.c.

◆ WARNING

#define WARNING (   statement)
Value:
do \
if ( lalDebugLevel & LALWARNING ) \
{ \
LALPrintError( "Warning[0]: program %s, file %s, line %d, %s\n" \
" %s\n", *argv, __FILE__, __LINE__, \
"$Id$", (statement) ); \
} \
while (0)
LALWARNING

Definition at line 104 of file inspawgfile.c.

◆ SUB

#define SUB (   func,
  statusptr 
)
Value:
do \
if ( (func), (statusptr)->statusCode ) \
{ \
"Function call \"" #func "\" failed:" ); \
} \
while (0)
#define INSPAWGFILEC_MSGESUB
Definition: inspawgfile.c:51
#define INSPAWGFILEC_ESUB
Definition: inspawgfile.c:43

Definition at line 114 of file inspawgfile.c.

◆ CHECKVAL

#define CHECKVAL (   val,
  lower,
  upper 
)
Value:
do \
if ( ( (val) <= (lower) ) || ( (val) > (upper) ) ) \
{ \
"Value of " #val " out of range:" ); \
LALPrintError( #val " = %f, range = (%f,%f]\n", (REAL8)(val), \
(REAL8)(lower), (REAL8)(upper) ); \
} \
while (0)
double REAL8
#define INSPAWGFILEC_EVAL
Definition: inspawgfile.c:45
#define INSPAWGFILEC_MSGEVAL
Definition: inspawgfile.c:53

Definition at line 124 of file inspawgfile.c.

Function Documentation

◆ I8ToLIGOTimeGPS()

void I8ToLIGOTimeGPS ( LIGOTimeGPS output,
INT8  input 
)

Definition at line 637 of file inspawgfile.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 142 of file inspawgfile.c.