The kobavskytype function determines the CIE general standard sky type for a given luminance distribution of a Tregenza hemisphere as described by Kobav et al. in “Characterization of sky scanner measurements based on CIE and ISO standard CIE S 011/2003” .
[sky,RMS] = kobavskytype(L,sunaz,sunel,mode)
|Returns the best fitting CIE standard general sky as in CIE S 011, determined with Kobav et al. method.|
|Returns the Root Mean Square deviation from the best fitting CIE standard general sky. RMS from gradation and indicatrix determination is averaged.|
|Defines the Tregenza hemisphere luminance distribution.|
|Defines the sun azimuth angle \alpha_S.|
|Defines the sun elevation angle \gamma_S.|
|Defines the luminance determination mode of the reference data:|
’cie’ (default) returns the skytype according to the CIE table. Not all indicatrix and gradation goup combinations result in a skytype, the function will than return a NaN value.
’nearest’ returns the best fitting CIE skytpye.
Determine CIE skytype at \alpha_S = 166\degree and \gamma_S = 33\degree:
L = ciesky(12,166,33); [sky,RMS] = kobavskytype(L,166,33)
See also: ciesky
sky = 12 RMS = 0.019045