Tests the construction of Hough maps. More...
Tests the construction of Hough maps.
%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).
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" |
| #define TESTNDHOUGHMAPC_ENORM 0 |
Definition at line 109 of file NDHoughMapTest.c.
| #define TESTNDHOUGHMAPC_ESUB 1 |
Definition at line 110 of file NDHoughMapTest.c.
| #define TESTNDHOUGHMAPC_EARG 2 |
Definition at line 111 of file NDHoughMapTest.c.
| #define TESTNDHOUGHMAPC_EBAD 3 |
Definition at line 112 of file NDHoughMapTest.c.
| #define TESTNDHOUGHMAPC_EFILE 4 |
Definition at line 113 of file NDHoughMapTest.c.
| #define TESTNDHOUGHMAPC_MSGENORM "Normal exit" |
Definition at line 115 of file NDHoughMapTest.c.
| #define TESTNDHOUGHMAPC_MSGESUB "Subroutine failed" |
Definition at line 116 of file NDHoughMapTest.c.
| #define TESTNDHOUGHMAPC_MSGEARG "Error parsing arguments" |
Definition at line 117 of file NDHoughMapTest.c.
| #define TESTNDHOUGHMAPC_MSGEBAD "Bad argument values" |
Definition at line 118 of file NDHoughMapTest.c.
Definition at line 119 of file NDHoughMapTest.c.