Skip to main content

images format

IES — measured light distributions

Keep photometric measurements and scaling separate from light objects.

Format feature card

Read IES as data.

No normalization, symmetry expansion or external tilt fetches

Input

LM-63-1991/1995/2002; Type C; TILT=NONE

Output

IESProfile with Float64 angles and raw candela samples

Loader

IESLoader · @loaders.gl/images

Parser

@loaders.gl/images/ies

:::note Availability

This page documents the initial implementation in PR #4412. Use a version containing that change; this guide does not imply availability in older published versions.

:::

Detailed guide

Format, usage and output reference

Understand the source data, load it through the public entry point, and check the supported subset before integrating it.

What is an IES profile?​

An IES LM-63 file describes a measured luminaire distribution: luminous intensity sampled over vertical and horizontal angles, plus lamp, electrical, and dimensional metadata. It is useful for inspecting or reproducing a fixture's angular light output. It is not a texture file or a complete renderer light definition.

Candela measures luminous intensity in a direction. Lumens per lamp, rated watts, dimensions, and ballast fields are separate measurements; they are not interchangeable normalization factors. The file's photometric type establishes angular conventions.

Load and scale a measured sample​

import {load} from '@loaders.gl/core';
import {IESLoader} from '@loaders.gl/images/ies';

const profile = await load('fixture.ies', IESLoader);
const verticalIndex = 0;
const horizontalIndex = 0;
const index = horizontalIndex * profile.verticalAngles.length + verticalIndex;
const candela = profile.candelaValues[index] * profile.candelaMultiplier;

The angle arrays are degrees. Vertical angle varies fastest in the sample array. Do not normalize by the brightest sample unless that is an intentional downstream choice.

Output contract​

FieldMeaning
revision, labelsAuthored LM-63 revision and header label/comment records
verticalAngles, horizontalAnglesFloat64 angle samples; horizontal origin is preserved
candelaValues, candelaMultiplierRaw Float64 values and their conversion multiplier
photometricType1, the supported Type C distribution
lampCount, lumensPerLampLamp metadata; -1 lumens denotes absolute photometry
dimensions, dimensionUnitAuthored width/length/height and feet/meters unit
ballastFactor, auxiliaryFactorRevision-dependent fields retained separately
inputWattsRated input power

Supported features and limits​

LM-63-1991, 1995, and 2002 Type C profiles with TILT=NONE are supported. Unsupported revisions, Type A/B, embedded tilt payloads, and external tilt files reject. External files are never fetched.

Numeric headers, angle ordering, dimensions, and exact sample counts are checked. Parsing preserves the authored angular extent; it does not expand symmetric distributions into a full sphere, shift the angular origin, interpolate, normalize, generate a texture, or create a light. Applications must implement those transformations according to their own photometric and renderer conventions.

Direct parsing​

import {parseSync} from '@loaders.gl/core';
import {IESLoaderWithParser} from '@loaders.gl/images/ies';

const profile = parseSync(text, IESLoaderWithParser);

The root metadata loader preloads the implementation for async core APIs. There are no format-specific options or new package dependencies. Although the implementation belongs to images for lighting assets, its output is numerical photometry, not decoded pixels.