honeybee_radiance_command.gendaymtx module

gendaymtx command.

class honeybee_radiance_command.gendaymtx.Gendaymtx(options=None, output=None, wea=None)[source]

Bases: honeybee_radiance_command._command.Command

Gendaymtx command.

Gendaymtx takes a weather tape as input and produces a matrix of sky patch values using the Perez all weather model. The weather tape is assumed to be in the simple ASCII format understood by DAYSIM, which contains a short header with the site parameters followed by the month, day, standard time, direct normal and diffuse horizontal irradiance values, one time step per line. Each time step line is used to compute a column in the output matrix, where rows correspond to sky patch positions, starting with 0 for the ground and continuing to 145 for the zenith using the default -m 1 parameter setting.

Parameters
  • options – Gendaymtx options. It will be set to Radiance default values if unspecified.

  • output – Path to output file.

  • wea – Path to input wea file.

Properties:
  • options

  • output

  • wea

after_run()

After run script.

Overwrite this method to add extra tasks that runs right after run method.

enclose_command(stdin_input=False)

Enclose command in quotes and exclamation point (‘!’). This method should be used when reading the input of a command from another Radiance command.

Example: rmtxop -c 47.4 119.9 11.6 “!rmtxop view transmission daylight sky” > output

run(env=None, cwd=None)

Run command as a subprocess.

Parameters
  • env – Environmental variables (default: None).

  • cwd – Working directory (Default: ‘.’).

Returns

Command return code.

Return type

  • int

to_radiance()[source]

Command in Radiance format.

validate()[source]

Overwrite this method to add extra specific checks for the command. For instance for rcontrib you want to make sure there is at least one modifier set in the command.

This method will be executed right before running the command.

property command
property options

Rtrace options.

property output

output file.

property pipe_to

Second command to pipe the outputs from this command.

property wea

Wea file.