dreye.datasets.load_spitschan2016#
- dreye.datasets.load_spitschan2016(as_wide=False, label_cols='data_id')[source]#
Load Spitschan dataset of various spectra for different times of day as a dataframe.
- Parameters:
- as_widebool, optional
Whether to return the dataframe as a wide-format dataframe.
- label_colsstr or list-like, optional
The column pandas.MultiIndex, if as_wide is True.
- Returns:
- dfpandas.DataFrame
- A long-format pandas.DataFrame with the following columns:
date_number
solar_elevation
lunar_elevation
fraction_moon_illuminated
timestamp
hour
month
data_id
wavelengths
spectralirradiance
microspectralphotonflux
location
The columns attribute is a pandas.MultiIndex in wide-format.
References
[1]Spitschan, M., Aguirre, G.K., Brainard, D.H., Sweeney, A.M. (2016) Variation of outdoor illumination as a function of solar elevation and light pollution. Sci Rep 6, 26756.