solar_spectrum

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

Bases: ScienceState

Get/set the sbpy default solar spectrum.

To retrieve the current default:

>>> from sbpy.calib import solar_spectrum
>>> sun = solar_spectrum.get()

To change it:

>>> with solar_spectrum.set('E490_2014'):
...     # E490_2014 in effect
...     pass

Or, you may use a string:

>>> with solar_spectrum.set('E490_2014LR'):
...     # E490_2014LR in effect
...     pass

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)[source] [edit on github]