Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALPulsar 7.1.1.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ConstructPLUTTest.c File Reference

Tests the construction of the Look up Table (LUT) More...

Detailed Description

Tests the construction of the Look up Table (LUT)

Author
Sintes, A. M.

Usage

TestConstructPLUT [-d debuglevel] [-o outfile] [-f f0] [-p alpha delta] [-s patchSizeX patchSizeY]
static double double delta
double alpha

Description

%TO BE CHANGED

This program generates a patch grid, calculates the parameters needed for building the LUT, builds the LUT and outputs a partial Hough map derivative into a file. The sky patch is set at the south pole, no spin-down parameters are assumed for the demodulation and every third peak in the spectrum is selected.

By default, running this program with no arguments simply tests the subroutines, producing an output file called OutHough.asc. All default parameters are set from #defined constants.

The -d option sets the debug level to the specified value debuglevel. The -o flag tells the program to print the partial Hough map derivative to the specified data file outfile. The -f option sets the intrinsic frequency f0 at which build the LUT. The -p option sets the velocity orientation of the detector alpha, delta (in radians).

Uses

LALMalloc()
LALFree()
LALCheckMemoryLeaks()
int LALPrintError(const char *fmt,...)
void LALHOUGHConstructPLUT(LALStatus *status, HOUGHptfLUT *lut, HOUGHPatchGrid *patch, HOUGHParamPLUT *par)
void LALHOUGHCalcParamPLUT(LALStatus *status, HOUGHParamPLUT *out, HOUGHSizePar *sizePar, HOUGHDemodPar *par)
Definition: ParamPLUT.c:71

Definition in file ConstructPLUTTest.c.

Go to the source code of this file.

Macros

Error Codes
#define TESTCONSTRUCTPLUTC_ENORM   0
 
#define TESTCONSTRUCTPLUTC_ESUB   1
 
#define TESTCONSTRUCTPLUTC_EARG   2
 
#define TESTCONSTRUCTPLUTC_EBAD   3
 
#define TESTCONSTRUCTPLUTC_EFILE   4
 
#define TESTCONSTRUCTPLUTC_MSGENORM   "Normal exit"
 
#define TESTCONSTRUCTPLUTC_MSGESUB   "Subroutine failed"
 
#define TESTCONSTRUCTPLUTC_MSGEARG   "Error parsing arguments"
 
#define TESTCONSTRUCTPLUTC_MSGEBAD   "Bad argument values"
 
#define TESTCONSTRUCTPLUTC_MSGEFILE   "Could not create output file"
 

Macro Definition Documentation

◆ TESTCONSTRUCTPLUTC_ENORM

#define TESTCONSTRUCTPLUTC_ENORM   0

Definition at line 89 of file ConstructPLUTTest.c.

◆ TESTCONSTRUCTPLUTC_ESUB

#define TESTCONSTRUCTPLUTC_ESUB   1

Definition at line 90 of file ConstructPLUTTest.c.

◆ TESTCONSTRUCTPLUTC_EARG

#define TESTCONSTRUCTPLUTC_EARG   2

Definition at line 91 of file ConstructPLUTTest.c.

◆ TESTCONSTRUCTPLUTC_EBAD

#define TESTCONSTRUCTPLUTC_EBAD   3

Definition at line 92 of file ConstructPLUTTest.c.

◆ TESTCONSTRUCTPLUTC_EFILE

#define TESTCONSTRUCTPLUTC_EFILE   4

Definition at line 93 of file ConstructPLUTTest.c.

◆ TESTCONSTRUCTPLUTC_MSGENORM

#define TESTCONSTRUCTPLUTC_MSGENORM   "Normal exit"

Definition at line 95 of file ConstructPLUTTest.c.

◆ TESTCONSTRUCTPLUTC_MSGESUB

#define TESTCONSTRUCTPLUTC_MSGESUB   "Subroutine failed"

Definition at line 96 of file ConstructPLUTTest.c.

◆ TESTCONSTRUCTPLUTC_MSGEARG

#define TESTCONSTRUCTPLUTC_MSGEARG   "Error parsing arguments"

Definition at line 97 of file ConstructPLUTTest.c.

◆ TESTCONSTRUCTPLUTC_MSGEBAD

#define TESTCONSTRUCTPLUTC_MSGEBAD   "Bad argument values"

Definition at line 98 of file ConstructPLUTTest.c.

◆ TESTCONSTRUCTPLUTC_MSGEFILE

#define TESTCONSTRUCTPLUTC_MSGEFILE   "Could not create output file"

Definition at line 99 of file ConstructPLUTTest.c.