pub struct IesMetadata {Show 30 fields
pub version: String,
pub test_report: String,
pub test_lab: String,
pub issue_date: String,
pub manufacturer: String,
pub luminaire_catalog: String,
pub lamp_catalog: String,
pub ballast: String,
pub file_generation_type: String,
pub is_accredited: bool,
pub is_scaled: bool,
pub is_interpolated: bool,
pub is_simulation: bool,
pub luminous_shape: String,
pub luminous_width: f64,
pub luminous_length: f64,
pub luminous_height: f64,
pub is_rectangular: bool,
pub is_circular: bool,
pub photometric_type: String,
pub unit_type: String,
pub has_tilt_data: bool,
pub tilt_lamp_geometry: i32,
pub tilt_angle_count: usize,
pub maintenance_category: Option<i32>,
pub ballast_factor: f64,
pub input_watts: f64,
pub num_lamps: i32,
pub lumens_per_lamp: f64,
pub is_absolute_photometry: bool,
}Expand description
IES LM-63-19 specific metadata for GLDF integration.
Contains information from IES files that doesn’t map directly to GLDF
DescriptivePhotometry but is valuable for data provenance, validation,
and geometry definition.
Fields§
§version: StringIES file format version
test_report: StringTest report number ([TEST] keyword)
test_lab: StringPhotometric testing laboratory ([TESTLAB])
issue_date: StringDate manufacturer issued the file ([ISSUEDATE])
manufacturer: StringManufacturer of luminaire ([MANUFAC])
luminaire_catalog: StringLuminaire catalog number ([LUMCAT])
lamp_catalog: StringLamp catalog number ([LAMPCAT])
ballast: StringBallast description ([BALLAST])
file_generation_type: StringFile generation type (LM-63-19 Section 5.13)
is_accredited: boolWhether data is from an accredited test lab
is_scaled: boolWhether luminous flux values were scaled
is_interpolated: boolWhether angle values were interpolated
is_simulation: boolWhether data is from computer simulation
luminous_shape: StringLuminous opening shape (LM-63-19 Table 1)
luminous_width: f64Luminous opening width in meters (absolute value, negative in IES = curved)
luminous_length: f64Luminous opening length in meters
luminous_height: f64Luminous opening height in meters
is_rectangular: boolWhether the shape is rectangular (positive dims) or curved (negative dims)
is_circular: boolWhether the shape is circular (|width| == |length|, both negative)
photometric_type: StringPhotometric type (A/B/C)
unit_type: StringUnit type (Feet/Meters)
has_tilt_data: boolTILT information present
tilt_lamp_geometry: i32Lamp geometry (1-3) if TILT data present
tilt_angle_count: usizeNumber of TILT angle/factor pairs
maintenance_category: Option<i32>IES maintenance category (1-6)
ballast_factor: f64Ballast factor
input_watts: f64Input watts
num_lamps: i32Number of lamps
lumens_per_lamp: f64Lumens per lamp (-1 = absolute photometry)
is_absolute_photometry: boolIs this absolute photometry (lumens = -1)?
Implementations§
Source§impl IesMetadata
impl IesMetadata
Sourcepub fn from_ies_data(ies: &IesData) -> Self
pub fn from_ies_data(ies: &IesData) -> Self
Create IesMetadata from parsed IesData.
Sourcepub fn to_gldf_properties(&self) -> Vec<(&'static str, String)>
pub fn to_gldf_properties(&self) -> Vec<(&'static str, String)>
Export as key-value pairs for GLDF integration.
Trait Implementations§
Source§impl Clone for IesMetadata
impl Clone for IesMetadata
Source§fn clone(&self) -> IesMetadata
fn clone(&self) -> IesMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more