https://github.com/robintw/pymicrotops
Python code for reading and processing data from the Microtops sun photometer
https://github.com/robintw/pymicrotops
atmosphere instrument microtops-sun-photometer python science
Last synced: about 2 months ago
JSON representation
Python code for reading and processing data from the Microtops sun photometer
- Host: GitHub
- URL: https://github.com/robintw/pymicrotops
- Owner: robintw
- License: bsd-3-clause
- Created: 2014-10-13T17:17:18.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-02-05T20:08:32.000Z (over 5 years ago)
- Last Synced: 2025-08-23T08:02:28.125Z (about 2 months ago)
- Topics: atmosphere, instrument, microtops-sun-photometer, python, science
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyMicrotops
**Note: A new version of PyMicrotops has been released which is compatible with Python 3. This version is maintained by the NERC Field Spectroscopy Facility, and is available at https://github.com/NERC-FieldSpectroscopyFacility/PyMicrotops3. It has all the functionality of this version *except* the comment function. Please use this new version where possible.**
This is a Python module to simplify working with data from the Microtops sun photometer.
The functionality is split into two parts at the moment:
1) Processing Microtops data files (including interpolating AOT at other wavelengths)
2) Reading Microtops data from the instrument over a serial connection, and
saving/processing the data.PyMicrotops is available on PyPI, so install by running `pip install PyMicrotops`
The module is fairly well documented with docstrings, so a fairly quick example should be all that's needed:
```python
from PyMicrotops import Microtops
m = Microtops('microtopsfile.csv')
# Plot all of the AOT data
m.plot()
# Plot for a specific time period
m.plot('2014-07-10','2014-07-19')
# Get AOT at a specific wavelength - interpolating if needed
m.aot(550)
```You can also run the ``read_microtops`` command from the command-line which will read and save Microtops
data from a connected instrument. If no command-line parameters are given then it will use a simple command-line
user-interface, alternatively the port to use and the filename to save to can be given as arguments.