Overview¶
What’s inside?¶
The snowmicropyn package contains two entities:
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 find a more detailed description in section Installation!
snowmicropyn’s API¶
The following snippet is a simple example how to read a pnt file, read some of it’s 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 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