Reference/API

libra Package

This is an Astropy affiliated package.

Functions

background(wavelengths, exp_time) Detector background in counts of the NIRSpec S1600 prism/clear mode (for BOTS).
draw_random_sunspot_latitudes(n[, mean_latitude]) Draw one or more random samples from the sunspot latitude distribution.
draw_random_sunspot_radii(n) Draw one or more random samples from the sunspot radius distribution.
flare_flux(times, flare_epoch, delta_f, …) Generate a flare that follows the flux distribution from Davenport et al.
inject_example_flare(wavelengths, times, epoch) Inject example flare.
inject_flares(wavelengths, times[, seed]) Inject flares into a transit light curve at times at wavelengths
inject_microflares(wavelengths, times[, seed]) Inject flares into a transit light curve at times at wavelengths
k296_all_transits(times)
k62_all_transits(times)
kepler1600(planet) Get planet properties.
kepler296(planet) Get planet properties.
kepler62(planet) Get planet properties.
mask_simultaneous_transits_k296(times, planet)
mask_simultaneous_transits_trappist(times, …)
n_photons(wavelengths, fluxes, exp_time, J, …) Estimate the number of photons received from a target with J magnitude J over exposure time exp_time.
nirspec_pixel_wavelengths()
poisson(fluxes[, axis]) Add Poisson (counting) noise to fluxes
quantum_efficiency(wavelengths) QE of the NIRSpec S1600 prism/clear mode (for BOTS).
spitzer_variability(times[, seed]) Mimic unidentified variability observed at 4.
spt_to_teff(spt) Convert spectral type (i.
test([package, test_path, args, plugins, …]) Run the tests using py.test.
throughput(wavelengths) Transmission of the NIRSpec S1600 prism/clear mode (for BOTS).
transit_duration(params) Roughly approximate the transit duration from other parameters, assuming eccentricity = 0.
transit_model(t, params) Generate a transit model at times t for a planet with propertiesi params.
transmission_spectrum_depths(planet)
trappist1(planet) Get planet properties.
trappist1_all_transits(times)
trappist_out_of_transit(times)

Classes

IRTFTemplate(sptype[, fill_gaps])
Parameters:
ObservationArchive(fname[, mode, outputs_dir])
PHOENIXModel(sptype) BT-Settle PHOENIX model spectra.
Simulation(observation[, attrs, path])
Spectra1D(wavelength, flux[, error, header, …])
Spectrum1D(wavelength, flux[, error, …])
Spot([x, y, z, r, stellar_radius, contrast]) Properties of a starspot.
Star([spots, u1, u2, r, radius_threshold, …]) Object defining a star.

Class Inheritance Diagram

Inheritance diagram of libra.spectra.irtf.IRTFTemplate, libra.spectra.spectrum.ObservationArchive, libra.spectra.phoenix.PHOENIXModel, libra.spectra.spectrum.Simulation, libra.spectra.spectrum.Spectra1D, libra.spectra.spectrum.Spectrum1D, libra.starspots.star.Spot, libra.starspots.star.Star

libra.starspots Package

Methods for computing the rotational modulation of stars due to starspots, built from pieces of mrspoc [source: http://github.com/bmorris3/mrspoc]

Functions

draw_random_sunspot_latitudes(n[, mean_latitude]) Draw one or more random samples from the sunspot latitude distribution.
draw_random_sunspot_radii(n) Draw one or more random samples from the sunspot radius distribution.

Classes

Spot([x, y, z, r, stellar_radius, contrast]) Properties of a starspot.
Star([spots, u1, u2, r, radius_threshold, …]) Object defining a star.

Class Inheritance Diagram

Inheritance diagram of libra.starspots.star.Spot, libra.starspots.star.Star