The magnetic and thermodynamical structure of a coronal hole