1 |
|
.\" RCSid $Id$" |
2 |
|
.TH DCTIMESTEP 1 12/09/09 RADIANCE |
3 |
|
.SH NAME |
4 |
< |
dctimestep - compute annual simulation time-step via matrix multiplication |
4 |
> |
dctimestep - compute annual simulation time-step(s) via matrix multiplication |
5 |
|
.SH SYNOPSIS |
6 |
|
.B dctimestep |
7 |
+ |
[ |
8 |
+ |
.B "\-n nsteps" |
9 |
+ |
][ |
10 |
+ |
.B "\-o ospec" |
11 |
+ |
][ |
12 |
+ |
.B "\-i{f|d|h} |
13 |
+ |
][ |
14 |
+ |
.B "\-o{f|d} |
15 |
+ |
] |
16 |
|
.B DCspec |
17 |
|
[ |
18 |
< |
.B skyvec |
18 |
> |
.B skyf |
19 |
|
] |
20 |
|
.br |
21 |
|
.B dctimestep |
22 |
+ |
[ |
23 |
+ |
.B "\-n nsteps" |
24 |
+ |
][ |
25 |
+ |
.B "\-o ospec" |
26 |
+ |
][ |
27 |
+ |
.B "\-i{f|d|h} |
28 |
+ |
][ |
29 |
+ |
.B "\-o{f|d} |
30 |
+ |
] |
31 |
|
.B Vspec |
32 |
|
.B Tbsdf.xml |
33 |
|
.B Dmat.dat |
34 |
|
[ |
35 |
< |
.B skyvec |
35 |
> |
.B skyf |
36 |
|
] |
37 |
|
.SH DESCRIPTION |
38 |
|
.I Dctimestep |
40 |
|
In the first form, |
41 |
|
.I dctimestep |
42 |
|
is given a daylight coefficient specification and an optional sky |
43 |
< |
vector, which may be read from the standard input if unspecified. |
44 |
< |
The daylight coefficients are multiplied against this vector and the results |
45 |
< |
are written to the standard output. |
43 |
> |
vector or matrix, which may be read from the standard input if unspecified. |
44 |
> |
The daylight coefficients are multiplied against these sky values |
45 |
> |
and the results are written to the standard output. |
46 |
|
This may be a list of color values or a combined Radiance image, |
47 |
|
as explained below. |
48 |
|
.PP |
53 |
|
directions are related to some set of measured values, such as an array of |
54 |
|
illuminance points or images. |
55 |
|
This matrix is usually computed by |
56 |
< |
.I rtcontrib(1) |
56 |
> |
.I rcontrib(1) |
57 |
|
for a particular set of windows or skylight openings. |
58 |
|
The second argument is the window transmission matrix, or BSDF, given as |
59 |
|
a standard XML description. |
62 |
|
This is usually computed using |
63 |
|
.I genklemsamp(1) |
64 |
|
with |
65 |
< |
.I rtcontrib |
65 |
> |
.I rcontrib |
66 |
|
in a separate run for each window or skylight orientation. |
67 |
< |
The final input is the sky contribution vector, |
68 |
< |
usually computed by |
69 |
< |
.I genskyvec(1), |
70 |
< |
which may be passed on the standard input. |
71 |
< |
This data must be in ASCII format, whereas the View and Daylight matrices |
72 |
< |
are more efficiently represented as binary float data if machine |
73 |
< |
byte-order is not an issue. |
67 |
> |
The last file is the sky contribution vector or matrix, |
68 |
> |
typically computed by |
69 |
> |
.I genskyvec(1) |
70 |
> |
or |
71 |
> |
.I gendaymtx(1), |
72 |
> |
and may be passed on the standard input. |
73 |
> |
This data is assumed by default to be in ASCII format, whereas the |
74 |
> |
formats of the View and Daylight matrices |
75 |
> |
are detected automatically if given as binary data. |
76 |
> |
The |
77 |
> |
.I \-if |
78 |
> |
or |
79 |
> |
.I \-id |
80 |
> |
option may be used to specify that sky data is in float or double |
81 |
> |
format, respectively, which is more efficient for large matrices. |
82 |
> |
The |
83 |
> |
.I \-ih |
84 |
> |
option says to check the header to determine the data type. |
85 |
> |
(Note that binary double data may not be read from stdin without a header.)\0 |
86 |
|
.PP |
87 |
< |
Sent to the standard output of |
87 |
> |
The standard output of |
88 |
|
.I dctimestep |
89 |
< |
is either an ASCII color vector with as many RGB triplets |
89 |
> |
is either a color vector with as many RGB triplets |
90 |
|
as there are rows in the View matrix, or a combined |
91 |
|
.I Radiance |
92 |
|
picture. |
98 |
|
.I Radiance |
99 |
|
component pictures, which will be summed according to the computed |
100 |
|
vector. |
101 |
+ |
.PP |
102 |
+ |
The |
103 |
+ |
.I \-n |
104 |
+ |
option may be used to compute multiple time steps in a |
105 |
+ |
single invocation. |
106 |
+ |
The sky input file must contain the number of |
107 |
+ |
columns specified in each sky patch row, whether it is read |
108 |
+ |
from the standard input or from a file. |
109 |
+ |
The columns do not need to be given on the same |
110 |
+ |
line, so long as the number of values totals 3*Nsteps*Npatches. |
111 |
+ |
Input starts from the first patch at the first time step, then the |
112 |
+ |
first patch at the second time step, and so on. |
113 |
+ |
If the input matrix has a header, then you may use |
114 |
+ |
.I \-n 0 |
115 |
+ |
to get the number of columns from the header rather than specifying it. |
116 |
+ |
.PP |
117 |
+ |
The |
118 |
+ |
.I \-o |
119 |
+ |
option may be used to specify a file or a set of output files |
120 |
+ |
to use rather than the standard output. |
121 |
+ |
If the given specification contains a '%d' format string, this |
122 |
+ |
will be replaced by the time step index, starting from 1. |
123 |
+ |
In this way, multiple output pictures may be produced, |
124 |
+ |
or separate result vectors (one per time step). |
125 |
+ |
If the standard output is used or the |
126 |
+ |
.I \-o |
127 |
+ |
option specifies a single output file, then an information header |
128 |
+ |
will precede the output. |
129 |
+ |
This can be removed if desired using the |
130 |
+ |
.I getinfo\(1\) |
131 |
+ |
command with a single hyphen ('-') argument. |
132 |
+ |
.PP |
133 |
+ |
The |
134 |
+ |
.I \-of |
135 |
+ |
or |
136 |
+ |
.I \-od |
137 |
+ |
option may be used to specify IEEE float or double binary output |
138 |
+ |
data, respectively. |
139 |
+ |
This enables |
140 |
+ |
.I dctimestep |
141 |
+ |
to be used as a pure matrix multiplier, as the output file with |
142 |
+ |
header specifying the format is suitable for subsequent calls. |
143 |
|
.SH EXAMPLES |
144 |
|
To compute workplane illuminances at 3:30pm on Feb 10th: |
145 |
|
.IP "" .2i |
147 |
|
.PP |
148 |
|
To compute an image at 10am on the equinox from a set of component images: |
149 |
|
.IP "" .2i |
150 |
< |
gensky 3 21 10 | genskyvec | dctimestep viewc%03d.hdr > view_03-21-10.hdr |
150 |
> |
gensky 3 21 10 | genskyvec | dctimestep dcomp%03d.hdr > view_03-21-10.hdr |
151 |
|
.PP |
152 |
|
To compute a set of illuminance contributions for Window 1 on |
153 |
|
the Winter solstice at 2pm: |
156 |
|
.PP |
157 |
|
To compute Window2's contribution to an interior view at 12 noon on the Summer solstice: |
158 |
|
.IP "" .2i |
159 |
< |
gensky 6 21 12 | genskyvec | dctimestep view%03d.hdr Blinds30.xml Window2.dmx > view_6-21-12.hdr |
159 |
> |
gensky 6 21 12 | genskyvec | dctimestep view%03d.hdr Blinds30.xml |
160 |
> |
Window2.dmx > view_6-21-12.hdr |
161 |
> |
.PP |
162 |
> |
To generate an hourly matrix of sensor value contributions from Skylight3 |
163 |
> |
using a 3-phase calculation, where output columns are time steps: |
164 |
> |
.IP "" .2i |
165 |
> |
gendaymtx -of Tampa.wea | dctimestep -if -n 8760 WPpts.vmx |
166 |
> |
shade3.xml Skylight3.dmx > wp_win3.dat |
167 |
> |
.IP "" .2i |
168 |
> |
.PP |
169 |
> |
Generate a series of pictures corresponding to timesteps |
170 |
> |
in an annual simulation: |
171 |
> |
.IP "" .2i |
172 |
> |
gendaymtx NYCity.wea | dctimestep -n 8760 -o tstep%04d.hdr dcomp%03d.hdr |
173 |
> |
.PP |
174 |
> |
To multiply two color matrices (second matrix is IEEE-float with |
175 |
> |
145 RGB columns) into a IEEE-double result (also 145 RGB columns): |
176 |
> |
.IP "" .2i |
177 |
> |
getinfo - < Inp2.fmx | dctimestep -n 145 -if -od Inp1.fmx > Inp1xInp2.dmx |
178 |
|
.SH AUTHOR |
179 |
|
Greg Ward |
180 |
|
.SH "SEE ALSO" |
181 |
< |
genklemsamp(1), genskyvec(1), mkillum(1), rtcontrib(1), rtrace(1), vwrays(1) |
181 |
> |
gendaymtx(1), genklemsamp(1), genskyvec(1), getinfo(1), |
182 |
> |
mkillum(1), rcollate(1), rcontrib(1), rtrace(1), vwrays(1) |