Reference/API#

aesop Package#

Functions#

cross_corr(target_spectrum, model_spectrum, ...)

Cross correlate an observed spectrum with a model.

get_phoenix_model_spectrum(T_eff[, log_g, cache])

Download a PHOENIX model atmosphere spectrum for a star with given properties.

get_spectrum_mask(spectrum[, cutoff, plot])

Fit the raw, pre-normalized spectrum's blaze function with a Gaussian.

glob_spectra_paths(data_dir, target_names)

Collect paths to spectrum FITS files.

integrate_spectrum_trapz(spectrum, ...[, ...])

Integrate the area under a spectrum.

interpolate_spectrum(spectrum, new_wavelengths)

Linearly interpolate a spectrum onto a new wavelength grid.

json_to_stars(json_path)

Loads JSON archive into list of StarProps objects.

query_for_T_eff(identifier)

Get the approximate effective temperature of a star.

query_for_spectral_type(identifier[, ...])

Search SIMBAD for the spectral type of a star.

slice_spectrum(spectrum, min_wavelength, ...)

Return a slice of a spectrum on a smaller wavelength range.

stars_to_json(star_list[, output_path])

Save list of stellar properties to a JSON file.

uncalibrated_s_index(spectrum[, plots])

Calculate the uncalibrated S-index from an Echelle spectrum.

Classes#

EchelleSpectrum(spectrum_list[, header, ...])

Echelle spectrum of one or more spectral orders.

FitParameter(value[, err_upper, err_lower, ...])

Fit results for a fitting parameter, with asymmetrical errors.

Measurement([value, err, time, default_err, ...])

Spectrum1D([wavelength, flux, name, mask, ...])

Simple 1D spectrum object.

StarProps([name, s_apo, s_mwo, time])

S-index properties for a star

Class Inheritance Diagram#

digraph inheritance4c98dd4cce { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "EchelleSpectrum" [URL="api/aesop.EchelleSpectrum.html#aesop.EchelleSpectrum",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Echelle spectrum of one or more spectral orders."]; "FitParameter" [URL="api/aesop.FitParameter.html#aesop.FitParameter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Fit results for a fitting parameter, with asymmetrical errors."]; "Measurement" [URL="api/aesop.Measurement.html#aesop.Measurement",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Spectrum1D" [URL="api/aesop.Spectrum1D.html#aesop.Spectrum1D",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Simple 1D spectrum object."]; "StarProps" [URL="api/aesop.StarProps.html#aesop.StarProps",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="S-index properties for a star"]; }