Modeling meteorological forcing of snowcover in forests