Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALPulsar 7.1.1.1-b246709
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
PtoleMeshTest.c File Reference

Tests and showcases the combination of Header PtoleMetric.h and Header TwoDMesh.h modules. More...

Detailed Description

Tests and showcases the combination of Header PtoleMetric.h and Header TwoDMesh.h modules.

Author
Owen, B. J., Jones, D. I.

Program PtoleMeshTest

Usage

PtoleMeshTest

Description

The -b option sets the beginning time of integration to the option argument. (Default is \( 0 \) seconds)

The -c option determins the center of the patch. (Default is the center of the globular cluster 47 Tuc.) This option is hardcoded to use equatorial coordinates and the argument should be given in hh:mm:ss:dd:mm:ss format.

The -e option sets lalDebugLevel to the option argument. (Default is 1.)

The -f option sets the maximum frequency of integration (in Hz) to the option argument. (The default value is 1000.)

The -i option does not function at this time.

The -m option sets the maximum mismatch of the mesh to the option argument. (Default is 0.02.)

The -n option sets the maximum number of nodes in the mesh to the option argument. (Default is \( 10^6 \) .)

The texttt{-p} option causes the coordinates of the nodes to be written to a file mesh.dat, for the benifit of users who don't have xmgrace installed. The format is one node per line, (RA, DEC), with the angles in degrees.

The -r option sets the radius (in arcminutes) of the circular sky patch. (The default value is set for the globular cluster 47 Tuc.) At the moment there is no option for another patch shape, but if you specify radius zero you will get a search over a rectangular region whose limits in RA and dec are specified in the code.

The -t option sets the duration of integration, in seconds. (The default is \( 10^5 \) seconds, which is of order one day but is not an integer multiple of anything astronomically important.)

Algorithm

Uses

void LALCheckMemoryLeaks(void)
#define lalDebugLevel
void LALPtoleMetric(LALStatus *status, REAL8Vector *metric, PtoleMetricIn *input)
Computes metric components for a pulsar search in the `‘Ptolemaic’' approximation; both the Earth's s...
Definition: PtoleMetric.c:91
void LALProjectMetric(LALStatus *stat, REAL8Vector *metric, BOOLEAN errors)
Project out the zeroth dimension of a metric.
Definition: PtoleMetric.c:732

Notes

Definition in file PtoleMeshTest.c.

Go to the source code of this file.

Macros

Error Codes
#define PTOLEMESHTESTC_EMEM   1
 
#define PTOLEMESHTESTC_ERNG   2
 
#define PTOLEMESHTESTC_EFIO   3
 
#define PTOLEMESHTESTC_EOPT   4
 
#define PTOLEMESHTESTC_MSGEMEM   "memory (de)allocation error"
 
#define PTOLEMESHTESTC_MSGERNG   "value out of range"
 
#define PTOLEMESHTESTC_MSGEFIO   "file I/O error"
 
#define PTOLEMESHTESTC_MSGEOPT   "unknown command-line option"
 

Macro Definition Documentation

◆ PTOLEMESHTESTC_EMEM

#define PTOLEMESHTESTC_EMEM   1

Definition at line 91 of file PtoleMeshTest.c.

◆ PTOLEMESHTESTC_ERNG

#define PTOLEMESHTESTC_ERNG   2

Definition at line 92 of file PtoleMeshTest.c.

◆ PTOLEMESHTESTC_EFIO

#define PTOLEMESHTESTC_EFIO   3

Definition at line 93 of file PtoleMeshTest.c.

◆ PTOLEMESHTESTC_EOPT

#define PTOLEMESHTESTC_EOPT   4

Definition at line 94 of file PtoleMeshTest.c.

◆ PTOLEMESHTESTC_MSGEMEM

#define PTOLEMESHTESTC_MSGEMEM   "memory (de)allocation error"

Definition at line 96 of file PtoleMeshTest.c.

◆ PTOLEMESHTESTC_MSGERNG

#define PTOLEMESHTESTC_MSGERNG   "value out of range"

Definition at line 97 of file PtoleMeshTest.c.

◆ PTOLEMESHTESTC_MSGEFIO

#define PTOLEMESHTESTC_MSGEFIO   "file I/O error"

Definition at line 98 of file PtoleMeshTest.c.

◆ PTOLEMESHTESTC_MSGEOPT

#define PTOLEMESHTESTC_MSGEOPT   "unknown command-line option"

Definition at line 99 of file PtoleMeshTest.c.