Skip to main content

H3D Spectrum Analysis Library

A Python library for loading radiation spectra (N42), performing background subtraction (1:1, channel-scaled, and area-scaled), applying smoothing filters, plotting results, and exporting data to Excel.

CLI Usage

Once installed, you can launch the graphical interface directly from any terminal:

h3d --gui
# or
h3d-tool --gui

You can also run batch processing from the command line:

# Normalize at channel 62, apply filter, plot, and save to Excel:
h3d -bg background.n42 -m measurement.n42 -c 62 --filter --plot -o results.xlsx


## Python API Usage

```python
from h3d import H3D, launch_gui

# 1. Launch GUI programmatically:
# launch_gui()

# 2. Process data in Python / Jupyter notebook:
processor = H3D("background.n42", "measurement.n42")

# Normalization options:
# processor.scaleChannel(62)        # Normalize at reference channel
processor.scaleArea()               # Normalize by total spectrum area
# processor.scaleAreaRange(70, 90)  # Normalize area within a channel window
# processor.removeBackground()      # Direct 1:1 subtraction without scaling

# smoothing Filter:
processor.applyFilter(window_length=9, polyorder=2)

# Plot:
processor.plot(xlim=(70, 90))

Requirements

  • Python >= 3.8
  • numpy
  • scipy
  • matplotlib
  • pandas
  • openpyxl
  • sandiaspecutils

Metadata

Release files for h3d-tool 1.0.3

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

Source distribution (sdist)

Source distribution for h3d-tool 1.0.3
File Size Uploaded
h3d_tool-1.0.3.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for h3d-tool 1.0.3
File Interpreter ABI Platform
h3d_tool-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / h3d_tool-1.0.3.tar.gz

Download URL h3d_tool-1.0.3.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eb34973a1db6afc7a82356b9a2e94b82637db99477c9d18c2bae80afd556a0b6
BLAKE2b-256 checksum
How to use checksums
38b99198c69d76153452ae54b64c52c4c0e2126b9ac6de652f9f5c40911b8dc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / h3d_tool-1.0.3-py3-none-any.whl

Download URL h3d_tool-1.0.3-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b6be75c29f32134a86e847746a68ab5446c68429f00a33b66be83abb87892b2
BLAKE2b-256 checksum
How to use checksums
2b0ab3685b790058f80c7e4541c4212ef19ad1eeef33369c687810589a055e82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

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