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
NDPeak2PHMDTest.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 TestNDPeak2PHMD.c

Usage

TestNDPeak2PHMD [-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 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 LALNDHOUGHParamPLUT(LALStatus *status, HOUGHParamPLUT *out, HOUGHSizePar *sizePar, HOUGHDemodPar *par)
Definition: NDParamPLUT.c:72
void LALHOUGHConstructPLUT(LALStatus *status, HOUGHptfLUT *lut, HOUGHPatchGrid *patch, HOUGHParamPLUT *par)
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 NDPeak2PHMDTest.c.

Go to the source code of this file.

Macros

Error Codes
#define TESTNDPEAK2PHMDC_ENORM   0
 
#define TESTNDPEAK2PHMDC_ESUB   1
 
#define TESTNDPEAK2PHMDC_EARG   2
 
#define TESTNDPEAK2PHMDC_EBAD   3
 
#define TESTNDPEAK2PHMDC_EFILE   4
 
#define TESTNDPEAK2PHMDC_MSGENORM   "Normal exit"
 
#define TESTNDPEAK2PHMDC_MSGESUB   "Subroutine failed"
 
#define TESTNDPEAK2PHMDC_MSGEARG   "Error parsing arguments"
 
#define TESTNDPEAK2PHMDC_MSGEBAD   "Bad argument values"
 
#define TESTNDPEAK2PHMDC_MSGEFILE   "Could not create output file"
 

Macro Definition Documentation

◆ TESTNDPEAK2PHMDC_ENORM

#define TESTNDPEAK2PHMDC_ENORM   0

Definition at line 94 of file NDPeak2PHMDTest.c.

◆ TESTNDPEAK2PHMDC_ESUB

#define TESTNDPEAK2PHMDC_ESUB   1

Definition at line 95 of file NDPeak2PHMDTest.c.

◆ TESTNDPEAK2PHMDC_EARG

#define TESTNDPEAK2PHMDC_EARG   2

Definition at line 96 of file NDPeak2PHMDTest.c.

◆ TESTNDPEAK2PHMDC_EBAD

#define TESTNDPEAK2PHMDC_EBAD   3

Definition at line 97 of file NDPeak2PHMDTest.c.

◆ TESTNDPEAK2PHMDC_EFILE

#define TESTNDPEAK2PHMDC_EFILE   4

Definition at line 98 of file NDPeak2PHMDTest.c.

◆ TESTNDPEAK2PHMDC_MSGENORM

#define TESTNDPEAK2PHMDC_MSGENORM   "Normal exit"

Definition at line 100 of file NDPeak2PHMDTest.c.

◆ TESTNDPEAK2PHMDC_MSGESUB

#define TESTNDPEAK2PHMDC_MSGESUB   "Subroutine failed"

Definition at line 101 of file NDPeak2PHMDTest.c.

◆ TESTNDPEAK2PHMDC_MSGEARG

#define TESTNDPEAK2PHMDC_MSGEARG   "Error parsing arguments"

Definition at line 102 of file NDPeak2PHMDTest.c.

◆ TESTNDPEAK2PHMDC_MSGEBAD

#define TESTNDPEAK2PHMDC_MSGEBAD   "Bad argument values"

Definition at line 103 of file NDPeak2PHMDTest.c.

◆ TESTNDPEAK2PHMDC_MSGEFILE

#define TESTNDPEAK2PHMDC_MSGEFILE   "Could not create output file"

Definition at line 104 of file NDPeak2PHMDTest.c.