Skip to main content

hamsci-dsp

Signal-processing, geometry and timing code for HF radio science, shared by the programs of the HamSCI sigmond station suite. Each function here once lived as a copy inside several of those programs; this library keeps one tested version of each.

It provides a library only: no command line, no service, no daemon.

Install

pip install hamsci-dsp

The core needs only numpy and geographiclib. Heavier engines wait behind extras:

Extra Adds For
iono iri2020 (builds with gfortran) the IRI ionosphere model in hamsci_dsp.ionosphere
tomography scipy E/F-layer tomography in hamsci_dsp.ionosphere.tomography
pip install 'hamsci-dsp[iono,tomography]'

Ray tracing has no extra. hamsci_dsp.raytrace uses HamSCI's PyLAP and the PHaRLAP ray tracer when you have installed them yourself (PHaRLAP carries its own licence and download), and does nothing otherwise.

A first example

from hamsci_dsp.geometry import grid_to_latlon, great_circle_km, latlon_to_grid

tx = grid_to_latlon("EN50")        # (40.5, -89.0), the centre of the square
rx = grid_to_latlon("FN42hn")      # (42.5625, -71.375)
print(round(great_circle_km(*tx, *rx), 1))   # 1485.8
print(latlon_to_grid(*rx))                   # FN42hn

What it holds

Geometry, signals and propagation

Module Provides Needs
hamsci_dsp.constants C_M_S, K_TEC = 40.3, R_EARTH_KM, TECU stdlib
hamsci_dsp.geometry great-circle distance, bearing, midpoint and destination (geographiclib); reflection geometry (elevation, hops, height from path); Maidenhead grid to and from latitude and longitude geographiclib
hamsci_dsp.dsp peak SNR (Rayleigh and signed), robust noise floor, CoherentStack for slow-time range-Doppler, carrier to Doppler, FFT correlation numpy
hamsci_dsp.propagation path observables: carrier (phase to dTEC and its rate), oblique (virtual height, equivalent vertical frequency, MUF, obliquity), scintillation (S4 and σφ after ITU-R P.531) numpy
hamsci_dsp.chirp chirp-sounder waveform, screening and cleaning, shared by chirp-recorder and its tools numpy
hamsci_dsp.stability Allan deviation and related stability measures numpy

The ionosphere

Module Provides Needs
hamsci_dsp.ionosphere solar position and zenith angle (no dependencies); ionosphere_state, which uses IRI when installed and a parametric model otherwise numpy; iono for IRI
hamsci_dsp.ionosphere.ionex a reader for IGS Global Ionosphere Map (IONEX) files numpy
hamsci_dsp.ionosphere.space_weather near-real-time solar and geomagnetic indices; the caller supplies the download stdlib
hamsci_dsp.ionosphere.data_service WAM-IPE and GIRO ionosonde data, with a bundled GIRO station table numpy; requests, xarray if present
hamsci_dsp.ionosphere.tomography E- and F-layer TEC separated from many HF ray paths tomography
hamsci_dsp.raytrace RaytraceEngine, a wrapper for PyLAP and PHaRLAP that does nothing when they are absent PyLAP, PHaRLAP (yours)

Timing and the sigmond suite's shared formats

Module Provides Needs
hamsci_dsp.timing AuthorityReader and AuthoritySnapshot for hf-timestd's authority.json; acquire_anchor_utc, the one RTP-to-UTC anchor every recorder shares; the timing-authority report clients publish stdlib
hamsci_dsp.timing_map TimeMap, the runtime form of the suite's measurement model (schema v2) stdlib
hamsci_dsp.counter_map CounterMap, which maps one channel's RTP counter to the radio's input-sample index stdlib
hamsci_dsp.t6_anchor reads hf-timestd's T6 anchor file and projects input-sample indices to UTC nanoseconds, with the tie's measured error stdlib
hamsci_dsp.stations a fixed catalogue of HF time-signal stations stdlib
hamsci_dsp.io the schema-driven SQLite writer and reader behind hf-timestd's data store numpy
hamsci_dsp.sigmondb_rows the sigmondb chirp row (arrival and capture) that codar-sounder writes stdlib
hamsci_dsp.data_product_registry the suite's data-product schemas (L1 to L3), bundled with the package stdlib

Versions

Versions follow MAJOR.MINOR.PATCH. While the major number stays 0, a minor release may change an interface; each sigmond release pins the exact version it tested. The commit history lists every change.

Developing

git clone https://github.com/HamSCI/hamsci-dsp
cd hamsci-dsp
uv sync --extra dev
uv run pytest

A version tag (vX.Y.Z) publishes to PyPI through GitHub Actions, after the tests pass against the built wheel. Notes for the suite's own programs, which develop against a sibling checkout, sit in docs/CONSUMERS.md.

Licence and authors

MIT. Michael Hauan (AC0G), for HamSCI. Source: https://github.com/HamSCI/hamsci-dsp

Metadata

Release files for hamsci-dsp 0.10.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hamsci-dsp 0.10.1
File Size Uploaded Provenance Actions
hamsci_dsp-0.10.1.tar.gz 366.4 kB With provenance Details for hamsci_dsp-0.10.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hamsci-dsp 0.10.1
File Interpreter ABI Platform Actions
hamsci_dsp-0.10.1-py3-none-any.whl Python 3 none any Details for hamsci_dsp-0.10.1-py3-none-any.whl

Total release size: 674.0 kB

Release files / hamsci_dsp-0.10.1.tar.gz

Download URL hamsci_dsp-0.10.1.tar.gz
Size 366.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a352ab5f7573b2797a06e1b81a06226b8d64077def6b894424ade4e0c7015b3a
BLAKE2b-256 checksum
How to use checksums
fb4f23bfe5421eac7bb19c9aff6193c54efb85fcc555ec2954904509f9ae6490
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / hamsci_dsp-0.10.1-py3-none-any.whl

Download URL hamsci_dsp-0.10.1-py3-none-any.whl
Size 307.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e995a0425cf06521a2283556ce011348ad731589885bd0a6c0305ac7b95920f0
BLAKE2b-256 checksum
How to use checksums
5bf10020f59b5a4e5892058d008ad2fec4b393a9fd32d37b8494f9d6e3d40a63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for hamsci-dsp 0.10.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hamsci_dsp-0.10.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page