Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cetk-0.0.4.dev0.tar.gz (142.3 kB view details)

Uploaded Source

Built Distribution

cetk-0.0.4.dev0-py3-none-any.whl (116.4 kB view details)

Uploaded Python 3

File details

Details for the file cetk-0.0.4.dev0.tar.gz.

File metadata

  • Download URL: cetk-0.0.4.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

Hashes for cetk-0.0.4.dev0.tar.gz
Algorithm Hash digest
SHA256 6bb67ea1c009bd9aae393da6f98136c3519184359547d9da87e4e3c6d8158c86
MD5 78c5a0ce45480c894be2caa88a91608a
BLAKE2b-256 cf4f4186ab61d128da93d6d8f0ec343844ccb3e8b128c07d03bb62cd0dc2c246

See more details on using hashes here.

File details

Details for the file cetk-0.0.4.dev0-py3-none-any.whl.

File metadata

  • Download URL: cetk-0.0.4.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

Hashes for cetk-0.0.4.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d60c9d4ce9a6d1c51aa74e487ddd681e8e77df487d5d60399050a377269a7a1
MD5 58f8cc48c9a0001bbe4d2c5c8a5f7ff0
BLAKE2b-256 f64693f2c4991d1661f845c00116c79cef2873e97f0cac7821cd6ba8c17f6f27

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page