honeybee_radiance_postprocess.cli.grid module¶
honeybee radiance postprocess grid commands.
- honeybee_radiance_postprocess.cli.grid.restore_original_distribution(input_folder, output_folder, extension='npy', dist_info=None, output_extension='ill', as_text=False, fmt='%.2f', input_delimiter=',', delimiter='tab')[source]¶
Restructure files to the original distribution based on the distribution info.
It will assume that the files in the input folder are NumPy files. However, if it fails to load the files as arrays it will try to load from binary Radiance files to array.
- Parameters:
input_folder – Path to input folder.
output_folder – Path to the new restructured folder
extension – Extension of the files to collect data from. Default is
npy
for NumPy files. Another common extension isill
for the results of daylight studies.dist_info – Path to dist_info.json file. If None, the function will try to load
_redist_info.json
file from inside the input_folder. (Default: None).output_extension – Output file extension. This is only used if as_text is set to True. Otherwise the output extension will be
`npy
.as_text – Set to True if the output files should be saved as text instead of NumPy files.
fmt – Format for the output files when saved as text.
input_delimiter – Delimiter for the input files. This is used only if the input files are text files.
delimiter – Delimiter for the output files when saved as text.
- honeybee_radiance_postprocess.cli.grid.restore_original_distribution_metrics(input_folder, output_folder, metric, extension, dist_info=None)[source]¶
Restructure files to the original distribution based on the distribution info.
It will assume that the files in the input folder are NumPy files. However, if it fails to load the files as arrays it will try to load from binary Radiance files to array.
- Parameters:
input_folder – Path to input folder.
output_folder – Path to the new restructured folder
metric – Name of the metric to redistribute.
extension – Extension of the files to collect data from. For annual daylight metrics the extension can be ‘da’, ‘cda’, or ‘udi’.
dist_info – Path to dist_info.json file. If None, the function will try to load
_redist_info.json
file from inside the input_folder. (Default: None).