# IES File Verification and Corrupt Data Troubleshooting

Source: https://www.illuminationpros.net/articles/ies_file_verification_and_corrupt_data_troubleshooting/ | Published: 2026-07-23

The process of lighting design relies heavily on accurate photometric data. When utilizing tools like AGi32 or DIALux evo, the integrity of vendor-supplied models is absolutely paramount. An IES file is a legally binding mathematical model derived from rigorous laboratory testing. This article explores the deep nuances of IES file parsing, focusing specifically on inspecting and correcting bad ASCII headers and syntax formatting errors in vendor-supplied IES files prior to layout execution. Mastering this verification process is critical to mitigating the complexities of absolute photometry errors that often plague modern LED photometric reports.

Professionals in electrical engineering cannot afford to assume that every file downloaded from a manufacturer’s portal is pristine. With the proliferation of automated data generation, encountering corrupt photometrics data has become alarmingly common. Relying on bad data inevitably leads to non-compliant light levels, failed inspections, and costly on-site remediation.

## Understanding IES File Parsing and the ANSI/IES LM-63-19 Standard

The IES file format, formally defined and updated through ANSI/IES LM-63-19, is an ASCII text file that describes the luminous intensity distribution of a luminaire. It was originally established to allow a standardized method of exchanging photometric data between different software programs. The standard dictates a highly specific sequence of data blocks.

The structure strictly mandates starting with a standard format identifier (e.g., `IESNA:LM-63-2002`). This is followed by a series of keyword modifiers enclosed in brackets, the crucial `TILT=` specification, and finally, a dense block of numerical data detailing lamp parameters, electrical characteristics, and the actual photometric web consisting of angles and measured candela values.

When IES files are generated by goniophotometer software, translated between formats, or manually edited by well-meaning sales engineers, syntax errors can easily be introduced. These errors can cause lighting software to completely misinterpret the luminaire’s performance. The results range from wildly inaccurate illuminance calculations to unexpected software crashes during the rendering phase. A thorough understanding of LM-63-19 allows practitioners to identify whether an issue lies within the file itself or the calculation parameters of the software.

## Common IES File Parsing Errors

Before importing a large batch of IES files into calculation software for a major project, such as an exterior parking lot utilizing ANSI/IES RP-8-22 guidelines or an indoor workspace governed by ANSI/IES RP-1-20, it is crucial to perform a basic sanity check. Here are the most common areas where data corruption frequently occurs:

### 1\. Bad ASCII Headers and Keyword Modifiers

The header portion of the IES file provides the necessary context about the luminaire, the manufacturer, the testing laboratory, and the date of the test. While lighting calculation engines primarily rely on the numerical data for footcandle or lux generation, improperly formatted headers can fatally disrupt the parsing sequence.

-   **Missing or Incorrect Format Identifier:** The very first line of the file must identify the exact standard iteration used (e.g., `IESNA:LM-63-1995` or `IESNA:LM-63-2002`). If this line is missing, contains leading spaces, or is misspelled, stringent parsers will reject the file outright.
-   **Malformed Keywords:** Keywords must be strictly enclosed in square brackets (e.g., `[TEST]`, `[MANUFAC]`, `[LUMCAT]`, `[LUMINAIRE]`). Each keyword and its associated descriptive text should ideally be on separate, defined lines. Missing brackets, unclosed brackets, or concatenated lines are frequent culprits that cause software to throw “Invalid Format” errors.

### 2\. TILT Specification Issues

The `TILT=` line specifies whether the luminaire has a dynamic tilt multiplier. This was historically more relevant for HID lamps where the burning position affected the luminous output, but it remains a mandatory syntax element.

-   **Syntax Requirements:** It must exactly read `TILT=NONE` or `TILT=INCLUDE` followed immediately on the next line by the tilt file name if included.
-   **Common Errors:** Extraneous spaces, missing equals signs, or entirely missing the `TILT=` line will cause immediate parsing failures in strict calculation engines like AGi32. The parser essentially loses its place in the sequence, reading subsequent numerical data as part of the header.

### 3\. Absolute Photometry Errors and ANSI/IES LM-79-19

With the industry’s near-complete shift towards solid-state LED technology, most contemporary IES files utilize absolute photometry, governed by ANSI/IES LM-79-19 testing procedures. This fundamentally changes how the numerical block is structured compared to traditional relative photometry, which relied on rated bare-lamp lumens and a secondary luminaire efficiency multiplier.

In absolute photometry, the “number of lamps” is typically listed as `1`, and the “lumens per lamp” is listed as `-1`.

-   **The `-1` Multiplier Error:** A highly prevalent error occurs when a vendor generates an absolute photometry file but neglects to set the lumens per lamp to `-1` in the first numerical line. If this value is erroneously set to a positive integer (like total fixture lumens) while the candela values are already absolute, the software may attempt a secondary relative calculation. This results in incorrectly scaled output, often over-calculating expected illuminance levels.
-   **Absolute Photometry Scaling Errors:** Conversely, if the file correctly uses `-1` but the luminous physical dimensions or the internal candela multiplier are scaled incorrectly, the resulting layout will show drastic over- or under-illumination. This is particularly dangerous in street lighting or sports lighting scenarios where minimum uniformity ratios are strictly enforced.

### 4\. Structural Integrity of the Photometric Web

The core mechanical engine of the IES file is the defined grid of horizontal and vertical angles, followed by the massive matrix of corresponding candela values.

-   **Mismatched Array Sizes:** The initial numerical block explicitly specifies the total number of vertical angles and horizontal angles contained in the file. If the actual number of angles listed sequentially below does not exactly match these declared integer values, the parser will fail, often citing an “Unexpected End of File” error.
-   **Non-Sequential Angles:** Vertical and horizontal angles must be listed in strictly ascending order (e.g., 0, 2.5, 5, 7.5… 90). Corrupted files sometimes have overlapping, duplicate, or out-of-order angle arrays due to bad data exports from older or improperly calibrated goniophotometer software.

## A Comprehensive Troubleshooting Protocol

When faced with a suspect IES file that refuses to import, or one that generates implausible photometrics (such as a 10-watt downlight producing 50,000 candelas), follow this systematic protocol before abandoning the fixture selection:

1.  **Open in a Raw Text Editor:** Never rely solely on the generic error message provided by DIALux evo or AGi32. Open the `.ies` file in a raw, unformatted text editor like Notepad++ or Visual Studio Code. Word processors like Microsoft Word can invisibly add formatting characters that further corrupt the file.
2.  **Verify the First Line:** Ensure it contains a valid, left-justified IESNA identifier with no leading spaces.
3.  **Check TILT Verification:** Confirm the `TILT=` statement is properly formatted in all caps, has no spaces around the equals sign, and stands completely on its own line immediately preceding the numerical data block.
4.  **Inspect the First Numerical Line:** Look precisely at the first line of numbers immediately following `TILT=`. It dictates the entire architectural structure of the data: `[Number of Lamps] [Lumens per Lamp] [Multiplier] [Number of Vertical Angles] [Number of Horizontal Angles] [Photometric Type] [Units Type] [Width] [Length] [Height]`.
    -   Verify `[Number of Lamps]` is `-1` for modern LED fixtures requiring absolute photometry.
    -   Ensure the angle counts exactly match the total number of values in the subsequent vertical and horizontal angle blocks.
5.  **Utilize an Independent IES Viewer:** Use a dedicated, lightweight IES viewer (such as Photometrics Pro or an open-source equivalent) to render the polar candela plot and the standard zonal lumen summary independently of your main calculation software. If the polar plot looks malformed, exhibiting jagged, non-physical spikes or asymmetric blobs where smooth cosine distribution curves are expected, the numerical candela data is inherently corrupt at the source.

### Table: Key Numerical Identifiers in ANSI/IES LM-63-19

| Field | Position (Post-TILT) | Common Absolute Value | Description |
| --- | --- | --- | --- |
| Number of Lamps | 1st value | 1 (typically) | The number of lamps in the luminaire. |
| Lumens per Lamp | 2nd value | \-1 | Indicates absolute photometry (no relative scaling applied). |
| Candela Multiplier | 3rd value | 1.0 (typically) | A direct scaling factor applied to all subsequent candela values. |
| Vertical Angles | 4th value | Variable (e.g., 37) | The total count of vertical angles listed in the web. |
| Horizontal Angles | 5th value | Variable (e.g., 73) | The total count of horizontal angles listed in the web. |
| Photometric Type | 6th value | 1 (Type C) | Defines the coordinate system (Type C is standard for indoor/roadway). |
| Units Type | 7th value | 1 (Feet) or 2 (Meters) | Defines the units for the luminaire’s physical luminous dimensions. |

## Software Specific Handling of Corrupt Files

Different professional lighting calculation platforms handle corrupt IES files with varying degrees of strictness, which can often confuse designers who transition between tools.

**AGi32:** Known for its highly strict adherence to ANSI/IES LM-63-19. If a file contains a misplaced bracket, a missing `TILT=` line, or mismatched array sizes, AGi32 will typically reject the file immediately with a parsing error. This strictness is beneficial as it prevents garbage data from entering the calculation environment, but it requires the designer to understand how to fix minor header syntax issues.

**DIALux evo:** Generally possesses a slightly more forgiving parser. It may attempt to auto-correct minor header issues or ignore missing descriptive brackets to force the file to load. However, this leniency can be dangerous if it auto-corrects critical numerical errors incorrectly, leading to fundamentally flawed illuminance calculations that appear valid on the surface.

Understanding these software behaviors underscores why manual inspection in a text editor remains the gold standard for photometric verification.

## Correcting Errors Safely and Legally

While minor header issues (such as a missing bracket around `[MANUFAC]` or an extraneous space before `IESNA:LM-63-2002`) can be safely corrected manually in a text editor to force the file to parse, practitioners must exercise extreme caution when modifying anything below the `TILT=` line.

Changing candela values, multipliers, or physical dimensions fundamentally alters the certified photometric report. If the numerical web is corrupt (e.g., non-sequential angles or physically impossible candela spikes), the only legally and ethically sound course of action is to reject the file and request a newly generated, certified IES file from the manufacturer. Modifying the raw distribution data manually invalidates the independent photometric test. If the installed project subsequently fails to meet target illuminance levels, liability will firmly shift to the designer who altered the standard file, rather than the manufacturer who supplied it. Always maintain an unedited backup of the original vendor file for documentation and accountability purposes.

## Related Resources

-   [Understanding IES File Polar Candela Plots](https://www.illuminationpros.net/articles/understanding-ies-file-polar-candela-plots/)
-   [IES File Format Explained](https://www.illuminationpros.net/articles/ies-files-explained-what-they-are-and-how-lighting-designers-use-them/)
-   [Point-by-Point Method Photometrics](https://www.illuminationpros.net/articles/point-by-point-lighting-calculations-a-technical-designers-guide/)
-   [Photometric Software Comparison](https://www.illuminationpros.net/articles/photometric-software-compared-agi32-dialux-visual-and-web-based-tools/)
-   [Understanding Zonal Lumen Summaries](https://www.illuminationpros.net/articles/photometrics/understanding-zonal-lumen-summaries)

## Frequently Asked Questions

### What does TILT=NONE mean in an IES file?

TILT=NONE indicates that the luminaire’s luminous output does not change based on its physical tilt angle, meaning no additional tilt multiplier file is required for calculations.

### Why is the lumens per lamp set to -1 in my LED IES file?

A value of -1 for lumens per lamp indicates absolute photometry per ANSI/IES LM-79-19. It tells the software not to apply relative lumen scaling, as the candela values represent absolute output.

### Can I manually edit an IES file if my software won’t read it?

You can safely fix text headers and keyword syntax in a text editor. Never manually alter the numerical candela data, as doing so invalidates the certified photometric test.
