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
NDHoughMapTest.c File Reference

Tests the construction of Hough maps. More...

Detailed Description

Tests the construction of Hough maps.

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

Program TestNDHoughMap.c

Usage

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

Description

%TO BE CHANGED

Similar to the previous ones, this program generates a patch grid, calculates the parameters needed for building a lut, and builds the lut. Then, given a peak-gram constructs a phmd at a certain frequency (shifted from the frequency at which the lut was built). 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.

Moreover, this program initializes a Hough map ht and the Hough map derivative space hd, adds one phmd into the Hough map derivative hd, constructs the total Hough map ht by integrating the hd, and outputs the ht into a file.

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()
void LALHOUGHInitializeHD(LALStatus *status, HOUGHMapDeriv *hd)
This function initializes the Hough map derivative space HOUGHMapDeriv *hd to zero.
Definition: HoughMap.c:31
void LALHOUGHAddPHMD2HD(LALStatus *status, HOUGHMapDeriv *hd, HOUGHphmd *phmd)
Given an initial Hough map derivative HOUGHMapDeriv *hd and a representation of a phmd HOUGHphmd *phm...
Definition: HoughMap.c:123
void LALHOUGHIntegrHD2HT(LALStatus *status, HOUGHMapTotal *ht, HOUGHMapDeriv *hd)
This function constructs a total Hough map HOUGHMapTotal *ht from its derivative HOUGHMapDeriv *hd by...
Definition: HoughMap.c:353
void LALHOUGHInitializeHT(LALStatus *status, HOUGHMapTotal *ht, HOUGHPatchGrid *patch)
This function initializes the total Hough map HOUGHMapTotal *ht to zero and checks consistency betwee...
Definition: HoughMap.c:74
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 NDHoughMapTest.c.

Go to the source code of this file.

Macros

Error Codes
#define TESTNDHOUGHMAPC_ENORM   0
 
#define TESTNDHOUGHMAPC_ESUB   1
 
#define TESTNDHOUGHMAPC_EARG   2
 
#define TESTNDHOUGHMAPC_EBAD   3
 
#define TESTNDHOUGHMAPC_EFILE   4
 
#define TESTNDHOUGHMAPC_MSGENORM   "Normal exit"
 
#define TESTNDHOUGHMAPC_MSGESUB   "Subroutine failed"
 
#define TESTNDHOUGHMAPC_MSGEARG   "Error parsing arguments"
 
#define TESTNDHOUGHMAPC_MSGEBAD   "Bad argument values"
 
#define TESTNDHOUGHMAPC_MSGEFILE   "Could not create output file"
 

Macro Definition Documentation

◆ TESTNDHOUGHMAPC_ENORM

#define TESTNDHOUGHMAPC_ENORM   0

Definition at line 109 of file NDHoughMapTest.c.

◆ TESTNDHOUGHMAPC_ESUB

#define TESTNDHOUGHMAPC_ESUB   1

Definition at line 110 of file NDHoughMapTest.c.

◆ TESTNDHOUGHMAPC_EARG

#define TESTNDHOUGHMAPC_EARG   2

Definition at line 111 of file NDHoughMapTest.c.

◆ TESTNDHOUGHMAPC_EBAD

#define TESTNDHOUGHMAPC_EBAD   3

Definition at line 112 of file NDHoughMapTest.c.

◆ TESTNDHOUGHMAPC_EFILE

#define TESTNDHOUGHMAPC_EFILE   4

Definition at line 113 of file NDHoughMapTest.c.

◆ TESTNDHOUGHMAPC_MSGENORM

#define TESTNDHOUGHMAPC_MSGENORM   "Normal exit"

Definition at line 115 of file NDHoughMapTest.c.

◆ TESTNDHOUGHMAPC_MSGESUB

#define TESTNDHOUGHMAPC_MSGESUB   "Subroutine failed"

Definition at line 116 of file NDHoughMapTest.c.

◆ TESTNDHOUGHMAPC_MSGEARG

#define TESTNDHOUGHMAPC_MSGEARG   "Error parsing arguments"

Definition at line 117 of file NDHoughMapTest.c.

◆ TESTNDHOUGHMAPC_MSGEBAD

#define TESTNDHOUGHMAPC_MSGEBAD   "Bad argument values"

Definition at line 118 of file NDHoughMapTest.c.

◆ TESTNDHOUGHMAPC_MSGEFILE

#define TESTNDHOUGHMAPC_MSGEFILE   "Could not create output file"

Definition at line 119 of file NDHoughMapTest.c.