CLAIRs Emission ToolKit cetk
Project description
Emission ToolKit cetk
Emission toolkit for command line to import, validate, edit and analyse emissions. Used in QGIS Plugin Eclair. This package is maintained by Eef van Dongen at SMHI.
Installation
python3 -m venv --prompt cetk .venv
. .venv/bin/activate
python -m pip install -r ./requirements.txt
python -m pip install -e .
Check that installation was successful and receive information on how to use the toolkit:
cetk -h
Before using the toolkit, initialize the template database by:
cetkmanage migrate
If you did not change the default path, this should create
~/.config/eclair/eclair.gpkg
New databases can now be created by copying the template database. This is easiest done using the cetk command:
cetk create /home/myuser/mydatabase.gpkg
To use a specific database, set environment variable "CETK_DATABASE_PATH".
export CETK_DATABASE_PATH="/home/myuser/mydatabase.gpkg"
For more verbose logging, set environment variable CETK_DEBUG=1:
export CETK_DEBUG=1
Contributing
Environment
Install pre-commit hooks:
. .venv/bin/activate
pip install -r requirements-dev.txt
pre-commit install
Testing
Run tests by
pytest
Update requirements
Install pip-tools:
pip install pip-tools
Update requirements.txt and requirements-dev.txt by:
./compilereqs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cetk-0.0.5.dev0.tar.gz
.
File metadata
- Download URL: cetk-0.0.5.dev0.tar.gz
- Upload date:
- Size: 142.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec19e041eb90b9da730764d84bffdecbf3b73c3056564faf70be25282e4718e6 |
|
MD5 | 03ec0b72e6618f0e2b7e6198c20ae67c |
|
BLAKE2b-256 | 3a135b0701d14a0e6e206330a5b3d2b1986a7812658fcad6ea1aae7bdc500315 |
File details
Details for the file cetk-0.0.5.dev0-py3-none-any.whl
.
File metadata
- Download URL: cetk-0.0.5.dev0-py3-none-any.whl
- Upload date:
- Size: 116.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4206e5170ac3a9a217ff436365b95e5d2c2fed03a4f42a0739d77f55e17b97d0 |
|
MD5 | ae464afd5d952314a1e64576cd8dc759 |
|
BLAKE2b-256 | dfb0f69c91832376595b50aced39781b52e094399b4ab4a99cef99a3be0f8731 |