translate

honeybee-radiance-postprocess translate

Commands to translate objects.

honeybee-radiance-postprocess translate [OPTIONS] COMMAND [ARGS]...

annual-daylight-npy-to-ill

Convert an annual daylight results folder to older version.

This command reads an annual daylight results folder with results saved as npy files (NumPy), and converts the npy files to text files in the old results folder format.

Args:
folder: Results folder. This folder is an output folder of annual
daylight recipe. Folder should include grids_info.json and
sun-up-hours.txt.
honeybee-radiance-postprocess translate annual-daylight-npy-to-ill 
    [OPTIONS] FOLDER

Options

-of, --output-folder <output_folder>

Output folder. If not provided the output folder will be created in the same directory as the results folder. The new folder will be called results_ill.

Arguments

FOLDER

Required argument

binary-to-npy

Convert a binary Radiance file to a npy file.

This command reads a binary Radiance matrix file and saves it as a NumPy file.

Args:
mtx-file: Path to binary Radiance file.
honeybee-radiance-postprocess translate binary-to-npy [OPTIONS] MTX_FILE

Options

--conversion <conversion>

Conversion as a string. This option is useful to post-process the results from 3 RGB components into one as part of this command.

-n, --name <name>

Output file name.

Default

output

-of, --output-folder <output_folder>

Output folder.

Arguments

MTX_FILE

Required argument

npy-to-txt

Convert a npy file to text file.

This command reads a NumPy array from a npy file and saves it as readable file. The converted file is tab separated.

Args:
npy-file: Path to npy file.
honeybee-radiance-postprocess translate npy-to-txt [OPTIONS] NPY_FILE

Options

-n, --name <name>

Output file name.

Default

output

-of, --output-folder <output_folder>

Output folder.

-ext, --extension <extension>

Output file extension

Default

.txt

-fmt, --output-format <output_format>

Output format for each element in the array

Default

%.7e

Arguments

NPY_FILE

Required argument

txt-to-npy

Convert a text file to npy file.

This command reads a space or tab separated text file saves it as a NumPy file. As an example the input file could be the annual illuminance values.

Args:
txt-file: Path to text file.
honeybee-radiance-postprocess translate txt-to-npy [OPTIONS] TXT_FILE

Options

-n, --name <name>

Output file name.

Default

output

-of, --output-folder <output_folder>

Output folder.

Arguments

TXT_FILE

Required argument