Hi,

Before going any further, please take a look at this tool. It does not do everything you wish but not far, and there might be some nice feature. It's in Perl:

http://jaakko.web.cern.ch/jaakko/Soft/adifmerg.txt

adifmerg - convert, check and merge ADIF files

The input log file type is recognized from the '.adi', '.adif', '.csv'
or '.txt' suffix in the file name. If the file comes from standard input
with option '-f -', it is assumed to be ADIF file. The output is either
ADIF, csv or simple text.

Two ADIF files can be merged to one. In this case the output is sorted
in ascending time order if both of the input files are already sorted.
If the QSO calls are same in the two files and the times match within
minutes given by the switch -t, then the two ADIF records are merged to
one. Data in the records from the first file are not over written if the
second file has some same records filled with data. This kind of online
merging works only if the two QSO records have very close the same time
and there is no other QSO in between the two. It is a good idea to sort
the two files separately using switch -s before trying to merge them.

Cheers

R



Le 12.07.2011 00:52, Ing. Pavel Milanes Costa a écrit :

The past month I was looking in the internet for a tool that allow my to
do a merge of two or more adif logs but in a intelligent way:

1 - Can recognize duplicated entries (allowing to set arbitrarily a
deviation in time and freq, eg. +/- 1khz and 2 minutes ) to match
contacts in two logs...

There might even be some sort of generalization based on time: If the
same QSO appears at the same hours on different days, maybe the DATE
field could be dropped and the TIME_ON/TIME_OFF interval set to the
union of all intervals, the merge criteria being the CALL (if not
present, NAME), MODE and FREQ fields. NOTE fields would be concatenated.

Could be done with a new "Merge" command in the "Logbook" tab.

2 - Can get the differences from the two logs in process (the master and
the actual in process) and can enrich the fields in the master with ones
from the other log....

Same implementation: Maybe extra parameters to the merge process.


Unsuccessful task... then I manage to make my own tool:

adifimerge (ADIF Intelligent Merger) version 0.1b...

The soft is a script in php language (for use in command line with
php-client, sorry PHP is one of the few programming languages that I
known)

The software just make the 2 enunciated tasks before, from a folder with
a undetermined adif formated files (*.adif suffixes) the script
processes all and make a final unified log.

In fldigi, this could be implemented by allowing to merge an entire
directory.

An alternate implementation (although more complicated) would be to
select several records on the log viewer, and merge them on a clock. But
I prefer your approach.


The output are a unified log without duplicated QSO and enriched fields
from all logs processed in ADIF 2.2.7 format.

Then, questions:
1 - Have I reinvented the wheel?
2 - The software have a real demand/need in users?
3 - Where I can publish it to make it public available as GPL aka. FREE
SOFTWARE

If there is an interest, I could implement that in fldigi.


I hope to see feedback on this please...

Anyone that wish to unify many logs with duplicated entries or want to
polish an actual log, must feel free to contact me for a test... at the
end the script will get more polished from the use with diverse data...

While we are at it, I implemented a feature in the log viewer: A "Dial"
button which sets the frequency and the mode of the currenly selected
log record. This is actually very convenient. This allows indirectly to
move a log frequency in the frequencies list (Although the modem is not
present but can sometimes be inferred).




_______________________________________________
fldigi-alpha mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/fldigi-alpha

Reply via email to