bifacial_radiance.RadianceObj.gendaylit

RadianceObj.gendaylit(timeindex, metdata=None, debug=False)[source]

Sets and returns sky information using gendaylit. Uses PVLIB for calculating the sun position angles instead of using Radiance internal sun position calculation (for that use gendaylit function)

Parameters
  • timeindex (int) – Index from 0 to ~4000 of the MetObj (daylight hours only)

  • metdata (MetObj) – MetObj object with list of dni, dhi, ghi and location

  • debug (bool) – Flag to print output of sky DHI and DNI

Returns

skyname (str) – Sets as a self.skyname and returns filename of sky in /skies/ directory. If errors exist, such as DNI = 0 or sun below horizon, this skyname is None