Melting occurs when the temperature is greater than -1 C. If elevation is less than 500 m, all snow will melt in one timestep. If elevation is greater than 500m, snowmelt will be divided over two timesteps.

snow_melt(snowpack, melt_month, T, z)

Arguments

snowpack

Snowpack (mm)

melt_month

Number of consecutive months in which melting conditions have been present

T

Average temp (C)

z

Elevation (m)

Value

Snowmelt (mm/month)