bifacial_radiance.spectral_utils.generate_spectra#

bifacial_radiance.spectral_utils.generate_spectra(metdata, simulation_path, ground_material='Gravel', spectra_folder=None, scale_spectra=False, scale_albedo=False, scale_albedo_nonspectral_sim=False, scale_upper_bound=2500, min_wavelength=280, max_wavelength=4000)[source]#

generate spectral curve for particular material. Requires pySMARTS

Parameters:
  • metdata (bifacial_radiance MetObj) – MetObj containing weather data, with a datetime index.

  • simulation_path (string or path) – path of simulation directory

  • ground_material (string, optional) – type of ground material for spectral simulation. Options include: Grass, Gravel, Snow, Seasonal etc. The default is ‘Gravel’.

  • spectra_folder (path, optional) – location to save spectral data. The default is None.

  • scale_spectra (bool, optional) – DESCRIPTION. The default is False.

  • scale_albedo (bool, optional) – DESCRIPTION. The default is False.

  • scale_albedo_nonspectral_sim (bool, optional) – DESCRIPTION. The default is False.

  • scale_upper_bound (integer, optional) – Set an upper bound for the wavelength when taking the mean or integral of any generated spectra.

Returns:

  • spectral_alb (spectral_property class) – spectral_alb.data: dataframe with frequency and magnitude data.

  • spectral_dni (spectral_property class) – spectral_dni.data: dataframe with frequency and magnitude data.

  • spectral_dhi (spectral_property class) – spectral_dhi.data: dataframe with frequency and magnitude data.

  • weighted_alb (pd.series) – datetime-indexed series of weighted albedo values