Skip to content

tiny-hippo/planetsynth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

planetsynth

planetsynth is a python package to generate cooling tracks for giant planets.

Installation

Download or clone this repository, navigate into the directory and execute

pip install .

or

python setup.py install

The package requires numpy>=1.18.5 and scipy>=1.9.0.

Usage

from planetsynth import PlanetSynth

logt = 9  # log(planetary age) in yrs
M = 0.4  # mass in Jupiter masses
Z = 0.2  # bulk heavy-element content (mass fraction)
Ze = 0.02  # atmospheric metallicity (mass fraction)
logF = 5  # log(incident stellar irradiation) in erg/s/cm2
planet_params = [M, Z, Ze, logF]

pls = PlanetSynth()
pred = pls.predict(logt, planet_params)

See examples/example.ipynb for more examples and in-depth explanations.

Reference

https://ui.adsabs.harvard.edu/abs/2021MNRAS.507.2094M/abstract

About

A python package for generating giant planet cooling tracks.

Resources

License

Stars

Watchers

Forks

Languages