solar_spectrum¶
- class sbpy.calib.solar_spectrum[source]¶
Bases:
ScienceStateGet/set the
sbpydefault 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()¶
Get the current science state value.
- classmethod set(value)¶
Set the current science state value.