Multi-grid Exoplanet Interpolator for limb DarkEning Models
Project description
MEIDEM 🌟
Multi-grid Exoplanet Interpolator for limb DarkEning Models
MEIDEM is a Python package for interpolating stellar limb darkening (LD) coefficients from multiple published grids. It provides a single, unified API regardless of which grid or photometric passband you need — just call get_ld_coefficients() and you're done.
Supported Grids
| Grid key | Reference | Model | Laws | Passbands |
|---|---|---|---|---|
kostogryz2022 |
Kostogryz et al. (2022) | MPS-ATLAS | nonlinear, power-2 | TESS, Kepler, CHEOPS, PLATO |
claret2022 |
Claret & Southworth (2022), A&A 664, A128 | ATLAS | power-2 | TESS, Kepler, Gaia, SDSS, Johnson, 2MASS |
claret2017 |
Claret (2017), A&A 600, A30 | ATLAS / PHOENIX | quadratic, square-root, logarithmic, 4coeff, linear, y | TESS |
claret2011 |
Claret & Bloemen (2011), A&A 529, A75 | ATLAS / PHOENIX | quadratic, root-square, logarithmic, 4coeff, linear, y | Kepler, CoRoT, Spitzer |
Installation
pip install meidem
All grid tables are bundled with the package — no manual downloads required.
Quick Start
import meidem
# Kostogryz+2022 — power-2 for TESS
result = meidem.get_ld_coefficients(
teff=5778, logg=4.44, feh=0.0,
passband='TESS',
grid='kostogryz2022',
law='power2',
)
print(result['coefficients']) # [c, alpha]
print(result['reference']) # 'Kostogryz et al. (2022)'
# Claret & Southworth 2022 — power-2 for Kepler
result = meidem.get_ld_coefficients(
teff=5778, logg=4.44, feh=0.0,
passband='Kepler',
grid='claret2022',
)
print(result['coefficients']) # [g, h]
# Claret 2017 — quadratic for TESS, ATLAS model
result = meidem.get_ld_coefficients(
teff=5778, logg=4.44, feh=0.0,
passband='TESS',
grid='claret2017',
law='quadratic',
mod='A', # 'A' = ATLAS | 'P' = PHOENIX
met='L', # 'L' = Least-Squares | 'F' = Flux Conservation
)
print(result['coefficients']) # [a, b]
# Claret & Bloemen 2011 — quadratic for Kepler
result = meidem.get_ld_coefficients(
teff=5778, logg=4.44, feh=0.0,
passband='Kp',
grid='claret2011',
law='quadratic',
)
print(result['coefficients']) # [a, b]
Discovery Functions
# List all available grids
meidem.available_grids()
# List available LD laws for a specific grid
meidem.available_laws('claret2017')
# List available passbands for a specific grid
meidem.available_passbands('claret2022')
Output Format
Every call to get_ld_coefficients() returns a standardized dictionary:
{
'coefficients': [0.412, 0.631], # interpolated LD coefficients
'n_coeffs' : 2, # number of coefficients
'law' : 'power2', # LD law used
'passband' : 'TESS', # photometric passband
'grid' : 'kostogryz2022', # grid used
'reference' : 'Kostogryz et al. (2022)',
'doi' : '10.1051/0004-6361/202140376',
'teff_input' : 5778.0,
'logg_input' : 4.44,
'feh_input' : 0.0,
'xi' : None,
'met' : None,
'mod' : None,
}
Citation
If you use MEIDEM in your research, please cite the package and the relevant grid(s):
@software{meidem,
author = {Meidem, Icaro},
title = {{MEIDEM}: Multi-grid Exoplanet Interpolator for limb DarkEning Models},
year = {2025},
url = {https://github.com/icaromeidem/meidem},
}
And the appropriate grid references:
- Kostogryz+2022: Kostogryz et al. 2022, A&A — doi:10.1051/0004-6361/202140376
- Claret & Southworth 2022: A&A 664, A128 — doi:10.1051/0004-6361/202244278
- Claret 2017: A&A 600, A30 — doi:10.1051/0004-6361/201629705
- Claret & Bloemen 2011: A&A 529, A75 — doi:10.1051/0004-6361/201116451
License
MIT © Icaro Meidem
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meidem-0.1.0.tar.gz.
File metadata
- Download URL: meidem-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43cdee7b86e21fd9cc5f2c89f6f9ad9d8ced1529e3bb6066b6d2e17b9f44f102
|
|
| MD5 |
e1f3baf5605ca29dc2258d861033a599
|
|
| BLAKE2b-256 |
71ccc6272978bd26e5a9b5cf345ad0c06d7fd28e86f4bafc06d6cde59c3d8ed4
|
File details
Details for the file meidem-0.1.0-py3-none-any.whl.
File metadata
- Download URL: meidem-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
809d472eb249f080c3ee3d3d7d608eecd6673b47b757e40dbba9eb7cd1a86706
|
|
| MD5 |
db31482eaa9e3b190c2a86b96541fa6d
|
|
| BLAKE2b-256 |
61c1f6f4de437e8d5926e074aac4cef1a5271d9d72fdf27f99eddd462eaf3b81
|