ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/gendaymtx.1
Revision: 1.2
Committed: Tue Feb 5 06:00:19 2013 UTC (12 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.1: +19 -2 lines
Log Message:
Added -r option to gendaymtx for rotating the sky about the zenith

File Contents

# Content
1 .\" RCSid $Id: gendaymtx.1,v 1.1 2013/01/20 02:07:16 greg Exp $
2 .TH GENDAYMTX 1 01/19/13 RADIANCE
3 .SH NAME
4 gendaymtx - generate an annual Perez sky matrix from a weather tape
5 .SH SYNOPSIS
6 .B gendaymtx
7 [
8 .B "\-v"
9 ][
10 .B "\-d|\-s"
11 ][
12 .B "\-r deg"
13 ][
14 .B "\-m N"
15 ][
16 .B "\-g r g b"
17 ][
18 .B "\-c r g b"
19 ][
20 .B "-o{f|d}"
21 ]
22 [
23 .B "tape.wea"
24 ]
25 .SH DESCRIPTION
26 .I Gendaymtx
27 takes a weather tape as input and produces a matrix of sky patch
28 values using the Perez all-weather model.
29 The weather tape is assumed to be in the simple ASCII format understood
30 by DAYSIM, which contains a short header with the site parameters followed
31 by the month, day, standard time, direct normal and diffuse horizontal
32 irradiance values, one time step per line.
33 Each time step line is used to compute a column in the output matrix,
34 where rows correspond to sky patch positions, starting with 0 for
35 the ground and continuing to 145 for the zenith using the default
36 .I "\-m 1"
37 parameter setting.
38 .PP
39 Increasing the
40 .I \-m
41 parameter, typically by factors of two, yields a higher resolution
42 sky using the Reinhart patch subdivision.
43 For example, setting
44 .I "\-m 4"
45 yields a sky with 2305 patches plus one patch for the ground.
46 Each matrix entry is in fact three values, corresponding to
47 red green and blue radiance channels (watts/sr/meter^2).
48 Thus, an hourly weather tape for an entire year would
49 yield 8760x3 (26280) values per output line (row).
50 .PP
51 The
52 .I \-c
53 option may be used to specify a color for the sky.
54 The gray value should equal 1 for proper energy balance
55 The default sky color is
56 .I "\-c 0.960 1.004 1.118".
57 Similarly, the
58 .I \-g
59 option may be used to specify a ground color.
60 The default value is
61 .I "\-g 0.2 0.2 0.2"
62 corresponding to a 20% gray.
63 .PP
64 The
65 .I \-d
66 option may be used to produce a sun-only matrix, with no sky contributions.
67 Alternatively, the
68 .I \-s
69 option may be used to exclude any direct solar component from the output.
70 .PP
71 The
72 .I \-r
73 (or
74 .I \-rz)
75 option rotates the sky the specified number of degrees counter-clockwise
76 about the zenith, i.e., east of South.
77 This is in keeping with the effect of passing the output of
78 .I gensky(1)
79 or
80 .I gendaylit(1)
81 through
82 .I xform(1)
83 using a similar transform.
84 .PP
85 The
86 .I \-of
87 or
88 .I \-od
89 option may be used to specify binary float or double output, respectively.
90 This is much faster to write and to read, and is therefore preferred on
91 systems that support it.
92 (MS Windows is not one of them.)\0
93 Finally, the
94 .I \-v
95 option will enable verbose reporting, which is mostly useful for
96 finding out how many time steps are actually in the weather tape.
97 .SH EXAMPLES
98 Produce an uncolored Tregenza sky matrix without solar direct:
99 .IP "" .2i
100 gendaymtx -m 1 -c 1 1 1 -s Detroit.wea > Detroit.mtx
101 .PP
102 Produce an hourly, annual Reinhart sky matrix
103 with 2306 patches including solar contributions
104 and send float output to
105 .I dctimestep(1)
106 to compute a sensor value matrix:
107 .IP "" .2i
108 gendaymtx -m 4 -of VancouverBC.wea | dctimestep -if -n 8760 DCoef.mtx > res.dat
109 .SH AUTHORS
110 Ian Ashdown wrote most of the code,
111 based on Jean-Jacques Delaunay's original gendaylit(1) implementation.
112 Greg Ward wrote the final parameter parsing and weather tape conversion.
113 .SH "SEE ALSO"
114 dctimestep(1), genBSDF(1), gendaylit(1), gensky(1), genskyvec(1), rcontrib(1),
115 xform(1)