Skip to content

πŸβš‘οΈπŸ“‚ Honeybee Radiance folder is a python library to read, write and validate Radiance folder structure

License

Notifications You must be signed in to change notification settings

ladybug-tools/honeybee-radiance-folder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
Jul 19, 2019
Jul 19, 2019
Jul 19, 2019
Jul 19, 2019
Jul 19, 2019
Jul 19, 2019
Jul 19, 2019
Jul 19, 2019
Jul 18, 2019
Jul 19, 2019
Jul 19, 2019
Jul 19, 2019
Jul 19, 2019
Jul 19, 2019

Repository files navigation

honeybee-radiance-folder

Honeybee Radiance folder is a python library to read, write and validate Radiance folder structure.

Usage

# create a Radiance folder
from honeybee_radiance_folder import Folder
import os

rf = 'c:/ladybug/sample_folder'
folder = Folder(rf)
folder.write(overwrite=True)

# check the folders created in folder
for f in os.listdir(rf):
    print(f)
asset
model
output
system
# load a Radiance folder

# in this case we are loading the folder from sample folder in radiance folder repository
# you can download it from here
# https://github.com/ladybug-tools/radiance-folder-structure/tree/master/project_folder
from honeybee_radiance_folder import Folder

rf = 'c:/ladybug/sample_folder'
folder = Folder(rf)

# get input files for static scene
for f in folder.model.static_nonaperture_files(black_out=False, rel_path=True):
    print(f)
model\static\opaque\sample_case.mat
model\static\opaque\sample_case.rad
model\static\opaque\outdoor\context.mat
model\static\opaque\outdoor\context.rad
model\static\opaque\indoor\partition.mat
model\static\opaque\indoor\partition.rad
model\static\nonopaque\indoor\partition_glass.mat
model\static\nonopaque\indoor\partition_glass.rad
# and static aperture
for f in folder.model.static_aperture_files(black_out=False, rel_path=True):
    print(f)
model\static\aperture\sample_case.mat
model\static\aperture\sample_case.rad
# and finally get the dynamic aperture - south window in this case
# and check each state
for count, ap in enumerate(folder.model.dynamic_aperture(interior=False)):
    print('dynamic aperture %d: %s' % (count + 1, ap.name))
    for state in ap.states:
        print('- %s: %s' % (state.name, state.default))
dynamic aperture 1: south_window
- clear: south_window..default..000.rad
- diffuse: south_window..default..001.rad

About

πŸβš‘οΈπŸ“‚ Honeybee Radiance folder is a python library to read, write and validate Radiance folder structure

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published