Source code for the publication Optical determination of snow density via sub-surface scattering

DOI

The repository contains the source code necessary to reproduce Figs. 2-5 of the publication: L. Mewes, H. Löwe, M. Schneebeli & B. Walter, Optical determination of snow density via sub-surface scattering, Commun Phys, doi: 10.1038/s42005-026-02490-1.

The data for Fig. 5 of the above mentioned publication is available at 10.16904/envidat.724.

Please refer to the README in this repository for additional information.

License: The scripts in this repository are licensed under the MIT License; see LICENSE.txt for the full text.

Files

generate_figures.py: Main script to generate the figures of the publication. snow_optics.py: Core radiative-transfer functions. snow_image.py: Utilities for loading and processing SnowImager (www.snowimager.ch) HDF5 data. helper.py: Miscellaneous helper functions. lambertw.py: Lambert W function implementation (John Burkardt, 2023, MIT license, ).

Third party resources
Identifier
DOI https://doi.org/10.16904/envidat.726
Metadata Access https://www.envidat.ch/api/action/package_show?id=5ef9984d-7fd8-4b95-87c4-f479b2e5ac13
Provenance
Creator Lars, Mewes, 0000-0001-9269-1475; Henning, Löwe, 0000-0001-7515-6809; Martin, Schneebeli, 0000-0003-2872-4409; Benjamin, Walter,
Publisher EnviDat
Publication Year 2026
Funding Reference Innosuisse, 58741.1 IP-ENG; Kanton Graunbünden,; Davos Instruments AG,
Rights other-undefined; Other (Specified in the description)
OpenAccess true
Contact envidat(at)wsl.ch
Representation
Language English
Resource Type Dataset
Version 1.0
Discipline Environmental Sciences
Spatial Coverage (9.847W, 46.813S, 9.847E, 46.813N); Switzerland
Temporal Coverage Begin 2025-03-01T00:00:00Z
Temporal Coverage End 2026-01-07T00:00:00Z