AIS Toolkit for high-resolution spatio-temporal datasets
Project description
AIStk — AIS Toolkit for Spatio‑Temporal Datasets
Minimal, fast toolkit for building high‑resolution AIS datasets from decoded CSV files.
Features
- Lazy loading of 365+ daily CSVs (Polars)
- Column selection, date & MMSI filtering
- Track metrics (distance, straight‑line, tortuosity, turn index, speed stats)
- Event detection (sharp turns, stops, AIS gaps, draft changes)
- Map plotting (Folium) and Parquet export
Install
pip install aistk
Quickstart
from aistk import AISDataset
ds = (AISDataset("data/ais/2024", pattern="AIS_2024_*.csv")
.with_columns(["MMSI","BaseDateTime","LAT","LON","SOG","COG","Draft"])
.between("2024-01-01","2024-12-31")
.filter(mmsi=338075892))
df = ds.collect()
stats = ds.stats() # Polars DataFrame with metrics per MMSI
events = ds.detect_events() # Detected events
ds.plot_map("track.html") # Save interactive map to HTML
CLI
aistk scan --root ./AIS/2024 --pattern "AIS_2024_*.csv" --from 2024-01-01 --to 2024-12-31 --mmsi 338075892 --cols MMSI,BaseDateTime,LAT,LON,SOG,COG,Draft --to-parquet out/ais.parquet --html out/track.html
Project layout
aistk/
aistk/ (library)
tests/
examples/
License
MIT © 2025 by Irmina Durlik
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
aistk-1.0.0.tar.gz
(30.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
aistk-1.0.0-py3-none-any.whl
(32.1 kB
view details)
File details
Details for the file aistk-1.0.0.tar.gz.
File metadata
- Download URL: aistk-1.0.0.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
016da2386386450ca2899ccb072bb2ffed33f12986e85b2ca257e5b24741d15a
|
|
| MD5 |
be6b6c1a155bebbfef258121bf82bdc1
|
|
| BLAKE2b-256 |
67862248f12fbf0fef712a8e8dc1c539422819bf7f8d290d31fd6061c3d54a71
|
File details
Details for the file aistk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aistk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4b30ce65e49d82e78332c27f722f2b2e73f5dccb154d5bb0a89b4319409bd5
|
|
| MD5 |
c4a3a734c298b0c13b72bbddb869e2c5
|
|
| BLAKE2b-256 |
dc5d3037c6b420848de7a18d652d7c6e4f041e84fb2082aa3ed43e3fd984af79
|