Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

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.11.0

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

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for hamsci-dsp 0.11.0
File Size Uploaded Provenance Actions
hamsci_dsp-0.11.0.tar.gz 382.5 kB Without provenance Details for hamsci_dsp-0.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 701.3 kB

Release files / hamsci_dsp-0.11.0.tar.gz

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hamsci_dsp-0.11.0.tar.gz
Size 382.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b27275cb3bee29bc4cef279fcabdd10fd730809621b03c0adb6a9f0270344eee
BLAKE2b-256 checksum
How to use checksums
5e5a51b2797d839b02390fa27aa6c2a5a3e66d4966e21356224472e0d4d22f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

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

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hamsci_dsp-0.11.0-py3-none-any.whl
Size 318.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2b9a4cba2dcbf9bfd92d638031d2e3f86ce56a4c3c4c38f8ece4e9ca70f9d96
BLAKE2b-256 checksum
How to use checksums
d074c44f684afe5068ed56fe3e984cbe9435ba329558d810acc3d4057b1c4d4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for hamsci-dsp 0.11.0

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.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 0.10.1 2 files With provenance
  • Added 0.11.0 2 files Without provenance

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.11.0 This release

2 release files Loss of 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