24#include <lal/UserInput.h>
25#include <lal/LALString.h>
26#include <lal/DopplerScan.h>
27#include <lal/LALInitBarycenter.h>
29#include "../antenna.h"
49int main(
int argc,
char *argv[] )
59 XLAL_CHECK( ( OUTPUT = fopen( uvar.outfilename,
"w" ) ) != NULL,
XLAL_EIO,
"Output file %s could not be opened\n", uvar.outfilename );
62 if ( strcmp(
"L1", uvar.IFO ) == 0 ) {
63 fprintf( stderr,
"IFO = %s\n", uvar.IFO );
65 }
else if ( strcmp(
"H1", uvar.IFO ) == 0 ) {
66 fprintf( stderr,
"IFO = %s\n", uvar.IFO );
68 }
else if ( strcmp(
"V1", uvar.IFO ) == 0 ) {
69 fprintf( stderr,
"IFO = %s\n", uvar.IFO );
72 XLAL_ERROR(
XLAL_EINVAL,
"Not using valid interferometer! Expected 'H1', 'L1', or 'V1' not %s.\n", uvar.IFO );
76 fprintf( stderr,
"Sky region = %s\n", uvar.skyRegion );
81 scanInit.skyRegionString = uvar.skyRegion;
82 scanInit.numSkyPartitions = 1;
83 scanInit.Freq = uvar.fmin + 0.5 * uvar.fspan;
91 REAL4 detectorVmax = 0.0;
93 detectorVmax =
CompDetectorVmax( 931081500.0 + uvar.SFToverlap, uvar.Tsft, uvar.SFToverlap, 62899200.0 - uvar.SFToverlap, det,
edat );
95 detectorVmax =
CompDetectorVmax( uvar.t0 - uvar.Tsft, uvar.Tsft, uvar.SFToverlap, uvar.Tobs + 2.0 * uvar.Tsft, det,
edat );
100 scanInit.dAlpha = 0.5 / ( ( uvar.fmin + 0.5 * uvar.fspan ) * uvar.Tsft * detectorVmax );
101 scanInit.dDelta = scanInit.dAlpha;
149 XLALRegisterUvarMember( skyRegion,
STRING, 0, OPTIONAL,
"Region of the sky to search (e.g. (ra1,dec1),(ra2,dec2),(ra3,dec3)...) or allsky" );
void InitDopplerSkyScan(LALStatus *status, DopplerSkyScanState *skyScan, const DopplerSkyScanInit *init)
int XLALNextDopplerSkyPos(PulsarDopplerParams *pos, DopplerSkyScanState *skyScan)
NextDopplerSkyPos(): step through sky-grid return 0 = OK, -1 = ERROR.
@ STATE_FINISHED
all templates have been read
@ GRID_ISOTROPIC
approximately isotropic sky-grid
const LALVCSInfoList lalPulsarVCSInfoList
NULL-terminated list of VCS and build information for LALPulsar and its dependencies
REAL4 CompDetectorVmax(const REAL8 t0, const REAL8 Tsft, const REAL8 SFToverlap, const REAL8 Tobs, const LALDetector det, EphemerisData *edat)
Compute the largest magnitude of antenna velocity.
const LALDetector lalCachedDetectors[LAL_NUM_DETECTORS]
EphemerisData * XLALInitBarycenter(const CHAR *earthEphemerisFile, const CHAR *sunEphemerisFile)
XLAL interface to reading ephemeris files 'earth' and 'sun', and return ephemeris-data in old backwar...
void XLALDestroyEphemerisData(EphemerisData *edat)
Destructor for EphemerisData struct, NULL robust.
#define XLAL_INIT_DECL(var,...)
char char * XLALStringDuplicate(const char *s)
#define XLAL_CHECK(assertion,...)
int main(int argc, char *argv[])
INT4 InitUserVars(UserVariables_t *uvar, int argc, char *argv[])
initialization-structure passed to InitDopplerSkyScan()
this structure reflects the current state of a DopplerSkyScan
This structure contains all information about the center-of-mass positions of the Earth and Sun,...
Type containing the 'Doppler-parameters' affecting the time-evolution of the phase.
REAL8 Delta
Sky position: DEC (latitude) in equatorial coords and radians.
REAL8 Alpha
Sky position: RA (longitude) in equatorial coords and radians.
CHAR * ephemSun
Sun ephemeris file to use.
CHAR * ephemEarth
Earth ephemeris file to use.
REAL8 SFToverlap
overlap SFTs by this many seconds
REAL8 Tsft
SFT time baseline Tsft.