Skip to main content

Near-resonant Analytic TTV Solver for Unknown Mass Estimates

Project description

NATSUME

Near-resonant Analytic TTV Solver for Unknown Mass Estimates (NATSUME) for Python 3 (Work in progress!)

A python 3 module which aims to quickly estimate non-transiting exoplanet masses in possible near Mean Motion Resonance (MMR) scenarios from approximately sinusoidal Transit Timing Variation (TTV) signals.

The TTV mass inversion estimations are based from Lithwick's model for 1st order near MMR (https://doi.org/10.1088/0004-637X/761/2/122) and Deck-Agol's model for higher order near MMRs (https://doi.org/10.3847/0004-637X/821/2/96).

Installation

Install from pypi:

pip install natsume-ttv

Usage

To use NATSUME:

  • Build two objects containing TTV signal information (amplitude and "superperiod") and complex orbital eccentricity information (see Lithwick's eqn. 11) via natsume.get_TTVSineCurve and natsume.get_ComplexEccentricities respectively.
  • Estimate inner or outer exoplanet masses via natsume.EstimateInnerMass or natsume.EstimateOuterMass functions.
  • The code will return a list of two possible mass solutions calculated from the input arguments.
    • Remark: There are two solutions, because the perturbing planet's period can be unknown if it is non-transiting, and two periods are possible given the definition of the TTV superperiod (see Lithwick's eqn. 5). You can restrict to one solution by specifying the perturbing planet's period in the estimation functions. This skips the calculation of the perturbing planet's period completely, so make sure the mmr argument is close enough!

For example, to estimate the outer planet Kepler-32 c's mass assuming zero eccentricity:

import natsume

# We use Kepler-32, all time unit in days (from Lithwick et al. 2012)
# Expected solution: 7.59 Earths for outer planet c

# Setup parameters here
Pb = 5.901    # Inner period (days)
Pc = 8.752    # Outer period (days)
Vb = 0.0062   # Inner TTV Amplitude (days)
PTTV = 1/abs(3/Pc - 2/Pb)  # Calculated TTV "superperiod" (not provided by Lithwick; so we calculate)
mmr = '3:2'   # MMR Scenario
Mstar = 0.49  # Host star mass (solar masses)

# Build object for sinusoidal inner TTV
TTVb = natsume.get_TTVSineCurve(amplitude=Vb, superperiod=PTTV)

# Build object for system complex eccentricity; Assumes zero eccentricity in this case
z = natsume.get_ComplexEccentricities()

# Estimate outer planet mass relative to the host star
mu_c = natsume.EstimateOuterMass(
   innerTTV=TTVb,
   inner_period=Pb,
   mmr=mmr,
   eccentricity=z,
   outer_period=None
)

For nonzero eccentricities, let's suppose inner "free eccentricity" is 0.01, inner longitude of periastron is 90 degrees, outer "free eccentricity" is 0.03, and outer longitude of periastron is 200 degrees, the following arguments are to be put in natsume.get_ComplexEccentricities

z = natsume.get_ComplexEccentricities(e1=0.01, w1=90, e2=0.03, w2=200)

And if the perturbing outer planet's orbital period is known (Pc), modify the outer_period=None argument in natsume.EstimateOuterMass as follows:

mu_c = natsume.EstimateOuterMass(
   innerTTV=TTVb,
   inner_period=Pb,
   mmr=mmr,
   eccentricity=z,
   outer_period=Pc
)

Finally, conversion from mu_c in host stellar mass to mass estimate in Earth masses can be done with astropy.units. In-package support may be available in the future.

from astropy import units as u
m_c = (mu_c * Mstar*u.M_sun).to(u.M_earth).value
print(f'Estimated outer planet mass: {m} Earths')

For further details, see documentation which hasn't been written yet (It's work in progress code!, or you can just read the source code)

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

natsume_ttv-0.1.4.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

natsume_ttv-0.1.4-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file natsume_ttv-0.1.4.tar.gz.

File metadata

  • Download URL: natsume_ttv-0.1.4.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for natsume_ttv-0.1.4.tar.gz
Algorithm Hash digest
SHA256 86c52209be9a26668cf9e2d3c2bde96bdabfa58233f56f15200f96fe996accf7
MD5 5b3bd6d5c5b890e9a1e9d01266e66e88
BLAKE2b-256 f2bc6813820bc9beb994679af412704c039f1973b426838d24e4d15029434b6d

See more details on using hashes here.

File details

Details for the file natsume_ttv-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: natsume_ttv-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for natsume_ttv-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 15b8dd07b49ce633771fbd1e95850d8a6494b7c1a4e59f2788cd662fcdff1d93
MD5 19b3935859126d2fe42dac6a5b66b641
BLAKE2b-256 f51ec674a6ce55d57bf1bb2c9853ecfbdfe297917735fbb156c98d7787812d96

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