Skip to content

9V1KG/maidenhead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maidenhead Locator Functions

These scripts contains useful functions related to the maidenhead locator used in ham radio operations. (c) 9V1KG

Scripts

1. mhconv.py
2. locdist.py
3. maiden.py

1. mhconv.py

The script is the main program to convert between geographical position and/or the open location code (Google plus code) and the maidenhead locator (4 to 10 char).

2. locdist.py

This script calculates the distance and beam direction (azimuth) between two locator positions. Put your own locator in as a constant.

MY_LOC = "XXddxxddxx"

3. maiden.py

Module with class and functions for locator conversions.

latlon2maiden  latitude/longitude to locator
maiden2latlon  locator to latitude/longitude
dist_az        locator to distance/azimuth
dg2dms         latitude/longitude dec to deg,min,sec

Installation

Install with its own virtual environment

git clone https://github.com/9V1KG/maidenhead.git
cd maidenhead
# create and activate virtual environment
python3 -m venv venv
source venv/bin/activate
python setup.py install
# python setup.py install --user (Raspi)

Run conversion and distance calculation

# run locator conversion
python -m maidenhead
# run distance/azimuth calculation
python maidenhead/locdist.py

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages