honeybee_plus.radiance.sky.skyvector module

class honeybee_plus.radiance.sky.skyvector.SkyVector(sky, sky_density=1, is_climate_based=False)[source]

Bases: honeybee_plus.radiance.sky._skyBase.RadianceSky

Radiance sky vector.

sky

A sky object generated either by gensky or gendaylit. If you’re not sure how to create them use one of the classmethods.

sky_density

A positive intger for sky density. [1] Tregenza Sky, [2] Reinhart Sky, etc. (Default: 1)

ToString()[source]

Overwrite .NET ToString method.

property day

Return hour.

execute(working_dir, reuse=True)[source]

Generate sky vector.

Parameters
  • working_dir – Folder to execute and write the output.

  • reuse – Reuse the matrix if already existed in the folder.

classmethod from_cie_sky(location, month=6, day=21, hour=12, sky_type=0, sky_density=1, north=0)[source]

Generate a sky vector from an standard CIE sky.

Parameters
  • month – Month [1..12] (default: 6).

  • day – Day [1..31] (default: 21).

  • hour – Hour [0..23] (default: 12).

  • sky_type – An intger between 0-5 for CIE sky type. 0: [+s] Sunny with sun, 1: [-s] Sunny without sun, 2: [+i] Intermediate with sun, 3: [-i] Intermediate with no sun, 4: [-c] Cloudy overcast sky, 5: [-u] Uniform cloudy sky

sky_density: A positive intger for sky density. [1] Tregenza Sky,

[2] Reinhart Sky, etc. (Default: 1)

classmethod from_epw_file(epw_file, month=6, day=21, hour=12, sky_density=1, north=0)[source]

Generate a climate-based sky vector.

This methos uses Radiance’s gendaylit.

Parameters
  • epw_file – Full path to epw weather file.

  • month – Month [1..12] (default: 6).

  • day – Day [1..31] (default: 21).

  • hour – Hour [0..23] (default: 12).

  • sky_type – An intger between 0-5 for CIE sky type. 0: [+s] Sunny with sun, 1: [-s] Sunny without sun, 2: [+i] Intermediate with sun, 3: [-i] Intermediate with no sun, 4: [-c] Cloudy overcast sky, 5: [-u] Uniform cloudy sky

  • sky_density – A positive intger for sky density. [1] Tregenza Sky, [2] Reinhart Sky, etc. (Default: 1)

classmethod from_radiation_values(location, direct_normal_radiation, diffuse_horizontal_radiation, month=6, day=21, hour=12, sky_density=1, north=0)[source]

From radiation values.

property hour

Return hour.

property isSkyVector

Return True.

property is_climate_based

Return True if the sky is generated from values from weather file.

property month

Return hour.

property name

Sky default name.

to_rad_string(working_dir=None, relative_path=None)[source]

Return Radiance command line.