solar_spectrum¶
- class sbpy.calib.solar_spectrum[source]¶
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)Validate the value and convert it to its native type, if necessary.
Methods Documentation
- classmethod get()¶
Get the current science state value.
- classmethod set(value)¶
Set the current science state value.