sunbather.RT

Functions

FinFout(sim, wavsAA, species[, numrays, ...])

Calculates a transit spectrum in units of in-transit flux / out-of-transit flux (i.e., Fin/Fout).

FinFout2RpRs(FinFout)

Converts the Fin/Fout (i.e., flux in-transit / flux out-of-transit) to Rp/Rs (i.e., the apparent size of the planet relative to the star).

RpRs2FinFout(RpRs)

Converts the Fin/Fout (i.e., flux in-transit / flux out-of-transit) to Rp/Rs (i.e., the apparent size of the planet relative to the star).

air2vac(wavs_air)

Converts air wavelengths to vacuum.

avg_limbdark_quad(ab)

Average of the quadratic limb darkening I(mu) over the stellar disk.

calc_cum_tau(x, ndens, Te, vx, nu, nu0, m, ...)

Calculates cumulative optical depth using Eq.

calc_tau(x, ndens, Te, vx, nu, nu0, m, sig0, ...)

Calculates optical depth using Eq.

constantR_wavs(wav_lower, wav_upper, R)

Returns an array of wavelengths at a constant spectral resolution.

convolve_spectrum_R(wavs, flux, R[, verbose])

Convolves a spectrum with a Gaussian filter down to a lower spectral resolution.

limbdark_quad(mu, ab)

Quadratic limb darkening law from Claret & Bloemen (2011).

project_1D_to_2D(r1, q1, Rp[, numb, ...])

Projects a 1D sub-stellar solution onto a 2D grid.

read_NIST_lines(species[, wavlower, wavupper])

Reads a tabular file of spectral line coefficients from the NIST database.

tau_12D(sim, wavAA, species[, width_fac, ...])

Maps out the optical depth at one specific wavelength.

tau_1D(sim, wavAA, species[, width_fac, v_turb])

Maps out the optical depth at one specific wavelength.

tau_to_FinFout(b_edges, tau, Rs[, bp, ab, ...])

Takes in optical depth values and calculates the Fin/Fout transit spectrum, using the stellar radius and optional limb darkening and transit phase parameters.

vac2air(wavs_vac)

Converts vacuum wavelengths to air.