VSPEC.helpers#

VSPEC helpers module

This module contains functions that may be shared throughout the rest of the package.

Functions#

arrange_teff(minteff, maxteff)

Generate a list of effective temperature (Teff) values with steps of 100 K that fully encompass the specified range.

check_and_build_dir(path)

Check and build directory.

clip_teff(teff)

Clip an effective temperature value to ensure it is within the bounds of available models.

get_filename(N, n_zfill, ext)

Get the filename that a PSG output is written to.

get_planet_indicies(planet_times, tindex)

Get the indices of the planet spectra to interpolate over.

get_surrounding_teffs(Teff)

Get the effective temperatures (Teffs) of the two spectra to interpolate between in order to obtain a spectrum with the target Teff.

isclose(quant1, quant2, tol)

Check if two quantities are close

round_teff(teff)

Round the effective temperature to the nearest integer.