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 #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).
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" |
| #define TESTNDPEAK2PHMDC_ENORM 0 |
Definition at line 94 of file NDPeak2PHMDTest.c.
| #define TESTNDPEAK2PHMDC_ESUB 1 |
Definition at line 95 of file NDPeak2PHMDTest.c.
| #define TESTNDPEAK2PHMDC_EARG 2 |
Definition at line 96 of file NDPeak2PHMDTest.c.
| #define TESTNDPEAK2PHMDC_EBAD 3 |
Definition at line 97 of file NDPeak2PHMDTest.c.
| #define TESTNDPEAK2PHMDC_EFILE 4 |
Definition at line 98 of file NDPeak2PHMDTest.c.
| #define TESTNDPEAK2PHMDC_MSGENORM "Normal exit" |
Definition at line 100 of file NDPeak2PHMDTest.c.
| #define TESTNDPEAK2PHMDC_MSGESUB "Subroutine failed" |
Definition at line 101 of file NDPeak2PHMDTest.c.
| #define TESTNDPEAK2PHMDC_MSGEARG "Error parsing arguments" |
Definition at line 102 of file NDPeak2PHMDTest.c.
| #define TESTNDPEAK2PHMDC_MSGEBAD "Bad argument values" |
Definition at line 103 of file NDPeak2PHMDTest.c.
Definition at line 104 of file NDPeak2PHMDTest.c.