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

Tests the construction of Partial-Hough-Map-Derivatives (phmd) More...

Detailed Description

Tests the construction of Partial-Hough-Map-Derivatives (phmd)

Author
Sintes, A. M., Krishnan, B.

Program TestPeak2PHMD.c

Usage

Description

%TO BE CHANGED

This program generates a patch grid, calculates the parameters needed for building a lut, builds the lut, constructs a phmd at a certain frequency (shifted from the frequency at which the lut was built), and outputs the phmd 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. The peak-gram frequency interval is large enough to ensure compatibility with the lut and the frequency of the phmd.

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
void LALHOUGHPeak2PHMD(LALStatus *status, HOUGHphmd *phmd, HOUGHptfLUT *lut, HOUGHPeakGram *pg)
Construction of Partial-Hough-Map-Derivatives (phmd) given a peak-gram and the look-up-table.
Definition: Peak2PHMD.c:61

Definition in file Peak2PHMDTest.c.

Go to the source code of this file.

Macros

Error Codes
#define TESTPEAK2PHMDC_ENORM   0
 
#define TESTPEAK2PHMDC_ESUB   1
 
#define TESTPEAK2PHMDC_EARG   2
 
#define TESTPEAK2PHMDC_EBAD   3
 
#define TESTPEAK2PHMDC_EFILE   4
 
#define TESTPEAK2PHMDC_MSGENORM   "Normal exit"
 
#define TESTPEAK2PHMDC_MSGESUB   "Subroutine failed"
 
#define TESTPEAK2PHMDC_MSGEARG   "Error parsing arguments"
 
#define TESTPEAK2PHMDC_MSGEBAD   "Bad argument values"
 
#define TESTPEAK2PHMDC_MSGEFILE   "Could not create output file"
 

Macro Definition Documentation

◆ TESTPEAK2PHMDC_ENORM

#define TESTPEAK2PHMDC_ENORM   0

Definition at line 92 of file Peak2PHMDTest.c.

◆ TESTPEAK2PHMDC_ESUB

#define TESTPEAK2PHMDC_ESUB   1

Definition at line 93 of file Peak2PHMDTest.c.

◆ TESTPEAK2PHMDC_EARG

#define TESTPEAK2PHMDC_EARG   2

Definition at line 94 of file Peak2PHMDTest.c.

◆ TESTPEAK2PHMDC_EBAD

#define TESTPEAK2PHMDC_EBAD   3

Definition at line 95 of file Peak2PHMDTest.c.

◆ TESTPEAK2PHMDC_EFILE

#define TESTPEAK2PHMDC_EFILE   4

Definition at line 96 of file Peak2PHMDTest.c.

◆ TESTPEAK2PHMDC_MSGENORM

#define TESTPEAK2PHMDC_MSGENORM   "Normal exit"

Definition at line 98 of file Peak2PHMDTest.c.

◆ TESTPEAK2PHMDC_MSGESUB

#define TESTPEAK2PHMDC_MSGESUB   "Subroutine failed"

Definition at line 99 of file Peak2PHMDTest.c.

◆ TESTPEAK2PHMDC_MSGEARG

#define TESTPEAK2PHMDC_MSGEARG   "Error parsing arguments"

Definition at line 100 of file Peak2PHMDTest.c.

◆ TESTPEAK2PHMDC_MSGEBAD

#define TESTPEAK2PHMDC_MSGEBAD   "Bad argument values"

Definition at line 101 of file Peak2PHMDTest.c.

◆ TESTPEAK2PHMDC_MSGEFILE

#define TESTPEAK2PHMDC_MSGEFILE   "Could not create output file"

Definition at line 102 of file Peak2PHMDTest.c.