problem to simulate the continuous wave supported by LALPulsar (ephemeris not found on MacOS pip install)
To whom will concern it,
I have successfully installed the lal port and lalsuite python package in the MacOS. Here is the installation information: ~> pip freeze lalsuite==6.48.1.dev20180604
~> lalpulsar_version LAL: 6.18.0 (CLEAN ea18729b27507187e1b8cbbec723746de32aa2ce) LALXML: 1.2.4 (CLEAN 5fd4ddfcd98132791ae58e05ca8e2ec0322bd47a) LALPulsar: 1.16.0 (CLEAN b8dafae7797dcf299fd4be7b542546de11810e41)
I can successfully perform the program provided by LALSimulation (e.g., lalsim-inspiral, lalsim-detector-noise and all-inject etc.) I can also use the python program to generate the waveform supported by pycbc packages.
However, when I tried to simulate the continuous wave with the LALPulsat packages, I get the error message. For example, the simulation code provided in “ https://lscsoft.docs.ligo.org/lalsuite/lalpulsar/group__lalpulsar__py__simulate_c_w.html ”. When I performed it with python, I obtained the following error messages: —————— ~> python cw.py XLAL Error - XLALReadEphemerisFile (LALInitBarycenter.c:476): Failed to find ephemeris-file 'earth00-19-DE405.dat.gz[.gz]'
XLAL Error - XLALReadEphemerisFile (LALInitBarycenter.c:476): Invalid argument XLAL Error - XLALInitBarycenter (LALInitBarycenter.c:246): XLALReadEphemerisFile('earth00-19-DE405.dat.gz') failed
XLAL Error - XLALInitBarycenter (LALInitBarycenter.c:246): Internal function call failed: Invalid argument Traceback (most recent call last): File "cw.py", line 24, in S = simulateCW.CWSimulator(tref, tstart, Tdata, wf, dt_wf, phi0, psi, alpha, delta, detector) File "/Library/Python/2.7/site-packages/lalpulsar/simulateCW.py", line 150, in init self.__ephemerides = lalpulsar.InitBarycenter(earth_ephem_file, sun_ephem_file) RuntimeError: Internal function call failed: Invalid argument ————————
I note that the latest version of “LALPulsar” is 1.18.0.1. I installed the latest lal port, but it only includes the “LALPulsar: 1.16.0”. Furthermore, the ephemeris file “earth00-19-DE405.dat.gz” exists under /opt/local/share/lalpulsar. I cannot understand why this file cannot be recognized in LALInitBarycenter.c. Is there any good idea to correct this bug?
Sincerely,