Tests the construction of Partial-Hough-Map-Derivatives (phmd
)
More...
Tests the construction of Partial-Hough-Map-Derivatives (phmd
)
%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 #define
d 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).
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" |
#define TESTPEAK2PHMDC_ENORM 0 |
Definition at line 92 of file Peak2PHMDTest.c.
#define TESTPEAK2PHMDC_ESUB 1 |
Definition at line 93 of file Peak2PHMDTest.c.
#define TESTPEAK2PHMDC_EARG 2 |
Definition at line 94 of file Peak2PHMDTest.c.
#define TESTPEAK2PHMDC_EBAD 3 |
Definition at line 95 of file Peak2PHMDTest.c.
#define TESTPEAK2PHMDC_EFILE 4 |
Definition at line 96 of file Peak2PHMDTest.c.
#define TESTPEAK2PHMDC_MSGENORM "Normal exit" |
Definition at line 98 of file Peak2PHMDTest.c.
#define TESTPEAK2PHMDC_MSGESUB "Subroutine failed" |
Definition at line 99 of file Peak2PHMDTest.c.
#define TESTPEAK2PHMDC_MSGEARG "Error parsing arguments" |
Definition at line 100 of file Peak2PHMDTest.c.
#define TESTPEAK2PHMDC_MSGEBAD "Bad argument values" |
Definition at line 101 of file Peak2PHMDTest.c.
Definition at line 102 of file Peak2PHMDTest.c.