Light analysis and measurement