normldc

The normldc function normalizes a given luminous intensity distribution struct to cd/klm.

See also: readldt, writeldt

Usage:

ldc = normldc(ldc)

Where:

ParameterDescription
ldcIs the ldt struct containing EULUMDAT file information:
ldt.name  – gives the luminiare name information
ldt.header – contains the file header information
ldt.anglesC – contains the C angles
ldt.anglesG – contains the angles
ldt.I – contains the corresponding luminous intensities
Example

Read, adjust, normalize and plot a ldt file:

% Import Lambert ldt
ldc = readldt('lambert.ldt');
% Manipulate luminous intensity distribution
ldc.I = ldc.I.*cosd(ldc.anglesG);
ldc.name = 'luminaire';
% Normalize luminous intensity again
norm_ldc = normldc(ldc);

% Plot normalized ldc
plot2dldc(norm_ldc)

See also: readldt, plot2dldc

Result:


2 Responses

  1. Hello Rudawski,
    thank you so much for your contribution of this Toolbox.
    i used this function (Normldc)in matlab, i copy your code in matlab
    % Import Lambert ldt
    ldc = readldt(‘lambert.ldt’);
    % Adjust luminous intensity distribution
    ldc.I = ldc.I.*cosd(ldt.anglesG);
    ldc.name = ‘luminaire’;
    % Normalize luminous intensity
    norm_ldc = nomldc(ldc);

    % Plot normalized ldc
    plot2dldc(norm_ldc)

    but it shows “nable to resolve the name ‘ldt.anglesG’.”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.