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.6.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.6-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: natsume_ttv-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 450eb8cc8d4646b9514636f59313bb3524dface78c5ba598c87bfaa73b9d8a69
MD5 e457a78ec77e77e297a5ec2bb37079c2
BLAKE2b-256 6e78efef96070602b340111b28ecd82c8e45bdf434df2d3741b420da6c0ef89a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: natsume_ttv-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dd849b599ea3602f2dc768fd80d11647771a816251cc556f3c519ced03fef9eb
MD5 94733446f52b740fac0b2164c14d31c8
BLAKE2b-256 fb8ad928b1768e6c9760effb3b037f9a8660554d49bea75b377456de3f4e7838

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