vega_fluxd

class sbpy.calib.vega_fluxd[source] [edit on github]

Bases: FluxdScienceState

Get/set the sbpy Vega flux density.

To set the current values:

>>> from sbpy.calib import vega_fluxd
>>> import astropy.units as u
>>> with vega_fluxd.set({'V': 3674 * u.Jy}):
...     pass

The units must be flux density per unit wavelength or per unit frequency.

To retrieve the current values:

>>> import astropy.units as u
>>> with vega_fluxd.set({'V': 3674 * u.Jy}):
...     S = vega_fluxd.get()
...     print(S['V'])
3674.0 Jy

Multiple values are allowed:

>>> import astropy.units as u
>>> vega_fluxd.set({
...     'PS1_g': 4026 * u.Jy,
...     'PS1_r': 3252 * u.Jy,
...     'PS1_i': 2656 * u.Jy
... })

When wavelength is required, specify bandpass(lambda eff) for effective wavelength and/or bandpass(lambda pivot) for pivot wavelength:

>>> import astropy.units as u
>>> vega_fluxd.set({
...     'V': 3674 * u.Jy,
...     'V(lambda eff)': 548 * u.nm,
...     'V(lambda pivot)': 551 * u.nm
... })

Methods Summary

get()

Get the current science state value.

set(value)

Set the current science state value.

validate(value)

Methods Documentation

classmethod get() [edit on github]

Get the current science state value.

classmethod set(value) [edit on github]

Set the current science state value.

classmethod validate(value) [edit on github]