Observables (obs)#

The obs module contains functionality for calculating observables for stars and binaries in a cogsworth Population.

MIST bolometric corrections (obs.mist)#

The mist submodule contains functionality for interpolating MIST bolometric corrections to get magnitudes in various filters.

Classes#

MISTBolometricCorrectionGrid([bands, ...])

Download, cache, and ingest MIST bolometric correction grids.

Class Inheritance Diagram#

Inheritance diagram of cogsworth.obs.mist.MISTBolometricCorrectionGrid

General observables (obs.observables)#

In the observables submodule you’ll find functions get_extinction() and get_photometry(), but there are also some helper functions for dealing with magnitudes.

Functions#

get_log_g(mass, radius)

Computes log of the surface gravity in cgs

get_absolute_bol_mag(lum)

Computes the absolute bolometric magnitude following IAU Resolution B2

get_apparent_mag(M_abs, distance)

Convert absolute magnitude to apparent magnitude

get_absolute_mag(m_app, distance)

Convert apparent magnitude to absolute magnitude

add_mags(*mags[, remove_nans])

Add any number of magnitudes

get_extinction(coords)

Calculates the visual extinction values for a set of coordinates

get_photometry(filters[, population, ...])

Computes photometry subject to dust extinction using the MIST boloemtric correction grid