honeybee_radiance_postprocess.reader module

Post-processing reader functions.

honeybee_radiance_postprocess.reader.ascii_to_array(ascii_file: str, nrows: Optional[int] = None, ncols: Optional[int] = None, ncomp: Optional[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: Optional[int] = None, ncols: Optional[int] = None, ncomp: Optional[int] = 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.

  • line_count – Number of lines to skip in the input file. Usually used to skip the header.

Returns

A NumPy array.