slf-dot-ch / snowmicropyn

A python package to read, export and post process data (*.pnt files) recorded by SnowMicroPen, a snow penetration probe for scientific applications developed at SLF.
https://www.slf.ch/en/services-and-products/research-instruments/snowmicropen-r-smp4-version.html
GNU General Public License v3.0
10 stars 12 forks source link

Variable coefficients for v4 #11

Closed mjsandells closed 3 years ago

mjsandells commented 3 years ago

This has a new module, density_ssa.py that allows you to input different coefficients. It has Calonne et al. (2020) https://doi.org/10.5194/tc-14-1829-2020 and King et al (2020) https://doi.org/10.5194/tc-14-4323-2020 coefficients inbuilt for selection, but you can also input any others.

You can pass a single file to process in e.g. density_ssa.calc(testp0.samples, coeff_model='C2020')

or a list of files to take the median profile (Calonne method): density_ssa.calc(list_of_filenames, coeff_model='C2020')