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 #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 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" |
#define TESTHOUGHMAPC_ENORM 0 |
Definition at line 106 of file HoughMapTest.c.
#define TESTHOUGHMAPC_ESUB 1 |
Definition at line 107 of file HoughMapTest.c.
#define TESTHOUGHMAPC_EARG 2 |
Definition at line 108 of file HoughMapTest.c.
#define TESTHOUGHMAPC_EBAD 3 |
Definition at line 109 of file HoughMapTest.c.
#define TESTHOUGHMAPC_EFILE 4 |
Definition at line 110 of file HoughMapTest.c.
#define TESTHOUGHMAPC_MSGENORM "Normal exit" |
Definition at line 112 of file HoughMapTest.c.
#define TESTHOUGHMAPC_MSGESUB "Subroutine failed" |
Definition at line 113 of file HoughMapTest.c.
#define TESTHOUGHMAPC_MSGEARG "Error parsing arguments" |
Definition at line 114 of file HoughMapTest.c.
#define TESTHOUGHMAPC_MSGEBAD "Bad argument values" |
Definition at line 115 of file HoughMapTest.c.
Definition at line 116 of file HoughMapTest.c.