Tests the LALPtoleMetric() function. More...
Tests the LALPtoleMetric() function.
This program computes metric components using LALPtoleMetric(). The ordering of the components is \( (f_0, \alpha, \delta, f_1, \ldots) \) for the unprojected metric, and \( (\alpha, \delta, f_1, \ldots) \) for the metric with \( f_0 \) projected out.
With no options, this program displays metric components for a single point in parameter space for the default integration time (see the -t
option).
The -b
option sets the beginning time of integration to the option argument. (Default is \( 0 \) seconds)
The -e
option causes the program to showcase error messages when given bad parameter values, etc.
The -m
option sets the mismatch (default is \( 0.02 \) ).
The -p
option is provided for users who wish to view the power mismatch contours provided by the -x
option (see below) but don't have xmgrace installed. All necessary data is simply written to a file `‘nongrace.data’'; it's probably best to look at the code to see the exact format. The user should then write a small script to convert the data into the format appropriate to their favorite graphics package.
The -t
option sets the duration of integration in seconds. The default is \( 10^5 \) seconds, which is chosen because it is about one day but not an integer multiple of any astronomically important timescale.
The -x
option produces a graph of the 2% power mismatch contours on the sky. Dimensions of the ellipses have been exaggerated by a factor of MAGNIFY
(specified within the code) for legibility. The purpose of the graph is to get a feel for how ellipses are varying across parameter space. Note that this option makes a system call to the xmgrace
program, and will not work if that program is not installed on your system.
The graph shows that the patches' overall area is independent of right ascension but that those near the equator rotate, which adds a new complication to the tiling.
Definition in file PtoleMetricTest.c.
Go to the source code of this file.
Macros | |
Error Codes | |
#define | PTOLEMETRICTESTC_EMEM 1 |
#define | PTOLEMETRICTESTC_ESUB 2 |
#define | PTOLEMETRICTESTC_ESYS 3 |
#define | PTOLEMETRICTESTC_MSGEMEM "memory (de)allocation error" |
#define | PTOLEMETRICTESTC_MSGESUB "subroutine failed" |
#define | PTOLEMETRICTESTC_MSGESYS "system call failed" |
#define PTOLEMETRICTESTC_EMEM 1 |
Definition at line 100 of file PtoleMetricTest.c.
#define PTOLEMETRICTESTC_ESUB 2 |
Definition at line 101 of file PtoleMetricTest.c.
#define PTOLEMETRICTESTC_ESYS 3 |
Definition at line 102 of file PtoleMetricTest.c.
#define PTOLEMETRICTESTC_MSGEMEM "memory (de)allocation error" |
Definition at line 104 of file PtoleMetricTest.c.
#define PTOLEMETRICTESTC_MSGESUB "subroutine failed" |
Definition at line 105 of file PtoleMetricTest.c.
#define PTOLEMETRICTESTC_MSGESYS "system call failed" |
Definition at line 106 of file PtoleMetricTest.c.