| 1 |
greg |
1.1 |
.\" RCSid "$Id"
|
| 2 |
|
|
.TH IES2RAD 1 6/14/96 RADIANCE
|
| 3 |
|
|
.SH NAME
|
| 4 |
|
|
ies2rad - convert IES luminaire data to RADIANCE description
|
| 5 |
|
|
.SH SYNOPSIS
|
| 6 |
|
|
.B ies2rad
|
| 7 |
|
|
[
|
| 8 |
|
|
.B options
|
| 9 |
|
|
]
|
| 10 |
|
|
[
|
| 11 |
|
|
.B input ..
|
| 12 |
|
|
]
|
| 13 |
|
|
.SH DESCRIPTION
|
| 14 |
|
|
.I Ies2rad
|
| 15 |
|
|
converts one or more IES luminaire data files to the equivalent RADIANCE
|
| 16 |
|
|
scene description.
|
| 17 |
|
|
The light source geometry will always be centered at the origin aimed
|
| 18 |
|
|
in the negative z direction, with the 0 degree plane along the x axis.
|
| 19 |
|
|
Usually, two output files will be created for every input file, one
|
| 20 |
|
|
scene file (with a ".rad" suffix) and one data file (with a ".dat"
|
| 21 |
|
|
suffix).
|
| 22 |
|
|
If the IES input file includes tilt data, then another data file
|
| 23 |
|
|
will be created (with a "+.dat" suffix).
|
| 24 |
|
|
If the
|
| 25 |
|
|
.I \-s
|
| 26 |
|
|
option is used, the scene data will be sent to the standard output
|
| 27 |
|
|
instead of being written to a file.
|
| 28 |
|
|
Since the data file does not change with other options to
|
| 29 |
|
|
.I ies2rad,
|
| 30 |
|
|
this is a convenient way to specify different lamp colors and
|
| 31 |
|
|
multipliers inline in a scene description.
|
| 32 |
|
|
If the
|
| 33 |
|
|
.I \-g
|
| 34 |
|
|
option is used, then an octree file will be created (with the ".oct"
|
| 35 |
|
|
suffix).
|
| 36 |
|
|
The root portion of the output file names will be the same as the
|
| 37 |
|
|
corresponding input file, unless the
|
| 38 |
|
|
.I \-o
|
| 39 |
|
|
option is used.
|
| 40 |
|
|
The output files will be created in the current directory (no matter
|
| 41 |
|
|
which directory the input files came from) unless the
|
| 42 |
|
|
.I \-l
|
| 43 |
|
|
or
|
| 44 |
|
|
.I \-p
|
| 45 |
|
|
options are used.
|
| 46 |
|
|
.PP
|
| 47 |
|
|
.I Ies2rad
|
| 48 |
|
|
assigns light source colors based on information in a lamp lookup table.
|
| 49 |
|
|
Since most lamps are distinctly colored,
|
| 50 |
|
|
it is often desirable to override this lookup procedure and use
|
| 51 |
|
|
a neutral value that will produced color-balanced renderings.
|
| 52 |
|
|
In general, it is important to consider lamp color when an odd assortment
|
| 53 |
|
|
of fixture types is being used to illuminate the same scene, and
|
| 54 |
|
|
the rendering can always be balanced by pfilt(1) to a specific white value
|
| 55 |
|
|
later.
|
| 56 |
|
|
.TP 10n
|
| 57 |
|
|
.BI -l \ libdir
|
| 58 |
|
|
Set the library directory path to
|
| 59 |
|
|
.I libdir.
|
| 60 |
|
|
This is where all relative pathnames will begin for output file names.
|
| 61 |
|
|
For light sources that will be used by many people, this should be
|
| 62 |
|
|
set to some central location included in the RAYPATH environment variable.
|
| 63 |
|
|
The default is the current working directory.
|
| 64 |
|
|
.TP
|
| 65 |
|
|
.BI -p \ prefdir
|
| 66 |
|
|
Set the library subdirectory path to
|
| 67 |
|
|
.I prefdir.
|
| 68 |
|
|
This is the subdirectory from the library where all output files will
|
| 69 |
|
|
be placed.
|
| 70 |
|
|
It is often most convenient to use a subdirectory for the storage of
|
| 71 |
|
|
light sources, since there tend to be many files and placing them all
|
| 72 |
|
|
in one directory is very messy.
|
| 73 |
|
|
The default value is the empty string.
|
| 74 |
|
|
.TP
|
| 75 |
|
|
.BI -o \ outname
|
| 76 |
|
|
Set the output file name root to
|
| 77 |
|
|
.I outname.
|
| 78 |
|
|
This overrides the default output file name root which is the same as the
|
| 79 |
|
|
input file.
|
| 80 |
|
|
This option may be used for only one input file, and is required when
|
| 81 |
|
|
reading data from the standard input.
|
| 82 |
|
|
.TP
|
| 83 |
|
|
.BR -s
|
| 84 |
|
|
Send the scene information to the standard output rather than a
|
| 85 |
|
|
separate file.
|
| 86 |
|
|
This is appropriate when calling
|
| 87 |
|
|
.I ies2rad
|
| 88 |
|
|
from within a scene description via an inline command.
|
| 89 |
|
|
The data file(s) will still be written based on the output file name
|
| 90 |
|
|
root, but since this information is unaffected by command line options,
|
| 91 |
|
|
it is safe to have multiple invocations of
|
| 92 |
|
|
.I ies2rad
|
| 93 |
|
|
using the same input file and different output options.
|
| 94 |
|
|
The
|
| 95 |
|
|
.I \-s
|
| 96 |
|
|
option may be used for only one input file.
|
| 97 |
|
|
.TP
|
| 98 |
|
|
.BI -d units
|
| 99 |
|
|
Output dimensions are in
|
| 100 |
|
|
.I units,
|
| 101 |
|
|
which is one of the letters 'm', 'c', 'f', or 'i' for meters,
|
| 102 |
|
|
centimeters, feet or inches, respectively.
|
| 103 |
|
|
The letter specification may be followed by a slash ('/') and an
|
| 104 |
|
|
optional divisor.
|
| 105 |
|
|
For example,
|
| 106 |
|
|
.I \-dm/1000
|
| 107 |
|
|
would be millimeters.
|
| 108 |
|
|
The default output is in meters, regardless of the original units in
|
| 109 |
|
|
the IES input file.
|
| 110 |
|
|
Note that there is no space in this option.
|
| 111 |
|
|
.TP
|
| 112 |
|
|
.BI -i \ rad
|
| 113 |
|
|
Ignore the crude geometry given by the IES input file and use instead an illum
|
| 114 |
|
|
sphere with radius
|
| 115 |
|
|
.I rad.
|
| 116 |
|
|
This option may be useful when the user wishes to add a more accurate
|
| 117 |
|
|
geometric description to the light source model, though this need
|
| 118 |
|
|
is obviated by the recent LM-63-1995 specification, which uses MGF
|
| 119 |
|
|
detail geometry.
|
| 120 |
|
|
(See
|
| 121 |
|
|
.I \-g
|
| 122 |
|
|
option below.)\0
|
| 123 |
|
|
.TP
|
| 124 |
|
|
.BR -g
|
| 125 |
|
|
If the IES file contains MGF detail geometry, compile this geometry into
|
| 126 |
|
|
a separate octree and create a single instance referencing it
|
| 127 |
|
|
instead of including the converted geometry directly in the Radiance
|
| 128 |
|
|
output file.
|
| 129 |
|
|
This can result in a considerable memory savings for luminaires
|
| 130 |
|
|
which are later duplicated many times in a scene, though the
|
| 131 |
|
|
appearance may suffer for certain luminaires since the enclosed glow
|
| 132 |
|
|
sources will not light the local geometry as they would otherwise.
|
| 133 |
|
|
.TP
|
| 134 |
|
|
.BI -f \ lampdat
|
| 135 |
|
|
Use
|
| 136 |
|
|
.I lampdat
|
| 137 |
|
|
instead of the default lamp lookup table (lamp.tab) to map lamp
|
| 138 |
|
|
names to xy chromaticity and lumen depreciation data.
|
| 139 |
|
|
It is often helpful to have customized lookup tables for specific
|
| 140 |
|
|
manufacturers and applications.
|
| 141 |
|
|
.TP
|
| 142 |
|
|
.BI -t \ lamp
|
| 143 |
|
|
Use the given lamp type for all input files.
|
| 144 |
|
|
Normally,
|
| 145 |
|
|
.I ies2rad
|
| 146 |
|
|
looks at the header lines of the IES file to try and determine
|
| 147 |
|
|
what lamp is being used in the fixture.
|
| 148 |
|
|
If any of the lines is matched by a pattern in the lamp lookup
|
| 149 |
|
|
table (see the -f option above), that color and depreciation factor will
|
| 150 |
|
|
be used instead of the default (see the -c and -u options).
|
| 151 |
|
|
The
|
| 152 |
|
|
.I lamp
|
| 153 |
|
|
specification is also looked up in the lamp table unless it is
|
| 154 |
|
|
set to "default", in which case the default color is used instead.
|
| 155 |
|
|
.TP
|
| 156 |
|
|
.BI -c " red grn blu"
|
| 157 |
|
|
Use the given color if the type of the lamp is unknown or
|
| 158 |
|
|
the -t option is set to "default".
|
| 159 |
|
|
If unspecified, the default color will be white.
|
| 160 |
|
|
.TP
|
| 161 |
|
|
.BI -u \ lamp
|
| 162 |
|
|
Set the default lamp color according to the entry for
|
| 163 |
|
|
.I lamp
|
| 164 |
|
|
in the lookup table (see the -f option).
|
| 165 |
|
|
This is the color that will be used if the input specification
|
| 166 |
|
|
does not match any lamp type patterns.
|
| 167 |
|
|
This option is used instead of the -c option.
|
| 168 |
|
|
.TP
|
| 169 |
|
|
.BI -m \ factor
|
| 170 |
|
|
Multiply all output quantities by
|
| 171 |
|
|
.I factor.
|
| 172 |
|
|
This is the best way to scale fixture brightness for different lamps, but care
|
| 173 |
|
|
should be taken when this option is applied to multiple files.
|
| 174 |
|
|
.SH EXAMPLE
|
| 175 |
|
|
To convert a single IES data file in inches with color balanced output
|
| 176 |
|
|
and 15% lumen depreciation,
|
| 177 |
|
|
creating the files "fluor01.rad" and "fluor01.dat" in the current directory:
|
| 178 |
|
|
.IP "" .2i
|
| 179 |
|
|
ies2rad -di -t default -m .85 fluor01.ies
|
| 180 |
|
|
.PP
|
| 181 |
|
|
To convert three IES files of various types to tenths of a foot and put
|
| 182 |
|
|
them in the library "/usr/local/lib/ray" subdirectory "source/ies":
|
| 183 |
|
|
.IP "" .2i
|
| 184 |
|
|
ies2rad -df/10 -l /usr/local/lib/ray -p source/ies ies01 ies02 ies03
|
| 185 |
|
|
.PP
|
| 186 |
|
|
To convert a single file and give the output a different name:
|
| 187 |
|
|
.IP "" .2i
|
| 188 |
|
|
ies2rad -o fluorescent ies03
|
| 189 |
|
|
.SH ENVIRONMENT
|
| 190 |
|
|
RAYPATH directories to search for lamp lookup table
|
| 191 |
|
|
.SH AUTHOR
|
| 192 |
|
|
Greg Ward
|
| 193 |
|
|
.SH BUGS
|
| 194 |
|
|
In pre-1991 standard IES files, all header lines will be examined
|
| 195 |
|
|
for a lamp table string match.
|
| 196 |
|
|
In post-1991 standard files, only those lamps with the [LAMP] or
|
| 197 |
|
|
[LAMPCAT] keywords will be searched.
|
| 198 |
|
|
The first match found in the file is always the one used.
|
| 199 |
|
|
This method of assigning colors to fixtures is less than perfect,
|
| 200 |
|
|
and the IES would do well to include explicit spectral information
|
| 201 |
|
|
somehow in their specification.
|
| 202 |
|
|
.PP
|
| 203 |
|
|
The IESNA LM-63 specification prior to 1995 provided three basic source
|
| 204 |
|
|
shapes, rectangular, round, and elliptical.
|
| 205 |
|
|
The details of these shapes is vague at best.
|
| 206 |
|
|
Rectangular sources will always be rectangular, but ies2rad will
|
| 207 |
|
|
approximate round sources as spherical if the height is close to
|
| 208 |
|
|
or greater than the width and length, and as a ring otherwise.
|
| 209 |
|
|
Elliptical sources are treated the same as round sources.
|
| 210 |
|
|
The 1995 standard rectifies this problem by including detailed
|
| 211 |
|
|
luminaire geometry as MGF data, though nothing in the standard
|
| 212 |
|
|
requires manufacturers to provide this information.
|
| 213 |
|
|
.SH "SEE ALSO"
|
| 214 |
|
|
mgf2rad(1), oconv(1), pfilt(1), rad2mgf(1), rpict(1), xform(1)
|