Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

honeybee-radiance-folder-1.0.1.tar.gz (97.3 kB view hashes)

Uploaded Source

Built Distribution

honeybee_radiance_folder-1.0.1-py2.py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page