Provides the central interface for working with AIS data. Wraps file discovery, reading, filtering, and column selection into a unified dataset object/API.
from aisdataset.core import AISDataset
ds = AISDataset("data/ais/2024")\
.select_columns(["mmsi","timestamp","lat","lon","sog","cog"])\
.filter(time_range=("2024-01-01","2024-01-31"), mmsi=244660000)
df = ds.to_dataframe() # pass to stats/events/spatial
Classes
AISDataset — High-level lazy dataset wrapper for decoded AIS CSV files.
__init__(self, root, pattern=...)with_columns(self, cols)between(self, start, end)filter(self, mmsi=..., imo=..., callsign=...)_build(self)collect(self)write_parquet(self, path, partition=...)stats(self, level=...)detect_events(self, turn_deg=..., stop_sog=..., stop_min=..., draft_jump_m=...)plot_map(self, out_html, mmsi=...)
Functions_scan_many(path, pattern)_valid_geo()_ts_expr()schema.validate_columns().