Ricker Wavelet Generator
Introduction
The Ricker wavelet (Mexican hat) is widely used in synthetic seismic simulation. While SciPy offers a basic generator, this package provides a shifted, causal Ricker wavelet with configurable peak location — ready for seismic modelling.
Project status: maintenance mode
ricker is feature-complete, and no new features are planned. It stays maintained so that it keeps installing and working. What to expect:
- Compatibility fixes ship as patch releases when a new Python or NumPy version breaks something. CI tests Python 3.10–3.14.
- Dependencies: ricker sets no upper version limits, so NumPy fixes
reach you through your own
piporuvupgrade, without a new ricker release. Dependabot keeps the CI and development tools current. - Bug reports and pull requests are welcome. Review may be slow, and new features are unlikely to be merged.
Up to 0.1.2 the length parameter was called len. It still works as a
deprecated alias for duration. See the changelog.
Installation
From PyPI
pip install ricker
From source (development)
git clone https://github.com/lijunzh/ricker.git
cd ricker
uv sync --all-extras --dev
Quick Start
import matplotlib.pyplot as plt
from ricker import ricker
wavelet = ricker(f=25, duration=0.2, dt=0.001, peak_loc=0.1)
plt.plot(wavelet)
plt.title("25 Hz Ricker Wavelet")
plt.show()
API
ricker(f=10, duration=0.5, dt=0.002, peak_loc=0.25)
| Parameter | Type | Default | Description |
|---|---|---|---|
f |
float | 10 | Centre frequency (Hz) |
duration |
float | 0.5 | Signal length (seconds) |
dt |
float | 0.002 | Sampling interval (seconds) |
peak_loc |
float | 0.25 | Peak location (seconds) |
Dependencies
Development
uv run ruff check src tests # lint
uv run ruff format src tests # format
uv run pytest # test
uv run pre-commit install # set up git hooks
Contact
For issues, please open a GitHub issue or contact gatechzhu@gmail.com.
Metadata
Release files for ricker 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ricker-0.2.0.tar.gz | 8.0 kB | Without provenance | Details for ricker-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ricker-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ricker-0.2.0-py3-none-any.whl |
Total release size: 13.2 kB
Release files / ricker-0.2.0.tar.gz
| Download URL | ricker-0.2.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd9b23531d66e672651b3024a43fb89bddf10d01fbe36c8cecce62ccc567d0ba
|
|
BLAKE2b-256 checksum How to use checksums |
8226ada6e45b8d787723a7a01c17f82e0ef8f4acde10acd67792a0652c66ac39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ricker-0.2.0-py3-none-any.whl
| Download URL | ricker-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0f225d8e61835302de271415d2ad29109a94827d50a811a1ff91fc6c2140b27
|
|
BLAKE2b-256 checksum How to use checksums |
1e502c45765ba0328c916b8def73ff9d98843fc7a651ee0179e870536f2feb1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for ricker 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.