Skip to main content

adif_merge.py

Ham Radio ADIF Logbook format merge/resolution program written in Python

AGPL License GitHub issues PyPi Version PyPi Python Versions PyPi Downloads

Summary

This tool is designed to merge and resolve multiple ADIF files, including partial information from different reported sources (e.g. previous uploads to LoTW, QRZ, clublog, et al. Each of these sources tend to "augment" log entries with their own additional information.

The motivation for this is that GridTracker https://tagloomis.com/ and several logging programs are able to not only send log entries to remote services, but also automatically download ADIF files back from them. I found myself with a bunch of ADIF files, but none of them really gave me the whole picture of my QSOs. I also have both a home and portable station and sometimes I'd forget to move my logs between the two. This allows me to merge those logs at a later date (or reconstruct them from external servers).

The code will look at multiple log entries that occur with the same band, call, and mode within 90 seconds of each other and attempt to merge them, since some reporting tools or duplicate logging out of WSJT-X occasionally occurs (e.g. a manual log entry to correct a gridsqare, or different rounding of times on and off (to the nearest minute).

It tries to automate the decision making process for conflicts between log entries, and will tend to treat .adif files with "lotw" in their name as more authoritative for some fields.

For a complete look at the decision making process, read the code. It's commented, including caveats and is designed to be easily modifiable.

Use the -p <filename>.json option to generate problem QSO output in JSON format to see where there were conflicts and how we resolved them.

Installation

Developed under python 3 >= 3.6

    pip3 install adif_merge

Sample usage

Here's what I do to merge my WSJT and GridTracker managed logs::

adif_merge -o mergedlog.adif -c merged_wsjtx.log -p problems.json \
        ~/.local/share/WSJT-X/wsjtx_log.adi ~/Documents/GridTracker/*.adif

Please use the --problems option to look at merge issues that the program wasn't confident about resolving. For example QRZ and LoTW often differ about user-entered information like ITU and CQ zones.

The problems option will a .json file that is approximately human readable list of unresolved issues you may wish to fix--first organized by field, and again organized by QSO.

Feedback & Disclaimer

This code is learning and evolving. Please save copies of all of your log files before replacing them with this augmented file.

If you disagree with choices I've made in preference when attempting to merge, such as frequency harmonization or deferring to LoTW when there is a conflict for some fields, please let me know.

Copyright & License

Copyright (c) 2020 by Paul Traina, All rights reserved.

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.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Release files for adif-merge 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adif-merge 1.1.2
File Size Uploaded
adif_merge-1.1.2.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adif-merge 1.1.2
File Interpreter ABI Platform
adif_merge-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 32.7 kB

Release files / adif_merge-1.1.2.tar.gz

Download URL adif_merge-1.1.2.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d0799267bbfcfbcca6c63a1db7dc581fe4daa233bb76123ce1694136541b51b5
BLAKE2b-256 checksum
How to use checksums
5868f59e81a202353d37da0280ea787020c0e5c629582726f44b00f91b8aa71f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / adif_merge-1.1.2-py3-none-any.whl

Download URL adif_merge-1.1.2-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4569cb41462bf1fdd11d88189fa1efae672f7147331a6a3e258a8b9dd6cb5af
BLAKE2b-256 checksum
How to use checksums
5de3163e091e7a15b4a1320c180a54d5be094cbd78c4cade3e3014466d038cc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page