Improving the Physical Processes and Model Integration Functionality of an Energy Balance Model for Snow and Glacier Melt