Usage#
Configuration-File#
Create a <configuration.yaml>
file. You can use one of the samples provided for each instrument at the instrument page and customize it to you needs.
CLI#
pyAtmosLogger -m log -p <configuration.yaml>
pyAtmosLogger -m convert -p <configuration.yaml>
Python#
[1]:
import import pyAtmosLogger.instruments.pyAtmosLogger_dummy_1 as instrumentClass
import yaml
[2]:
yamlString = """
instrument:
instrumentFile: pyAtmosLogger_dummy_1.py
samplingInterval: 60
attributes:
title: "Test"
storage:
csvStoragePath: "~/Desktop/dummy_data/csv/"
DatePath: "%Y/%m/"
csvFileName: "%Y%m%d_tower_random.csv"
ncStoragePath: "~/Desktop/dummy_data/nc/"
ncConversionDays: 1
"""
config = yaml.safe_load(yamlString)
[3]:
instrument = instrumentClass.pyAtmosLogger_dummy_1(config)
[3]:
2023-07-06 15:33:17: setup completed
[4]:
instrument.log()
[4]:
2023-07-06 15:35:11: logging started
2023-07-06 15:35:11: header created
[5]:
instrument.convertMultipleFiles()
[5]:
2023-07-06 13:31:25: converter started
2023-07-06 13:31:25: converting file: ~/Desktop/dummy_data/csv/2023/07/20230706_tower_random.csv
2023-07-06 13:31:25: converter finished