<commit_before>pr2gpx
======

Converts Winlink position reports sent or received with Airmail into GPX tracks or waypoints.

pr2gpx scans a directory for files containing position reports in various formats. It can filter them to include only stations with a given callsign, and limit the results to the last N reports per station.

The output is either one track for each station, a list of waypoints for every position report, or both.

This can either be saved into a single file containing everything, or it can be split into one file for each station.


Installing
----------

First make sure you have Ruby >= 1.9 running.

Then install pr2gpx:

    gem install pr2gpx


Using
-----

Examples:

    pr2gpx --help

Displays information about the usage.


	pr2gpx --input c:\ProgramData\Airmail\Outbox

Writes all position reports in the outbox to STDOUT.


	pr2gpx --input c:\ProgramData\Airmail\Inbox --last 1 --callsign CALL1,CALL2,CALL3 --output C:\ProgramData\opencpn\layers\positions.gpx

Writes the most recent position report of CALL1, CALL2 and CALL3 into positions.gpx in C:\ProgramData\opencpn\layers.


	pr2gpx --input c:\ProgramData\Airmail\Inbox --last 10 --callsign CALL1,CALL2,CALL3 --output C:\ProgramData\opencpn\layers --split

Writes the 10 most recent position reports of CALL1, CALL2 and CALL3 into PR_CALL1.gpx, PR_CALL2.gpx and PR_CALL3.gpx in C:\ProgramData\opencpn\layers.


Developing
----------

Source: http://github.com/tischdla/pr2gpx


Copyright
---------

Copyright (c) 2012 <NAME>, licensed under the MIT License.<commit_msg>Updated README.<commit_after>pr2gpx
======

Converts Winlink position reports sent or received with Airmail into GPX tracks or waypoints.

It understands:
- sent position reports (Window->Winlink-2000->Position Report)
- reports requested for specific stations (Window->Winlink-2000->Position Request)
- lists of nearby stations (Window->Catalogs->WL2K->Global->WL2K_USERS->WL2K_NEARBY)

pr2gpx scans a directory for files containing position reports in various formats. It can filter them to include only stations with a given callsign, and limit the results to the last N reports per station.

The output is either one track for each station, a list of waypoints for every position report, or both.

This can either be saved into a single file containing everything, or it can be split into one file for each station.


Installing
----------

First make sure you have Ruby >= 1.9 running.

Then install pr2gpx:

    gem install pr2gpx


Using
-----

    pr2gpx --help

Displays information about the usage.


	pr2gpx --input c:\ProgramData\Airmail\Outbox

Writes all position reports in the outbox to STDOUT.


	pr2gpx --input c:\ProgramData\Airmail\Inbox --last 1 --callsign CALL1,CALL2,CALL3 --output C:\ProgramData\opencpn\layers\positions.gpx

Writes the most recent position report of CALL1, CALL2 and CALL3 into positions.gpx in C:\ProgramData\opencpn\layers.


	pr2gpx --input c:\ProgramData\Airmail\Inbox --last 10 --callsign CALL1,CALL2,CALL3 --output C:\ProgramData\opencpn\layers --split

Writes the 10 most recent position reports of CALL1, CALL2 and CALL3 into PR_CALL1.gpx, PR_CALL2.gpx and PR_CALL3.gpx in C:\ProgramData\opencpn\layers.


Developing
----------

Source: http://github.com/tischdla/pr2gpx


Run tests:

	rake test


Create gem package:

	rake package


Copyright
---------

Copyright (c) 2012 <NAME>, licensed under the MIT License.
{'fraction_non_alphanumeric': 0.08990075890251022, 'fraction_numerical': 0.023642732049036778, 'mean_word_length': 3.688098495212038, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '996780', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1014, 'n_words': 413}