bifacial_radiance.spectral_utils.generate_spectral_tmys#
- bifacial_radiance.spectral_utils.generate_spectral_tmys(wavelengths, spectra_folder, metdata, location_name, output_folder)[source]#
Generate a series of TMY-like files with per-wavelength irradiance. There will be one file per wavelength. These are necessary to run a spectral simulation with gencumsky
Paramters:#
- wavelengths: (np.array or list)
array or list of integer wavelengths to simulate, in units [nm]. example: [300,325,350]
- spectra_folder: (path or str)
File path or path-like string pointing to the folder contained the SMARTS generated spectra
- metdata: pandas DataFrame
DataFrame containing the weather data, with a datetime index.
- location_name:
_description_
- output_folder:
File path or path-like string pointing to the destination folder for spectral TMYs