semvec/pypi-packages huggingface dataset:
cetk 0.0.7.dev0
CLAIRs Emission ToolKit cetk
Requires Python: >=3.9

# 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.

[Eef van Dongen]: mailto:eef.vandongen@smhi.se

## Installation
```
python3 -m venv --prompt cetk .venv
. .venv/bin/activate
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 with
```
nox
```

### Update requirements

If any new development requirements are added to
[requirements-dev.in](requirements-dev.in), update
[requirements-dev.txt](requirements-dev.txt) by running

```
nox -s requirements
```
rastafari2 0.4.1.2
Rasterize vector features to grids
Requires Python: >=3.9

# Rastafari

Rasterize vector features. This library is built to rasterize emission sources in the CLAIR air quality modelling system. In contrast to most available libraries used to rasterize vector features, this library produces rasters with weights proportional to the fraction of each cell that is covered by a feature.


### Features:

* line rasterization using DDA algorithm, producing weights proportional to fraction of line intersected by each cell
* polygon rasterization using even-odd rule, producing weights proportional to fraction of polygon included in each cell 
* mass-consistent resampling of a raster using inverse nearest neighbour algorithm, allowing for different projections in source and target

See rastafari/tests for examples.

## Install

Use pip to install Rastafari:

```console
python -m pip install rastafari
```


## Development

To install Rastafari in a local venv for development, run:
```console
git clone https://gitlab.com/foclair/rastafari.git
cd rastafari
python -m venv .venv
. .venv/bin/activate
python -m pip install -U pip
python -m pip install cython wheel
RASTAFARI_USE_CYTHON=1 python -m pip install --no-build-isolation -e .[test]
```

Rastafari uses [pre-commit][].  Install it and run `pre-commit
install` to run its checks every time you commit.  Run the checks
manually with

```console
pre-commit run -a
```

[pytest][] is used as a test runner:

```console
pytest
```

Rastafari comes fully typed.  Use [mypy][] to check the type annotations:

```console
mypy .
```

All these tools will be run in CI in case you forget.

[mypy]: https://www.mypy-lang.org/
[pre-commit]: https://pre-commit.com/
[pytest]: https://pytest.org/
[pip-tools]: https://github.com/jazzband/pip-tools/


## Maintenance

This package is maintained by [FO Luft][] at SMHI.

[FO Luft]: mailto:foluftadmin@smhi.se
geotexxx 0.3.6
Verwerken van geotechnisch grondonderzoek
Requires Python: >=3.11

# gefxml_reader
Package om geotechnische sonderingen of boringen in GEF, BRO-XML, Dino XML, SON of SIKB0101-XML te lezen en visualiseren


## Dependecies
* matplotlib
* numpy
* pandas
* pyproj

## Instruction
Installeer de package:  
`pip install geotexxx` of `conda install conda-forge::geotexxx`  
Importeer de package:  
`from geotexxx.gefxml_reader import Cpt, Bore`  
Maak een leeg object:  
`test = Cpt()` of `test = Bore()`    
Lees een bestand:  
`test.load_gef(filename)` of `test.load_xml(filename)`  
Maak een plot in map ./output:  
`test.plot()`  

[gefxml_viewer](https://github.com/Amsterdam/gefxml_viewer.git) biedt een grafische interface om sonderingen en boringen incl. eenvoudige labproeven te plotten.

# Complexe proeven
Beschikbaar:
* korrelgrootteverdelingen: `figs = test.plot_korrelgrootte_verdelingen()`
* samendrukkingsproeven: `figs = test.plot_samendrukkingsproeven()`
* schuifsterkteproef: `figs = test.plot_schuifsterkteproef()`

# Interpret a CPT
Maak een lege CPT en een lege boring:  
`cpt = Cpt()` en `bore = Bore()`    
Lees een bestand:  
`cpt.load_gef(filename)` of `cpt.load_xml(filename)`
Doe de interpretatie:  
`cpt.interpret()`
Maak een boorstaat:  
`bore.from_cpt(cpt)`
Maak de figuur:  
`fig = bore.plot(save_fig=False)`

## Vragen of opmerkingen?
Stuur een bericht aan Thomas van der Linden, bijvoorbeeld via [LinkedIn](https://www.linkedin.com/in/tjmvanderlinden/)

## Resultaten?
Heb je mooie resultaten gemaakt met deze applicatie? We vinden het heel leuk als je ze deelt (en Thomas tagt)