hamradio

package module
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 2 Imported by: 7

README

HAMRADIO Tools

This is a collection of libaries and tools I use to do HF QSOs as DL3NEY:

  • calculate distance and azimuth between locations (given as lat/lon or maidenhead locator): locator and latlon
  • find DXCC information about radio callsign prefixes: dxcc
  • retrieve information about a radio callsign from HamQTH.com and QRZ.com: callbook
  • use the callsign database from Super Check Partial: supercheck
  • talk to the cwdaemon to output CW on your transceiver: cw
  • more to come as I have time and need

The tools are written Go on Linux. They might also work on OSX or Windows, but I did not try that out.

Disclaimer

I develop these tools for myself and just for fun in my free time. If you find them useful, I'm happy to hear about that. If you have trouble using them, you have all the source code to fix the problem yourself (although pull requests are welcome).

License

This tool is published under the MIT License.

Copyright Florian Thienel

Documentation

Overview

Package hamradio provides the defintion of the most basic data types that are used in amateur radio.

Index

Constants

This section is empty.

Variables

View Source
var SUnits = []SUnit{S0, S1, S2, S3, S4, S5, S6, S7, S8, S9}

SUnits contains all S-units (S0 - S9).

Functions

This section is empty.

Types

type DB

type DB float64

DB represents decibel (dB).

func (DB) String

func (l DB) String() string

func (DB) ToSUnit

func (l DB) ToSUnit() (s int, unit SUnit, add DB)

ToSUnit converts this value in dB into the corresponding S-unit (S0 - S9).

type DBRange

type DBRange struct {
	From, To DB
}

DBRange represents a range of dB.

func (DBRange) Contains

func (r DBRange) Contains(value DB) bool

Contains indicates if the given value in dB is within this dB range.

func (DBRange) Normalized

func (r DBRange) Normalized() DBRange

Normalized returns a normalized version of this dB range, where From <= To.

func (DBRange) String

func (r DBRange) String() string

func (DBRange) Width

func (r DBRange) Width() DB

Width of this dB range.

type Frequency

type Frequency float64

Frequency represents a frequency in Hz.

func (Frequency) String

func (f Frequency) String() string

type FrequencyRange

type FrequencyRange struct {
	From, To Frequency
}

FrequencyRange represents a range of frequencies.

func (FrequencyRange) Center

func (r FrequencyRange) Center() Frequency

Center frequency of this range.

func (FrequencyRange) Contains

func (r FrequencyRange) Contains(f Frequency) bool

Contains indicates if the given frequency is within this frequency range.

func (FrequencyRange) Expanded

func (r FrequencyRange) Expanded(Δ Frequency) FrequencyRange

Expanded returns a new frequency range expanded by the given Δ.

func (*FrequencyRange) Shift

func (r *FrequencyRange) Shift(Δ Frequency)

Shift this frequency range by the given Δ.

func (FrequencyRange) String

func (r FrequencyRange) String() string

func (FrequencyRange) Width

func (r FrequencyRange) Width() Frequency

Width of this frequency range in Hz.

type SUnit

type SUnit DB

SUnit represents the upper bound of a S-unit in dBm.

const (
	S0 SUnit = -127
	S1 SUnit = -121
	S2 SUnit = -115
	S3 SUnit = -109
	S4 SUnit = -103
	S5 SUnit = -97
	S6 SUnit = -91
	S7 SUnit = -85
	S8 SUnit = -79
	S9 SUnit = -73
)

func (SUnit) String

func (u SUnit) String() string

Directories

Path Synopsis
Package bandplan provides a definition of the IARU bandplans (currently only region 1 for HF).
Package bandplan provides a definition of the IARU bandplans (currently only region 1 for HF).
Package callbook allows to retrieve information about a call from various online sources.
Package callbook allows to retrieve information about a call from various online sources.
Package callsign implements a representation and handling of callsigns.
Package callsign implements a representation and handling of callsigns.
Package cfg implements a library to access configuration data in a JSON file.
Package cfg implements a library to access configuration data in a JSON file.
cmd
callbook
callbook retrieves information about a given callsign from hamqth.com and qrz.com and prints this information.
callbook retrieves information about a given callsign from hamqth.com and qrz.com and prints this information.
cw
cw uses a cwdaemon server running locally on port 6789 to output CW.
cw uses a cwdaemon server running locally on port 6789 to output CW.
dxcc
dxcc prints information about a given DXCC prefix.
dxcc prints information about a given DXCC prefix.
latlon
latlon calculates the distance and azimuth between two coordinates given as pairs of latitude and longitude.
latlon calculates the distance and azimuth between two coordinates given as pairs of latitude and longitude.
locator
locator calculates latitude and longitude for a given maidenhead locator.
locator calculates latitude and longitude for a given maidenhead locator.
supercheck
supercheck uses the Super Check Partial callsign database from http://www.supercheckpartial.com/ to find callsigns that are similar to a given string.
supercheck uses the Super Check Partial callsign database from http://www.supercheckpartial.com/ to find callsigns that are similar to a given string.
Package cwclient provides a client library for the cwdaemon (https://github.com/acerion/cwdaemon) server application.
Package cwclient provides a client library for the cwdaemon (https://github.com/acerion/cwdaemon) server application.
Package dxcc provides information about DXCC prefixes which are stored in a cty.dat file.
Package dxcc provides information about DXCC prefixes which are stored in a cty.dat file.
Package latlon implements handling of geodetic coordinates as latitude and longitude.
Package latlon implements handling of geodetic coordinates as latitude and longitude.
Package locator implements the handling of maidenhead locators (https://en.wikipedia.org/wiki/Maidenhead_Locator_System)
Package locator implements the handling of maidenhead locators (https://en.wikipedia.org/wiki/Maidenhead_Locator_System)
Package scp provides access to the Super Check Partial (http://www.supercheckpartial.com) database stored in the SCP format.
Package scp provides access to the Super Check Partial (http://www.supercheckpartial.com) database stored in the SCP format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL