Limb Darkening Grids

Functions for limb darkening grids.

ld_grids.generate_ld_grid(filter, filter_nickname)

Generate a limb darkening grid for a new filter. Saves it as a pickle in the alfred ld_grids folder. Must have exoctk installed to run this.

Parameters:
  • filter (str) – The filter to generate the grid for. Must be one of the filters compatible with svo_filters. Run svo_filter.svo.filters() to see a list of allowed filters.

  • filter_nickname (str) – The name you want to give to this grid. This is what the pickle file will be named, and the filter name you should use in Init_lcs files and Init_ld files.

ld_grids.load_ld_grid(filter_name)

Loads in a pickle file for a limb darkening grid, sets up the interpolators for each limb darkening parameters, and returns those. By default, Alfred includes TESS, Kepler, V, R, I, u, g, r, i, and z. To generate more, install exoctk and run generate_ld_grid.

Parameters:

filter_name (str) – The name of the filter. This must be the name of the pickle file (before _grid).

Returns:

The interpolator objects for the two quadratic limb darkening parameters.

Return type:

tuple[LinearNDInterpolator, LinearNDInterpolator]

ld_grids.calc_ld(filter_name, T, logg, feh)

Calculates limb darkening parameters from a grid given the input stellar parameters.

Parameters:
  • filter_name (str) – The name of the filter to generate the limb darkening parameters in. Must have an existing grid in alfred. By default, Alfred includes TESS, Kepler, V, R, I, u, g, r, i, and z. More can be generated with exoctk installed and by running generate_ld_grid.

  • T (ArrayLike) – The stellar effective temperature in K.

  • logg (ArrayLike) – The log10 of the stellar surface gravity in cm/s^2.

  • feh (ArrayLike) – Stellar metallicity in dex.

Returns:

The two quadratic limb darkening parameters.

Return type:

tuple[ndarray[tuple[Any, ...], dtype[TypeVar(_ScalarT, bound= generic)]], ndarray[tuple[Any, ...], dtype[TypeVar(_ScalarT, bound= generic)]]]