Skip to main content

An MCMC sampler for the time-varying LISA spacecraft separations used in TDI.

Project description

MCMC2ndGenTDI

This generates MCMC samples of parameters to estimate the time-varying LISA spacecraft separations required for laser frequency noise suppression in time-delay interferometry (TDI). See the paper published on the subject here. The data to sample over is generated with LISA Instrument and LISA Orbits, so the naming and labeling conventions may look similar to their codes for clarity.

The default settings for creating a BayesTDI() class instance are for LISA data generated with Keplerian orbit model parameterization, i.e. ({M01,a,w}--> Lij(t)).

If running Keplerian orbit model parameterization, i.e. ({M01,a,w}--> Lij(t))

  1. generate_data_Keplerian.ipynb (and follow directions within)
  2. example_mcmc_run.ipynb (and follow directions for Keplerian within)

Sampling for arbitrary numerical orbits: The spacecraft separations are parameterized by 6 orbital elements that differ for each of the 3 spacecraft. See the paper for more details. Successful sampling is still a work in progress, but directions for the numerical options are found in example_mcmc_run.ipynb.

If running numerical orbit model (18-parameter) parameterization:

  1. generate_data-ESA.ipynb
  2. elements_from_Cartesian.ipynb
  3. example_mcmc_run.ipynb (and follow directions for numerical/esa within)

Installation

pip install mcmc2ndgentdi

Current version does not link to default data file that is included in package. Currently, you must download the repository zip file and put the data files in the directory you run your code from.

Example Use

from mcmc2ndgentdi.run_mcmc_TDI import BayesTDI

Create BayesTDI() class instance. Set all arguments here. If running data that used numerical orbit model (18 parameter model) run first example and comment line 2, if running data that used Keplerian model, use second example and comment line 1.

#b1 = BayesTDI('LISA_Instrument_ESA_orbits_tcb_orbits_4_Hz_3600_sec.dat', cut_off=0,f_s=4.0,t_init= 13100.00,f_min= 5.0e-4,f_max = 0.1,orbit_model='esa',orbital_elements_file='elements_from_Cartesian_4_Hz_3600_sec.dat',tcb=True,number_n=7,Nens = 37,Nburnin = 100,Nsamples = 100000)
b1 = BayesTDI('LISA_Instrument_Keplerian_orbits_ppr_orbits_4_Hz_3600_sec.dat', cut_off=0,f_s=4.0,t_init=0.0,f_min= 5.0e-4,f_max = 0.1,orbit_model='keplerian',orbital_elements_file=None,tcb=False,number_n=7,Nens = 37,Nburnin = 100,Nsamples = 100000)

Initialize best einsum path for FDI filter

einsum_path_to_use = b1.get_einsum_path()

Run either zeus sampler for numerical orbit model data (18-parameter model; still under development for converged posteriors) or the working Keplerian orbit model parameterization.

b1.run_emcee_Keplerian_mcmc(einsum_path_to_use)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcmc2ndgentdi-1.0.10.tar.gz (19.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcmc2ndgentdi-1.0.10-py3-none-any.whl (19.3 MB view details)

Uploaded Python 3

File details

Details for the file mcmc2ndgentdi-1.0.10.tar.gz.

File metadata

  • Download URL: mcmc2ndgentdi-1.0.10.tar.gz
  • Upload date:
  • Size: 19.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.1 Darwin/21.6.0

File hashes

Hashes for mcmc2ndgentdi-1.0.10.tar.gz
Algorithm Hash digest
SHA256 eaee60dbc68a71e5d41dd04822fd7c2f0573eeea5654ca84bcde3347d114545e
MD5 2f28ba08f8ef2d178cba56df0b2099eb
BLAKE2b-256 1ef1e82c1bcc8acc54db48dab01f047faee7bb3278e0f34d9e0021b7cd906bac

See more details on using hashes here.

File details

Details for the file mcmc2ndgentdi-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: mcmc2ndgentdi-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 19.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.1 Darwin/21.6.0

File hashes

Hashes for mcmc2ndgentdi-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 a3e0a45376499fc8377a4520bce6122fae490ad88269433a4462ca15bee091e5
MD5 743083a714297605bd65031b5725fc09
BLAKE2b-256 26475acf0e554ba40276bc998cefcd0c1e145b6bda1131f1c327c594ce1392cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page