Query and extract statistics from a PanDive
or DiveMate dive logbook. Both apps store the log as
a .ddb file, a plain SQLite database; this tool gives you a clean CLI
(pandive-cli, or the short alias pdive) and a small reusable Python library
on top of it, so you can slice your dive log without writing SQL by hand.
$ pdive list tank=24 period='last year'
Dives — query 'tank="24" period="last year"'
Number Divedate Place Depth Divetime Tanksize Watertemp
------ ---------- -------------------------------- ------ -------- -------- ---------
487 07-02-2025 Tossa. Perduts 29.9 m 104 min 24 L 13 °C
513 16-06-2025 Barcelona. Port del Forum 3.5 m 198 min 24 L 24 °C
514 17-06-2025 Tossa. Ruta clàsica dreta 20.4 m 69 min 24 L 22 °C
517 01-07-2025 Sant Feliu. Túnels de Port Salvi 27.9 m 96 min 24 L 19 °C
541 22-08-2025 Cova De Cala Sa Nau 9.2 m 118 min 24 L 27 °C
544 07-09-2025 Tarragona. SES. Dragonera 22.3 m 69 min 24 L 22 °C
549 20-09-2025 Tossa. Ruta larga 27.5 m 98 min 24 L 17 °C
7 dive(s)This project started as divemate-cli (command dmcli), a tool for DiveMate
logbooks. PanDive is a divelog app built
as a near drop-in replacement for DiveMate: it keeps the DiveMate .ddb schema
and adds its own Pandive* tables (structured tags, site tags, …). The tool is
now named after PanDive and reads those extensions, but plain DiveMate
logbooks remain fully supported.
- A small query language for filtering — AND/OR,
grouping, negation, numeric/date comparisons, plus
sort/limit— over any dive attribute (date, site, region, buddy, depth, dive time, SAC, tags, …). - Aggregate statistics (totals, averages, maxima) over any filtered set.
- Group and rank dives by site, country, region, buddy, computer, suit, week, …
- Terminal charts: a field over time, or dives per week/month/year.
- Machine-readable
--jsonoutput on every command, for scripts or a future UI. - Python 3.10+; runtime dependencies are
lark(the query parser) andplotext(the terminal charts). - Read-only access: the tool never writes to your logbook.
pip install -e .This adds the pandive-cli command and its short alias pdive. You can also
run it without installing:
python -m pandive.cli ...The tool needs the path to your .ddb file. In order of precedence:
--db PATHon the command line.- The
PANDIVE_DBenvironment variable (which you can set once in the config file). - Default:
PanDive.ddbin the current directory, orDiveMate.ddbif that is the only one there.
pdive --db ~/dives/PanDive.ddb stats year=2026
export PANDIVE_DB=~/dives/PanDive.ddb # then omit --dbEvery PANDIVE_* variable can also be given with its old DIVEMATE_* name
(DIVEMATE_DB, DIVEMATE_GDRIVE_KEY, …), so setups from the divemate-cli days
keep working; the PANDIVE_* name wins when both are set.
Instead of exporting variables every time, put them in a config file that the
pandive-cli / pdive wrapper loads automatically:
~/.config/pandive-cli/config
(Respects $XDG_CONFIG_HOME; override the whole path with $PANDIVE_CONFIG.
If that file doesn't exist, the old ~/.config/divemate-cli/config is read.)
Install the documented example and edit it:
make config # copies config.example, won't overwrite an existing one
$EDITOR ~/.config/pandive-cli/configIt is sourced as shell, so it is plain KEY="value" lines (you may use $HOME):
PANDIVE_DB="$HOME/dives/PanDive.ddb"
PANDIVE_GDRIVE_KEY="$HOME/.config/pandive-cli/service-account.json"
PANDIVE_GDRIVE_FOLDER="xxxxxxxxxxxxxxxxxxxxxxxxxxx"See config.example for every supported variable. A variable
already set in your environment overrides the file, so one-off overrides like
PANDIVE_DB=/tmp/other.ddb pdive list still work.
The config file is read by the wrapper script. When you run the CLI natively (
python -m pandive.cli), set the environment variables yourself.
Run pdive <command> --help for the full option list of any command.
| Command | What it does |
|---|---|
list |
List dives matching the filters (optional N-M number range) |
info |
Show every detail of one dive by its number |
count |
Count matching dives |
graph |
Plot a numeric field over time |
stats |
Aggregate statistics over matching dives |
group |
Count dives grouped by a column, ranked |
years |
Dive count per year |
tanks |
List the distinct tank sizes present in the database |
tags |
List #tags found in comments, with dive counts |
divers |
List diver profiles in the DB with their dive counts |
query-help (qhelp) |
Print a quick reference for the query language |
pull |
Download the logbook from Google Drive (see below) |
--json is a global flag — put it before the command:
pdive --json list year=2026.
All dive-attribute filtering is done with the query language,
accepted by list, count, stats, graph, group, years and tags — as
-q/--query EXPR or simply as bare trailing words. Besides it, only three
scope flags remain (they decide which dives the query even sees, so they
can't live inside the query):
| Flag | Meaning |
|---|---|
-q EXPR / --query EXPR |
Filter expression — see Query language |
--include-deleted |
Include dives DiveMate soft-deleted (Status=2) |
--diver ID |
Restrict to a given DiverID (default: the owner) |
--all-divers |
Include every diver profile, not just yours |
SAC (queried as sac, though it is strictly RMV — the popular name) is
computed per dive as gas used / (dive time × mean ATA), where gas used is
summed over the dive's tanks as (start − end pressure) × tank size and mean ATA
is avg depth / 10 + 1. It is in L/min, surface-equivalent. Only dives with a
usable tank pressure drop, a dive time and a recorded average depth get a value;
others show — and never match a sac comparison.
Dates display/parse as
DD-MM-YYYY, but--jsonoutput stays ISO. In the query use ISO dates (date>=2024-06-01) or theperiod=shortcut.
The query language expresses every dive-attribute filter — AND/OR, grouping,
negation, numeric and date comparisons — and (for list) sorting and limiting.
Use -q / --query with an expression, or just type it as bare trailing words.
pdive list '(region=Mallorca and place~toro) or region=Catalunya'
pdive count 'maxdepth>=10'
pdive list 'sac<18 or tank=15'
pdive group region --query 'night and divetime>50'
pdive list region~mallorca sort depth desc limit 10 # no quotes needed hereYou can also drop the --query and the quotes and just append the expression as
trailing words — they are joined into the query. These are equivalent:
pdive graph count tag=sidemount region=mallorca
pdive graph count 'tag=sidemount region=mallorca'
pdive graph count --query 'tag=sidemount and region=mallorca'If you pass both --query and trailing words, they are combined with AND. (On
list, a leading N-M dive-number range is taken first; the rest is the query.)
Multi-word values need no quotes at all: period=last year or region=costa brava work whether or not the shell groups them (period='last year' is also
fine). The following bare words are folded into the value — but only when that is
needed to parse, so an already-valid query like region~mallorca night (region
AND the night flag) is left alone. The shell still eats bare >, < and (
), so quote those ('depth>30', '(a or b)').
Grammar: boolean and / or / not (case-insensitive) with parentheses;
leaves are field op value comparisons (or a bare boolean field like night).
and is also implicit between adjacent terms — region~mallorca period=2025 is
the same as region~mallorca and period=2025.
Operators by field type:
| Field type | Operators | = means |
|---|---|---|
text (place, country, region, comment, tag, buddy, gas/mix, water) |
= ~ (contains), == (exact), != !~ (not contains), !== (not exact) |
contains (case-insensitive) |
number (depth/maxdepth, avgdepth, divetime/time, watertemp/temp, airtemp, o2, he, startbar, endbar, tanksize/tank, gasleft, gasused, sac/rmv, number, year) |
= == != !== < <= > >= |
equal |
date (date, ISO YYYY-MM-DD) |
= == != !== < <= > >= |
equal |
boolean (night, weekend) |
bare flag, or =true / =false |
— |
For text, = and ~ are synonyms (substring match); use == for an exact,
whole-value match — e.g. place=tossa matches any Tossa site, place=="Tossa de Mar" only that exact place. On numbers/dates = and == both mean equal.
Text matching is accent-insensitive as well as case-insensitive, so buddy~tomas
matches Tomás and Tomàs, and place~palamos matches Palamós.
tag=cave matches a #cave tag in the comments (give it without the #), the
same tags pdive tags lists.
period is a date-range shortcut, expanded before evaluation into a date
range — period="last year" becomes date>=2025-01-01 and date<=2025-12-31. It
accepts period=today, period=yesterday, period="this week" / "last week",
period="this month" / "last month", period="this year" / "last year",
period=2024, period="month 2024-07", period="last 30 days", … and supports
only = / != (!= meaning outside the range). Quote any value with spaces.
Values are barewords (region=Mallorca, accents are fine); quote anything with
spaces or punctuation: place="el toro". Multi-valued fields (buddy, tag,
tanksize, gas, o2, he, startbar, endbar) match when any of the
dive's values satisfies the comparison.
Tanks & gas. gas, o2, he, startbar and endbar have one value per
tank on the dive (stage and deco bottles included), so gas=EAN32 finds dives
where any tank carried EAN32 and endbar<50 dives where any tank surfaced under
50 bar. gas names the mix the usual way: Air, EAN32, O2, Tx21/35 (an
unset O₂ counts as air). Pressures that were not recorded (0) are left out.
Sorting by a multi-valued field uses its smallest value. A blank tank row (no
size, no pressures, no mix other than air) next to tanks that do carry data is a
leftover placeholder and is ignored. Tanks that only record a mix — what dive
computer imports write — are kept, since they hold the dive's gas.
gasleft and gasused are single numbers in litres, summed over the dive's
tanks: gasleft is end pressure × size (the gas you surfaced with), gasused
is (start − end) × size, the same figure SAC is built from. Adding up bars of
tanks of different sizes means nothing physically; litres compare fairly, so
sort gasleft desc ranks dives by the reserve you really came up with.
Aggregates fold a multi-valued field into one number, so you choose how a
dive with several tanks (or buddies) counts: sum( ), min( ), max( ),
avg( ) on number fields and count( ) on any multi-valued one. They work
wherever a field does — to filter, to sort, and as list columns:
pdive list 'buddy=ana sort sum(endbar) desc' --columns place,buddy,gas,endbar
pdive list 'count(gas)>1' --columns number,place,tanks,'sum(endbar)' # multi-tank dives
pdive list 'max(o2)>=50' # carried a rich deco gas
pdive list 'count(buddy)>=3' # dives with 3+ buddiesQuote the query (and the column list) so the shell leaves the parentheses
alone. sum(endbar) is literally the bars added up, which is meaningful for
twin tanks of the same size; to compare reserves across sizes use gasleft.
An aggregate over no values is missing (it sorts last), except count, which
is 0.
Matching is done in Python over the selected dives (the dataset is one
logbook), so the query is powerful without a SQL round-trip; unknown fields,
bad operators and syntax errors are reported clearly.
Sorting & limiting (used by list; ignored by the other commands): append
sort FIELD [asc|desc] and/or limit N to the query. FIELD is any query
field; default direction is desc; missing values sort last. A directives-only
query (no filter) is allowed, e.g. sort depth limit 5.
pdive list region~mallorca sort depth desc limit 10 # ten deepest in Mallorca
pdive list sort sac asc limit 5 # five most air-efficient
pdive list 'divetime>=60' sort divetime desc # longest dives firstsort, limit, asc, desc are reserved words (still usable as values after
an operator, e.g. place=sort).
Lists dives matching the query. A leading N-M token is still taken as a
dive-number range sugar (N, N-M, N-, -M); sorting/limiting and all
filtering go in the query. Results default to newest first (sort date desc).
--columns a,b,c chooses the displayed columns.
pdive list 100-130 # dives numbered 100 through 130
pdive list 500 # just dive 500
pdive list 700- # dive 700 to the latest
pdive list 'sac>=18' # air-hog dives (high SAC)
pdive list 'sac<=12' --columns Number,Place,SAC # your most efficient dives
pdive list year=2026 tank=24.0
pdive list sort depth desc limit 10 # ten deepest dives
pdive list sort divetime desc # longest dives first
pdive list sort sac asc limit 5 # five most air-efficient dives
pdive list tag=sidemount year=2026 # dives tagged #sidemount
pdive list 'comment~ejercicio' # free-text comment search
pdive tags # see every #tag you use
pdive list weekend night # night dives on weekends
pdive stats weekend=false night=false # weekday daytime dives
pdive list period="this month"
pdive stats period="year 2024"
pdive list 'date>=2025-06-01 and date<=2025-08-31' --columns Number,Divedate,Place,Depth
pdive list buddy=ana --columns number,date,place,buddy,gas,endbar
pdive list 'he>0 or gas=O2' --columns number,place,tanks # trimix / deco dives
pdive list buddy=ana sort gasleft desc --columns place,buddy,tanks,gasleftTank columns show one value per tank: gas (EAN30 + EAN32), o2, he,
startbar, endbar (100 / 25), and tanks, a one-line summary of each tank
(24L EAN30 200→100 + 11L EAN32 200→25); gasleft / gasused show litres. Any aggregate is a column too:
--columns 'place,sum(endbar),max(o2)'.
Shows every detail of a single dive — date, site, times, depths, temperatures, gear, each tank (size, gas mix, start→end pressure) and the comment — looked up by its dive number.
$ pdive info 262
262 - Begur. Furió Fitó
───────────────────────────
Date 15-08-2021
Entry time 09:30:00
───────────────────────────
Place Begur. Furió Fitó
Region Catalunya
Country Spain
Buddies Angel Caldo
───────────────────────────
Dive time 67.3 min
Max depth 52.5 m
Avg depth 20.4 m
Water temp 14 °C
───────────────────────────
Tank 1 24 L O₂ 21% 220→120 bar
Tank 2 11 L O₂ 50% 180→100 bar
SAC (RMV) 16 L/mininfo always draws the dive's depth profile below the details, with
temperature overlaid when the computer logged it: depth in blue on the left
axis (metres, surface at the top) and temperature in red on its own right axis
(°C), with a legend below. --json includes the raw samples under a profile
key.
$ pdive info 709
...
709 - Shark and Yolanda Reef
0┤▀▀▀▀▚▖ ▐▀├30
│ ▜▖ ▗▌ │
...
30┤ ▚▟▀▝█▄▌ ▝▟ ▐▟▜ ├24
└┬───────────────┬───────────────┬───────────────┬────────────┘
0 14 28 42 56
time (min)
▬ depth (m) [left] ▬ temp (°C) [right]Instead of a number you can pass last (the highest-numbered dive) or first,
e.g. pdive info last.
A dive number is only unique per diver; if several profiles share it, all are
shown — pass --diver ID (see pdive divers) to pick one.
$ pdive stats year=2026 tank=24.0
count 6
total_divetime_min 598.5
total_divetime_h 10
avg_divetime_min 99.8
max_depth_m 29.1
avg_depth_m 25
avg_watertemp_c 17.7Plots a numeric field across the matching dives in date order (x axis labelled
with dive dates, y axis the field). Accepts the same query as list.
Fields: depth (a.k.a. maxdepth), avgdepth, divetime, watertemp, sac.
Use the special field count to plot the number of dives per period
instead of a per-dive value: --by week, --by month (default) or --by year,
with empty periods shown as 0 (weeks are labelled by their ISO Monday). Combine
with any query — e.g. dives with a buddy over time. The x axis spans the first to
the last dive that matches (constrain it with a date/period query).
It is a coloured line chart (via plotext). --json prints the {date, number, value} points instead.
Dives missing the field (or with a 0 that means "no data") leave a gap.
pdive graph sac year=2024 # how your air consumption trends
pdive graph depth place~Tossa # max depth per dive at a site
pdive graph watertemp # water temperature over your whole log
pdive graph count buddy~Lushka # dives with a buddy, per month
pdive graph count --by week period=2025 # dives per week in 2025
pdive graph count --by year # dives per year across the whole logA filtered list collapsed into a count per field — "how many dives per site /
country / tank size / …". It accepts the same query as list, so you can
scope the breakdown any way you want.
Group by (case-insensitive): Place, Country, Buddy, Computer, Divesuit,
Water, Tanksize, Tanktype, Divemaster, Boat, Weather, Waves,
UWCurrent, Rating, Entry, Deco, Divetype, O2, Region, or the
virtual year, month, week (by ISO Monday), weekend (splits into
weekday / weekend) and night (splits into night / day, plus unknown
for dives with no entry time — same 18:00–06:00 rule as the night query field).
Options: --limit N (top N groups), --sort count|value (default count) —
these are group's own flags, distinct from the query's sort/limit.
list, group and stats print a header describing exactly what was queried,
e.g. Top 10 places by number of dives — query 'year=2026'. It's dimmed in a
terminal and omitted from --json output.
pdive group place --limit 10 # ten most-dived sites
pdive group country # dives per country
pdive group tanksize # dives per tank size
pdive group year --sort value # dives per year, chronological
pdive group month year=2026 tag=sidemount # sidemount per month in 2026
pdive group weekend # weekday vs weekend dives
pdive group night year=2026 # night vs day dives in 2026
pdive group buddy place~Tossa --limit 5 # top buddies at Tossa$ pdive years
year n
---- ---
...
2024 55
2025 142
2026 160$ pdive tanks
7 11 11.1 12 12.2 13.2 15 24pandive-cli ships a bash completion (for both pandive-cli and pdive) that
completes subcommands, their options and the value lists for group/graph. A
ready-made script lives at
completions/pandive-cli.bash.
Install it by sourcing it from your ~/.bashrc:
echo 'source /path/to/pandive-cli/completions/pandive-cli.bash' >> ~/.bashrc
# or drop it where bash-completion looks (one copy per command name):
cp completions/pandive-cli.bash ~/.local/share/bash-completion/completions/pandive-cli
ln -s pandive-cli ~/.local/share/bash-completion/completions/pdiveThe script is generated from the CLI's own argument parser, so it never drifts from the code. After adding commands or flags, regenerate it with:
make completion # writes completions/pandive-cli.bash
# equivalently:
pdive completion bash > completions/pandive-cli.bashOr let it happen automatically: make hooks enables the project git hooks
(.githooks), whose pre-commit regenerates and stages completions/pandive-cli.bash
whenever pandive/cli.py changes (it chains to any existing .git/hooks).
No local Python or dependency install needed — build an image once and drive it
through the pandive-cli wrapper (or its pdive symlink), which runs podman and auto-mounts your
logbook read-only.
# build the image and install the wrapper (+ pdive link) on your PATH in one step
make install
# or do it by hand:
podman build -t pandive-cli . # = make build
install -m 0755 pandive-cli ~/.local/bin/
ln -sf pandive-cli ~/.local/bin/pdive
# ...or just alias it
alias pdive='/path/to/pandive-cli/pandive-cli'Then use it exactly like the CLI, minus --db (the wrapper handles the mount):
# uses ./PanDive.ddb (or ./DiveMate.ddb) in the current directory
pdive list year=2026 tank=24.0
# or point at a logbook anywhere
PANDIVE_DB=~/dives/DiveMate.ddb pdive stats year=2026
pdive --db ~/dives/PanDive.ddb stats year=2026
# JSON out, piped like any command
pdive --json years | jqHow the wrapper finds the database (first that exists wins):
--db PATH— the wrapper mounts it for you$PANDIVE_DB— path to a.ddbfile./PanDive.ddbin the current directory./DiveMate.ddbin the current directory
The file is bind-mounted read-only with an SELinux relabel (:ro,Z), so it
works out of the box on Fedora/RHEL. The logbook is never copied into the
image (excluded via .containerignore). Override the image name with
PANDIVE_IMAGE if you tagged it differently.
The wrapper runs podman with --userns=keep-id, which maps your host user onto
the container process: it runs as your (non-root) uid and the bind-mounted DB
keeps the right owner. If you invoke the image directly instead of through the
wrapper, pass the same flag so you get a matching non-root user:
podman run --rm -i --userns=keep-id \
-v ~/dives/PanDive.ddb:/data/PanDive.ddb:ro,Z \
localhost/pandive-cli:latest list year=2026Without --userns=keep-id, rootless podman maps the container's root to your
host user — so it reports uid=0 inside, but on the host it is still your
unprivileged user (no real root, no privilege escalation). The image has no fixed
USER on purpose: a pinned uid would break the mounts whenever your host uid
differs from it. See the Containerfile comment for details.
The PanDive (or DiveMate) phone app uploads the .ddb to a Google Drive folder.
pdive pull downloads it so you always query the latest log.
Access uses a service account: you share only the target folder with its email, so its reach is limited to that one folder, and it authenticates with a key file — no browser prompt, ever. (Drive's OAuth scopes can't be narrowed to a single folder, which is why a service account is used instead.)
- In the Google Cloud Console: create (or pick) a project and enable the Google Drive API.
- Create a service account, then add a JSON key and download it.
- Copy the service account's email (looks like
name@project.iam.gserviceaccount.com). - In Google Drive, open the folder where the app uploads the log, Share it with that email as Viewer.
- Get the folder's ID — it's the last part of the folder URL
https://drive.google.com/drive/folders/<FOLDER_ID>.
Set these once in the config file (recommended), or export them:
export PANDIVE_GDRIVE_KEY=~/secrets/pandive-sa.json # the JSON key
export PANDIVE_GDRIVE_FOLDER=<FOLDER_ID>
export PANDIVE_DB=~/dives/PanDive.ddb # where to save it
pdive pull # downloads the logbook into PANDIVE_DB
pdive stats period="this year"Flags override the env vars: --key, --folder, --name, --out. Without
--name/PANDIVE_GDRIVE_FILE, pull looks for PanDive's upload,
PanDive-latest.ddb, and then for DiveMate's, DiveMate.ddb. For each name it
first tries <name>.gz (the log uploaded gzip-compressed) and decompresses it,
falling back to the plain <name>. Without --out/PANDIVE_DB it saves to
./PanDive.ddb.
The download is atomic (temp file then rename), so a half-finished transfer never
clobbers your existing log.
Running natively (not in the container) needs the extra dependency:
pip install -e '.[gdrive]'With the container wrapper, pdive pull mounts the DB directory
read-write and the key file read-only automatically.
The CLI is a thin wrapper over pandive.db, which is UI-agnostic: it does no
printing, returns plain dicts, and opens the database read-only. Reuse it from a
script, a notebook, or a web backend.
from pandive import LogBook, DiveFilter
with LogBook("PanDive.ddb") as db: # a DiveMate .ddb works too
f = DiveFilter(year=2026, tanksize=24.0)
dives = db.dives(f) # list[dict]
n = db.count(f) # int
s = db.stats(f) # dict of aggregates
top = db.group_count("Place", limit=10)
years = db.dives_per_year()
sizes = db.tank_sizes() # list[float]DiveFilter carries SQL-level criteria: year, date_from, date_to,
number_from, number_to, tanksize, place, country, region, buddy,
comment, the exclude_* lists, min_depth, max_depth, min_divetime,
min_sac, max_sac, water, weekend, night, and the scope fields
include_deleted / diver / all_divers. All optional; unset fields are
ignored (weekend/night are tri-state: True, False, or None).
For the CLI's full expression language, parse a query and pass its predicate:
from pandive import query
pred = query.predicate("region~mallorca and (depth>=30 or night)")
deep = db.dives(DiveFilter(), predicate=pred)db.dives() also takes order= (any returned column, default Divedate),
desc= (default False), and predicate= (a (record) -> bool post-filter,
also accepted by count/stats/group_count/dives_per_year/tags).
pandive/
__init__.py exports LogBook, DiveFilter
db.py library — data access, filtering, stats (no I/O)
dates.py date/period parsing helpers (pure)
env.py PANDIVE_* settings (DIVEMATE_* fallback), default DB path
cli.py argparse command-line frontend
pyproject.toml
A web frontend would import pandive.db directly; the dicts it returns are
already JSON-serialisable.
- Dates are stored as
YYYY-MM-DDtext; thedate/year/periodquery fields compare on that. Divetimeis in minutes, stored as a fractional number (e.g.80.0167).- A PanDive / DiveMate DB can hold several diver profiles (dive-computer
imports, demo data, buddies). Every command shows only your dives by
default — the profile with the most dives, treated as the owner. Run
pdive diversto see them all; use--diver IDor--all-diversto change the selection. - DiveMate soft-deletes dives: it keeps the row but sets
Status = 2and blanks the place/tank. These are excluded from every command by default; pass--include-deletedto count them too. - Some remaining dives still have an empty
Place(PlaceID = 0) — a gap in the source log, not a tool bug. They show as blank rows ingroup Place. - An empty temperature is stored as the sentinel
-300; the tool normalizes it to blank (and leaves it out of averages), matching what the app shows. - Buddies aren't stored on the dive row —
Logbook.BuddyIDsholds a CSV of IDs into theBuddytable. Thebuddyquery field andgroup buddyresolve those names for you. Since a dive can have several buddies,group buddytotals can exceed the dive count (each buddy on a dive is counted). Water:1= salt,0= fresh, following DiveMate's own convention.- The database is opened read-only; running this tool cannot modify your logbook.
## License
Copyright (C) 2026 Javi Polo
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version. See [LICENSE](LICENSE) for the full text.