honeybee_radiance_postprocess.reader module¶
Post-processing reader functions.
- honeybee_radiance_postprocess.reader.ascii_to_array(ascii_file: str, nrows: int = None, ncols: int = None, ncomp: int = None, line_count: int = 0) ndarray [source]¶
Read a Radiance ascii file as a NumPy array.
- Parameters:
ascii_file – Path to ascii Radiance file.
nrows – Number of rows in the Radiance file.
ncols – Number of columns in the Radiance file.
ncomp – Number of components of each element in the Radiance file.
line_count – Number of lines to skip in the input file. Usually used to skip the header.
- Returns:
A NumPy array.
- honeybee_radiance_postprocess.reader.binary_to_array(binary_file: str, nrows: int = None, ncols: int = None, ncomp: int = None, fmt=None, line_count: int = 0) ndarray [source]¶
Read a Radiance binary file as a NumPy array.
- Parameters:
binary_file – Path to binary Radiance file.
nrows – Number of rows in the Radiance file.
ncols – Number of columns in the Radiance file.
ncomp – Number of components of each element in the Radiance file.
fmt – Format of the Radiance file. Can be either “ascii”, “float”, or “double.
line_count – Number of lines to skip in the input file. Usually used to skip the header.
- Returns:
A NumPy array.