# Exercise 3: years of snowfall needed to build 50 m of ice # Accumulation is measured in metres of water equivalent (w.e.) per year. RHO_ICE, RHO_WATER = 917, 1000 TARGET_ICE = 50 # metres of ice sites = {"high Alps": 1.5, # m w.e. per year (rough) "Scottish-style hill": 2.0, # a wet maritime climate (rough, imaginary) "Antarctic interior": 0.03} # very dry, a desert in all but temperature water_needed = TARGET_ICE * RHO_ICE / RHO_WATER # metres of water equivalent for name, acc in sites.items(): years = water_needed / acc print(f"{name:20s} {acc:5.2f} m w.e./yr -> {years:7.0f} years") # 50 m of ice is 45.9 m of water. A wet site makes it in decades; the Antarctic # interior needs over a thousand years. Dry cold places hold very old ice.