Precise spectral and colorimetric simulations in commercial ray tracing software require realistic light source models, which provide spectral information as a function of angle and spatial dimension. We describe and validate a general workflow to create hyperspectral LED models as a linear combination of spectral models. The workflow only requires user defined precisions and rayfiles obtained with different optical filters. The rayfiles are transformed into histogram based models, whose precision is evaluated by normalized cross-correlation values of their intensity distributions in the near-, mid- and far field. Additionally, the concept is evaluated with a spatial and spectral well defined test device.