Skip to main content
Illumination Pros
Lighting Industry Solutions
Get a Bid Review

Troubleshooting Non-Standard IES File Angle Step Increments

Re-sampling rough angular test data sets to make them cleanly match the standard data formats used by commercial software.

Illumination Pros Editorial
8 min read

The accurate representation of a luminaire’s luminous intensity distribution hinges on the structural integrity of its photometric data file. The IES file format, explicitly standardized under ANSI/IES LM-63-19 (Standard File Format for the Electronic Transfer of Photometric Data and Related Information), is the ubiquitous foundation for transferring this data. A persistent challenge faced by lighting designers, photometric engineers, and software specifiers involves troubleshooting a non standard IES angle step. When laboratory testing outputs or customized optical simulations produce unrefined data, a photometric file parser crash can occur in commercial calculation programs such as AGi32, DIALux evo, and Visual Lighting Software. This guide details the methodology for re-sampling rough angular test data sets to make them cleanly match the standard data formats used by commercial software. By addressing angular non-compliance, engineers can avoid unpredictable interpolation anomalies.

The Standard Structure of IES LM-63-19 Angular Data

Before addressing non-standard anomalies, it is critical to understand the rigid framework imposed by ANSI/IES LM-63-19. An IES file is a structured ASCII text document containing metadata (such as manufacturer details, test report numbers, and luminaire dimensions) followed by the core photometric array. This array defines the candela values at specific intersections of vertical angles (elevation) and horizontal angles (azimuth).

Vertical Angle Steps

According to the standards, particularly those influenced by ANSI/IES LM-79-19 (Approved Method: Optical and Electrical Measurements of Solid-State Lighting Products), vertical angle increments must be sufficiently resolute to capture the highest rate of change in luminous intensity. For standard indoor or area luminaires, vertical angles are typically recorded from 0° (nadir) to 180° (zenith) at 2.5° or 5.0° increments.

However, for luminaires with highly focused distributions—such as narrow beam sports lighting fixtures or wall grazers—finer resolution is mandated. In these scenarios, vertical steps of 1.0° or even 0.5° are expected within the beam spread to adequately define the peak intensity and the cut-off gradient.

Horizontal Angle Steps

Horizontal (azimuthal) angle requirements depend on the symmetry of the luminaire:

  • Axially Symmetric: Requires only one horizontal angle (0°).
  • Quadrilaterally Symmetric: Requires horizontal angles from 0° to 90°.
  • Bilaterally Symmetric: Requires horizontal angles from 0° to 180°.
  • Asymmetric: Requires the full 360° sweep, typically measured in 22.5° or 45° increments, though 5° or 10° increments are common in highly asymmetric optical designs (such as Type II roadway distributions).

Identifying a Non Standard IES Angle Step

Non-standard angle steps occur when the intervals between tested angles are irregular, non-sequential, or utilize excessive decimal precision that software parsers are not programmed to handle.

Causes of Irregular Angular Data

  1. Custom Lens Curve Fixes in Simulation: Optical engineers utilizing simulation software (e.g., LightTools, TracePro) to model custom lens curves often generate raw ray-trace data. If this raw data is exported without a smoothing or resampling filter, the resulting angles may cluster around regions of interest (e.g., a tight 0.1° spacing near the peak) while leaving sparse gaps (e.g., 15° spacing) in the spill regions.
  2. Goniophotometer Calibration Errors: Older or improperly calibrated Type C goniophotometers may drift during a scan, resulting in horizontal or vertical angle logs that include arbitrary fractions (e.g., 5.03°, 10.07°) rather than clean integers.
  3. Manual Merging of Photometric Files: When engineers attempt to splice data from two different tests (e.g., testing the bare lamp vs. the luminaire housing) using mismatched step resolutions, the merged dataset violates the monotonic spacing requirements of the LM-63 standard.

Symptoms of a Photometric File Parser Crash

When a file containing non-standard angle step increments is imported into AGi32 or DIALux evo, several distinct errors can manifest:

  • Fatal Parse Error: The software completely rejects the file upon import, throwing an “Invalid Format” or “Unexpected Data Length” exception. This occurs when the declared number of vertical or horizontal angles in the header row does not precisely match the number of angles listed in the subsequent data arrays.
  • Interpolation Artifacts: If the file is accepted, the software’s internal interpolation engine (which typically utilizes cubic spline or linear interpolation between known data points) struggles with highly irregular gaps. This results in rendered light patterns that display harsh banding, localized hot spots, or mathematically impossible negative illuminance values on calculated planes.
  • Calculation Grid Failures: When executing a point-by-point calculation over a grid, the software may enter an infinite loop or crash unexpectedly when ray-tracing a vector that hits a massive gap in the angular data.

Re-Sampling Rough Angular Test Data Sets

The primary solution to a photometric file parser crash caused by irregular data is to re-sample the rough angular test data sets. Re-sampling involves mathematically interpolating the raw, non-standard candela values and mapping them onto a clean, standardized angular grid that commercial software can seamlessly digest.

The Mathematics of Photometric Re-Sampling

Re-sampling cannot be achieved by simply rounding the existing angles, as this would distort the total lumen output and shift the peak candela angle, fundamentally altering the custom lens curve fix. Instead, engineers must employ robust interpolation algorithms.

  1. Linear Interpolation: Suitable for regions with slow rates of intensity change (e.g., the wide spill of an ambient troffer). It assumes a straight-line relationship between two known data points.
  2. Cubic Spline Interpolation: The preferred method for high-performance optical re-sampling. Cubic splines fit a series of third-degree polynomials between data points, ensuring that both the first and second derivatives are continuous. This preserves the smooth, organic nature of the custom lens curve fix without introducing artificial sharp peaks or valleys.

Step-by-Step Methodology for Data Normalization

Step 1: Data Extraction and Validation

Extract the raw angular and candela arrays from the offending IES file. Identify the irregularities. Ensure that the raw data is monotonic (angles strictly increasing) and spans the necessary geometry (e.g., 0° to 180° vertically).

Step 2: Defining the Target Standard Grid

Establish the new, clean angular increments based on ANSI/IES LM-79-19 best practices.

Table 1: Recommended Standard Angle Steps for Re-sampling

Luminaire Distribution TypeRecommended Vertical StepsRecommended Horizontal StepsNotes
General Indoor (Lambertian)2.5° or 5.0°22.5° or 45.0°Sufficient for most ambient applications.
Area/Roadway (Asymmetric)2.5° (0.5° near peak)5.0° or 10.0°Higher resolution required near the main beam.
Narrow Beam/Sports Lighting0.5° or 1.0°5.0°Critical for accurate aiming and glare calculations.
Wall Grazer1.0°1.0°Requires high density to capture tight vertical cutoff.

Step 3: Executing Interpolation

Utilize numerical computing software (such as Python with the SciPy library, MATLAB, or specialized photometric editing tools like Photometrics Pro) to map the raw candela values onto the Target Standard Grid.

For example, if the raw vertical data jumps from 42.1° to 45.8°, and the target grid demands values at 42.5° and 45.0°, a cubic spline algorithm calculates the exact expected candela values at those precise target angles.

Step 4: Lumen Conservation Verification

Following interpolation, the total zonal lumens of the newly re-sampled file must be calculated and compared against the raw data. The re-sampling process must not alter the total lumen output by more than ±0.5%. If significant deviation occurs, the interpolation resolution must be increased (i.e., using finer standard steps) to better capture rapid intensity changes.

Step 5: Formatting the New IES File

Reconstruct the IES file. Update the header row that defines the number of vertical and horizontal angles to match the new grid. Ensure all candela data is organized in the exact sequential structure demanded by ANSI/IES LM-63-19.

Utilizing Python for Automated Re-Sampling

For lighting manufacturers and designers frequently dealing with raw ray-trace data, automating the re-sampling process via Python is highly efficient. The scipy.interpolate module provides the necessary functions to handle both 1D (axial symmetric) and 2D (asymmetric) data sets.

A standard workflow involves:

  1. Parsing the raw IES file to isolate the vertical angles, horizontal angles, and the 2D candela matrix.
  2. Defining numpy.arange arrays for the standardized clean angles (e.g., np.arange(0, 185, 5)).
  3. Applying scipy.interpolate.RectBivariateSpline to generate the new candela surface.
  4. Exporting the resultant data into a new, strictly compliant text file.

This programmatic approach ensures absolute consistency, eliminates human error in manual rounding, and guarantees that the resulting files will not trigger a photometric file parser crash in AGi32 or DIALux evo.

The Impact on Photometric Calculations

Attempting to force calculation software to accept non-standard IES angle step increments through brute-force manual text editing (such as deleting irregular data rows) is a dangerous practice. This approach mutilates the photometric web, leading to inaccurate point-by-point illuminance calculations, flawed uniformity ratios, and invalid energy compliance documentation (e.g., ASHRAE 90.1 or Title 24).

Proper re-sampling of rough angular test data sets ensures that the custom lens curve fix engineered into the physical product is accurately and faithfully represented in the digital simulation environment. It bridges the gap between raw, messy laboratory reality and the strict mathematical expectations of commercial lighting software, ensuring reliable, defensible design outputs.

Frequently Asked Questions

What causes a photometric file parser crash during IES import?

Parser crashes occur when declared angle counts in the header don’t match the data array, or when angle increments are highly irregular, causing interpolation failures.

Can I manually round a non standard IES angle step?

No. Manually rounding angles distorts total lumen output and shifts the peak intensity. You must use mathematical interpolation to re-sample the data properly.

What is the standard vertical angle increment for indoor lighting?

For standard indoor luminaires, ANSI/IES LM-79-19 best practices dictate vertical angle increments of 2.5° or 5.0° from nadir (0°) to zenith (180°).

How do I fix rough angular test data from custom lens simulations?

Extract the raw candela values and apply cubic spline interpolation to re-sample the data onto a clean, standardized grid (e.g., 2.5° steps) before saving.