Skip to main content

Amateur Radio ADIF compatible log file merge and resolution

Project description

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/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adif_merge-1.1.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

adif_merge-1.1.2-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file adif_merge-1.1.2.tar.gz.

File metadata

  • Download URL: adif_merge-1.1.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for adif_merge-1.1.2.tar.gz
Algorithm Hash digest
SHA256 d0799267bbfcfbcca6c63a1db7dc581fe4daa233bb76123ce1694136541b51b5
MD5 aec670f501b05fe39c7cf5f6343999c4
BLAKE2b-256 5868f59e81a202353d37da0280ea787020c0e5c629582726f44b00f91b8aa71f

See more details on using hashes here.

File details

Details for the file adif_merge-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: adif_merge-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for adif_merge-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4569cb41462bf1fdd11d88189fa1efae672f7147331a6a3e258a8b9dd6cb5af
MD5 31ea3a8acf37afe93160f3c1439d6161
BLAKE2b-256 5de3163e091e7a15b4a1320c180a54d5be094cbd78c4cade3e3014466d038cc5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page