Metadata-Version: 2.4
Name: nibblergb
Version: 1.4.1
Summary: Vehicle speed measurements from OpenStreetMap road geometry and Sentinel-2 imagery
Keywords: sentinel-2,remote-sensing,openstreetmap,vehicle-speed,traffic,gis
Author: HeiGIT
License-Expression: AGPL-3.0-only
License-File: LICENSE.txt
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Dist: affine>=2.4.0
Requires-Dist: diskcache>=5.6.3
Requires-Dist: docstring-parser>=0.17.0
Requires-Dist: geoalchemy2>=0.20.0
Requires-Dist: geopandas>=1.1.4
Requires-Dist: jsonargparse==4.49.0
Requires-Dist: matplotlib>=3.10.8
Requires-Dist: numpy>=2.3.5
Requires-Dist: pandas>=2.3.3
Requires-Dist: psycopg[binary]>=3.3.5
Requires-Dist: pyarrow>=24.0.0
Requires-Dist: pygeoops>=0.6.0
Requires-Dist: pyogrio
Requires-Dist: pyproj>=3.7.2
Requires-Dist: pystac
Requires-Dist: pystac-client>=0.9.0
Requires-Dist: rasterio>=1.5.0
Requires-Dist: requests>=2.34.2
Requires-Dist: rioxarray>=0.22.0
Requires-Dist: scikit-image>=0.26.0
Requires-Dist: scipy
Requires-Dist: semver>=3.0.4
Requires-Dist: setuptools<82
Requires-Dist: shapely>=2.1.2
Requires-Dist: sqlalchemy>=2.0.52
Requires-Dist: stackstac>=0.5.1
Requires-Dist: tqdm>=4.68.3
Requires-Dist: pandas-stubs~=2.3.3 ; extra == 'dev'
Requires-Dist: pre-commit>=4.2.0 ; extra == 'dev'
Requires-Dist: pylint>=3.3.6 ; extra == 'dev'
Requires-Dist: pytest>=9.0.2 ; extra == 'dev'
Requires-Dist: pytest-asyncio>=1.3.0 ; extra == 'dev'
Requires-Dist: pytest-cov>=7.1.0 ; extra == 'dev'
Requires-Dist: pytest-env>=1.7.0 ; extra == 'dev'
Requires-Dist: pytest-mock>=3.15.0 ; extra == 'dev'
Requires-Dist: pytest-postgresql>=9.1.0 ; extra == 'dev'
Requires-Dist: pytest-timeout>=2.4.0 ; extra == 'dev'
Requires-Dist: pytest-xdist>=3.6.1 ; extra == 'dev'
Requires-Dist: ruff>=0.15.20 ; extra == 'dev'
Requires-Dist: scipy-stubs~=1.18.0 ; extra == 'dev'
Requires-Python: >=3.14
Project-URL: Repository, https://gitlab.heigit.org/traffic-flow-estimator/nibblergb
Provides-Extra: dev
Description-Content-Type: text/markdown

![](logo.png)

Vehicle speed measurements from OpenStreetMap road geometry and Sentinel-2
remote sensing imagery.

## Installation

Requires Python 3.14 or newer and uv.

```bash
git clone https://gitlab.heigit.org/traffic-flow-estimator/nibblergb.git
cd nibblergb
uv sync --extra dev
```

## Usage

> Before running the script be sure to generate an OHSOME_API_TOKEN which is needed during the interaction with the Ohsome API.
> Follow the instructions here https://account.heigit.org/.

```bash
export OHSOME_API_TOKEN=<your+token>

uv run python -m nibblergb.cli \
    --config config/default.yaml \
    --config config/ldz_single_static.yaml
```

The output is written as a GeoPackage with a `kinematics` layer (EPSG:4326)
containing per-trajectory speed, bearing, and acquisition metadata.

To see every available option, including the repository and analysis
parameters:

```bash
uv run python -m nibblergb.cli --help
```

## Test

To run pytest with coverage:
```bash
uv run pytest --cov-config .coveragerc --cov=nibblergb
```
