honeybee_radiance.lightsource.sky.hemisphere module

Radiance sky hemisphere.

class honeybee_radiance.lightsource.sky.hemisphere.Hemisphere(modifier='skyfunc')[source]

Bases: object

Radiance sky hemisphere.

Sky hemisphere relies on skyfunc and must be used with one of the Radiance sky commands.

skyfunc glow sky_glow
0
0
4 1 1 1 0
sky_glow source sky
0
0
4 0 0 1 180

Note: For more information see Chapter 6.3.2 Example: CIE Overcast Sky in Rendering with Radiance. The chapter is also accessible online at the link below. https://www.radiance-online.org/community/workshops/2003-berkeley/presentations/Mardaljevic/rwr_ch6.pdf

Properties:
  • r_emittance

  • g_emittance

  • b_emittance

  • modifier

classmethod from_dict(input_dict)[source]

Create sky_hemisphere from_dict.

Parameters:

input_dict – A python dictionary in the following format

{
'type': 'SkyHemisphere',
'r_emittance': r_emittance,
'g_emittance': g_emittance,
'b_emittance': b_emittance,
'modifier': modifier
}
to_dict()[source]

Translate sky hemisphere to a dictionary.

to_file(folder='.', name=None, mkdir=False)[source]

Write sky hemisphere to a sky_hemisphere.rad Radiance file.

Parameters:
  • folder – Target folder.

  • name – File name.

  • mkdir – A boolean to note if the directory should be created if doesn’t exist (default: False).

Returns:

Full path to the newly created file.

to_radiance()[source]

Get sky hemisphere as a Radiance input string.

property b_emittance

Sky hemisphere emittance values for blue channel (Default is 1.0).

property g_emittance

Sky hemisphere emittance values for green channel (Default is 1.0).

property modifier

Sky hemisphere modifier.

property r_emittance

Sky hemisphere emittance values for red channel (Default is 1.0).