Converts SMP measurement files (*.pnt) into CSV containing all data points (Depth and Penetration Force) plus a multi-line header containing time, latitude, longitude and other site-specific information. A depth/force profile quicklook is also generated as a PNG file.
The SMP class methods retrieve_header, extract_data and general function xcorr are from the excellent SnowMicroPyn tool by Sascha Grimm. SnowMicroPyn is licensed under the GNU General Public License version 3.0 (GPLv3).
The detect_peaks and associated _plot helper functions are from the Biomechanics and Motor Control repo by Marcos Duarte. BMC is licensed under the MIT Licence
Assumes you have Python 2.7 installed with pip, numpy, scipy, pandas and matplotlib modules
Make a local clone of this repo, navigate to where it is located and run the following command to add the module to your current python environment:
pip install .
You should now be able to import the SMP class in a python interpreter or script using the following:
from snowmicrotoolset import SMP
-
Create two folders
indataandoutdatain the same directory assnowmicrotoolset/__init__.py -
Put the SMP measurement files (
*.pnt) into theindatafolder -
Run the snowmicrotoolset.py script from the same directory where
indataandoutdataare located.
From Windows command line:
python __init__.py
- All output CSV/PNG files will be sent to the
outdatafolder
This dataset is licensed under the Open Government License of Canada and is subject to the Copyright Act of Canada. Additional information can be found at the Government of Canada's Open Government portal