Reflectance Functions

Functions to load a stellar model and calculate planet reflectance.

class reflectance.Spectrum(wvs, spectrum, R)

A class for spectra manipulation (based on PSI Sim’s spectrum.py class).

The main properties will be: wvs - sampled wavelengths (np.array of floats, in microns) spectrum - current flux values of the spectrum (np.array of floats, [photons/s/cm^2/A]) R - spectral resolution (float)

The main functions will be: load_phoenix_model - load a PHOENIX model calculate_reflected_light -calculate the reflected light from a planet

cal_refflux_pl(host_spec, r_star, r_planet, a_planet, albedo, wvl)

Calculate the reflected flux from a planet.

Parameters:
  • d_star_earth (int) – Star-Earth distance (parsecs)

  • host_spec (array) – Flux array from host star model.

  • r_star (int) – Stellar radius ($R_{odot}$)

  • r_planet (int) – Planet radius ($R_{Jup})

  • a_planet (int) – Planet semi-major axis (AU)

  • albedo (float) – Planet albedo.

  • wvl (array) – Wavelength array from host star model.

Returns:

An array of reflected planet fluxes.

Return type:

flux_planet_ph (array)

load_phoenix_model(lambda_end, steff, path=None)

Load a PHOENIX Stellar Model

Loads a stellar PHOENIX model given a starting + ending wavelength, an effective temperature, and a path to the model.

Parameters:
  • lambda_start (int) – Starting wavelength value

  • lambda_end (int) – Ending wavelength value

  • steff (int) – Stellar effective temperature

  • path (str, optional) – Path to the PHOENIX model directory. Defaults to None.

Returns:

The wavelength array from the PHOENIX model. spec (array): The flux array from the PHOENIX model.

Return type:

lam (array)