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
HoughMapTest.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 TestHoughMap.c

Usage

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 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 HoughMapTest.c.

Go to the source code of this file.

Macros

Error Codes
#define TESTHOUGHMAPC_ENORM   0
 
#define TESTHOUGHMAPC_ESUB   1
 
#define TESTHOUGHMAPC_EARG   2
 
#define TESTHOUGHMAPC_EBAD   3
 
#define TESTHOUGHMAPC_EFILE   4
 
#define TESTHOUGHMAPC_MSGENORM   "Normal exit"
 
#define TESTHOUGHMAPC_MSGESUB   "Subroutine failed"
 
#define TESTHOUGHMAPC_MSGEARG   "Error parsing arguments"
 
#define TESTHOUGHMAPC_MSGEBAD   "Bad argument values"
 
#define TESTHOUGHMAPC_MSGEFILE   "Could not create output file"
 

Macro Definition Documentation

◆ TESTHOUGHMAPC_ENORM

#define TESTHOUGHMAPC_ENORM   0

Definition at line 106 of file HoughMapTest.c.

◆ TESTHOUGHMAPC_ESUB

#define TESTHOUGHMAPC_ESUB   1

Definition at line 107 of file HoughMapTest.c.

◆ TESTHOUGHMAPC_EARG

#define TESTHOUGHMAPC_EARG   2

Definition at line 108 of file HoughMapTest.c.

◆ TESTHOUGHMAPC_EBAD

#define TESTHOUGHMAPC_EBAD   3

Definition at line 109 of file HoughMapTest.c.

◆ TESTHOUGHMAPC_EFILE

#define TESTHOUGHMAPC_EFILE   4

Definition at line 110 of file HoughMapTest.c.

◆ TESTHOUGHMAPC_MSGENORM

#define TESTHOUGHMAPC_MSGENORM   "Normal exit"

Definition at line 112 of file HoughMapTest.c.

◆ TESTHOUGHMAPC_MSGESUB

#define TESTHOUGHMAPC_MSGESUB   "Subroutine failed"

Definition at line 113 of file HoughMapTest.c.

◆ TESTHOUGHMAPC_MSGEARG

#define TESTHOUGHMAPC_MSGEARG   "Error parsing arguments"

Definition at line 114 of file HoughMapTest.c.

◆ TESTHOUGHMAPC_MSGEBAD

#define TESTHOUGHMAPC_MSGEBAD   "Bad argument values"

Definition at line 115 of file HoughMapTest.c.

◆ TESTHOUGHMAPC_MSGEFILE

#define TESTHOUGHMAPC_MSGEFILE   "Could not create output file"

Definition at line 116 of file HoughMapTest.c.