Energy survey of a historical building by infrared thermography