Tools used for radio emission of air showers in the JAX framework
Project description
jax_radio_tools : A JAXified version of radiotools (in progress!)
Utility functions for radio emission of cosmic rays in the JAX framework. Based on radiotools.
Installation
The tool can easily be installed via pip:
pip install -U jax_radio_tools
which will also install the necessary packages for installation.
Dependencies
jaxjaxlibnumpy >=1.20typing_extensionspython>=3.11(May be possible with older python versions, but not yet tested)
Current implementations
Currently, the following tools are implemented:
Trace Utilities
These can be accessed via jax_radio_tools.trace_utils.
- zero padding
- bandpass filter
- hilbert envelope
- resampler
- trace centering
- relative trace centering
- signal window truncation
Shower Utilities
These can be accessed via jax_radio_tools.shower_utils.
- calculating arrival times
- calculating gaisser hillas functions (coreas formalism, LR formalism)
- calculating fluences
Atmosphere model
Following radiotools, an importable module to define the atmosphere.
These can be accessed via jax_radio_tools.atmosphere.Atmosphere.
Current features implemented are:
- calculation of distance from grammages
- calculation of cherenkov angle
- calculation of vertical heights
- calculation of density
- calculation of refractive index
- all atmospheric models from radiotools are supported
- additionally, GDAS atmospheric files are also now supported
Coordinate system
Following radiotools, we define a cstrafo object that takes care of coordinate systems. This is defined by a zenith angle, azimuthal angle, and magnetic field vector.
These can be accessed via jax_radio_tools.cstrafo.
More implementations to come!
TODOS
- include documentation
- include CI/CD pipeline
- implement other useful radiotools functions
LICENSE
This code is under the BSD-3 License. See LICENSE for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jax_radio_tools-0.1.0.tar.gz.
File metadata
- Download URL: jax_radio_tools-0.1.0.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7b9ded3dc90b75fbc113734c7339ff3a36ec4c2911851a0bdf7cc329297a84b
|
|
| MD5 |
d73ee7d5f51ac5cad05b97c608db994e
|
|
| BLAKE2b-256 |
634bf6bc873213e943a15bda5c7044a25b703a0ef03cb18c1a761b625101c0cd
|
File details
Details for the file jax_radio_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jax_radio_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab474cd330a37fc4f47b97afb71c5baee29cba7b1ee767c82f3dc3bba59400fe
|
|
| MD5 |
e65b3552e26a043e1dde71975c3e015a
|
|
| BLAKE2b-256 |
b3321aae13ae65f7cb298480ab3d27046165b2fa239868103f4e69c400c9c3cc
|