A distributed thermal model for calculating soil temperature profiles and depth of thaw in permafrost regions