Overview

What’s inside?

The snowmicropyn package contains two entities:

  • An API to automate reading, exporting and post processing pnt files using the Python language. You’ll need some basic programming skills to use it.
  • pyngui, a desktop application to read, export and post process pnt files. pyngui uses the API itself too.

How do I get it?

Installing snowmicropyn is a trivial task in case you’re experienced with Python:

pip install snowmicropyn

No clue what we’re talking about? You can find a more detailed description in section Installation!

snowmicropyn’s API

The following snippet is a simple example of how to read a pnt file, read some of its meta information and export its samples (measured distance & force) into a CSV file.

from snowmicropyn import Profile

p = Profile.load('S31M0067.pnt')

print(p.timestamp)  # Timestamp of recording
print(p.smp_serial)  # Serial number of SnowMicroPen used
print(p.coordinates)  # WGS 84 (latitude, longitude)

# Export samples into CSV format
# (By default, filename will be :file:`S31M0067_samples.csv)
p.export_samples()

You can find detailed information about the API in the API User’s Guide. For more information about the API’s elements, checkout the API Reference.

Launch pyngui

After installing snowmicropyn , open a Terminal Window and type pyngui and hit return to start the pyngui. Happy examining!

If you want to launch the pyngui manually, type:

python -m snowmicropyn.pyngui.app