bifacial_radiance.spectral_utils.generate_spectra#

bifacial_radiance.spectral_utils.generate_spectra(idx, metdata, material=None, spectra_folder=None, scale_spectra=False, scale_albedo=False, scale_albedo_nonspectral_sim=False)[source]#

generate spectral curve for particular material. Requires pySMARTS

Parameters:
  • idx (int) – index of the metdata file to run pySMARTS.

  • metdata (bifacial_radiance MetObj) – DESCRIPTION.

  • material (string, optional) – type of material for spectral simulation. Options include: Grass, Gravel, etc. The default is None.

  • 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.

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.