Some calculations for snowpack plotly figure