Skip to main content

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

  • jax
  • jaxlib
  • numpy >=1.20
  • typing_extensions
  • python>=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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jax_radio_tools-0.1.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jax_radio_tools-0.1.0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

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

Hashes for jax_radio_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d7b9ded3dc90b75fbc113734c7339ff3a36ec4c2911851a0bdf7cc329297a84b
MD5 d73ee7d5f51ac5cad05b97c608db994e
BLAKE2b-256 634bf6bc873213e943a15bda5c7044a25b703a0ef03cb18c1a761b625101c0cd

See more details on using hashes here.

File details

Details for the file jax_radio_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jax_radio_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab474cd330a37fc4f47b97afb71c5baee29cba7b1ee767c82f3dc3bba59400fe
MD5 e65b3552e26a043e1dde71975c3e015a
BLAKE2b-256 b3321aae13ae65f7cb298480ab3d27046165b2fa239868103f4e69c400c9c3cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page