πBathymetric Data
Process AIS data with Bathymetric Data
Raster file preparation
import os
import aisdb
import nest_asyncio
from datetime import datetime
from aisdb.database.dbconn import SQLiteDBConn
from aisdb import DBConn, DBQuery, DomainFromPoints
nest_asyncio.apply()
# set the path to the data storage directory
bathymetry_data_dir = "./bathymetry_data/"
# check if the directory exists
if not os.path.exists(bathymetry_data_dir):
os.makedirs(bathymetry_data_dir)
# check if the directory is empty
if os.listdir(bathymetry_data_dir) == []:
# download the bathymetry data
bathy = aisdb.webdata.bathymetry.Gebco(data_dir=bathymetry_data_dir)
bathy.fetch_bathymetry_grid()
else:
print("Bathymetry data already exists.")Coloring the tracks
Integration with the bathymetric raster file

Last updated