Skip to main content

Implementation of the template synthesis framework for cosmic-ray air showers

Project description

Welcome to the SMIET software

The SMIET (Synthesis Modelling In-air Emission using Templates) - pronounced as [smi:t], with a long "i" sound in the middle - implements the template synthesis algorithm. This framework is used to synthesise the radio emission from cosmic ray air showers using semi-analytical relations extracted from a set of Monte-Carlo showers. It is described in more detail in this publication.

This repository implements the operations necessary to perform the synthesis. We have two versions, one in plain Numpy and another one wrapped in JAX with higher performance. The latter is mostly meant to be used in the context of Information Field Theory.

Citing

If you use this software in a publication, please cite this publication and refer to this Zenodo entry for the code repository.

References

  • Paper describing the generalised template synthesis algorith on arXiv (submitted to Astroparticle physics)
  • Proof of concept publication in Astroparticle physics
  • Proceedings of ARENA22
  • Proceedings of ICRC23

Documentation

The online documentation can be found here.

Installation

The package is written in Python, so to use it, we recommended having a virtual environment to install it in. Since v0.5.0 the package is available on PyPI, so you can install simply by

pip install smiet

This will install the Numpy version of the package together with its dependencies. To get the JAX version, you can use the following command:

pip install smiet[jax]

This will install the necessary jax dependencies. To get more up-to-date versions of the project, you can clone the develop branch of this repository. From within the root of the local version of the repository, where the pyproject.toml file is located, you can install the package using pip as

pip install -e .

The "editable" flag is recommended, such that after pulling the repository again, you do not have to reinstall the package. To install the JAX version, you can use the optional jax keyword,

pip install -e .[jax]

There is also the optional tests keyword, which will install matplotlib, and dev, which installs the Sphinx packages necessary to build the documentation.

Dependencies

The lowest Python version with which we tested the package is Python 3.8. It might also work with Python 3.7, there are no big show stoppers in terms of packages.

These are the packages on which the Numpy version relies:

  • radiotools
  • Numpy
  • Scipy
  • h5py
  • typing-extensions

For the JAX version, the following packages will also be installed:

  • jax
  • jaxlib
  • jax-radio-tools

Usage

After installing the library, you can start by running the scripts in the demo folder to get acquainted with the template synthesis syntax. You can also refer to the documentation.

Support and development

In case of issues, please open an issue in this repository. You are also welcome to open merge requests in order to introduce changes. Any contributions are greatly appreciated!

For other inquiries, please contact mitja.desmet@vub.be or keito.watanabe@kit.edu.

Roadmap

Currently, the code contains all the classes necessary to load in sliced shower simulations and perform the template synthesis operations. These include normalisation of the amplitude spectra with respect to the geometry, as well as the arrival time shifts applied to the phase spectra. The next steps are now to:

  1. Add rigorous unit tests
  2. Improve the way in which showers and template information are stored
  3. Achieve parity between the Numpy and JAX versions

Authors and acknowledgment

We appreciate all who have contributed to the project.

  • Mitja Desmet, for the development of the template synthesis algorithm and the Numpy implementation
  • Keito Watanabe, for implementing the JAX version
  • Ruben Bekaert, for suggesting changes to the Numpy interface

License

This repository is licensed under the GPLv3.

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

smiet-0.5.1.tar.gz (108.5 kB view details)

Uploaded Source

Built Distribution

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

smiet-0.5.1-py3-none-any.whl (90.3 kB view details)

Uploaded Python 3

File details

Details for the file smiet-0.5.1.tar.gz.

File metadata

  • Download URL: smiet-0.5.1.tar.gz
  • Upload date:
  • Size: 108.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for smiet-0.5.1.tar.gz
Algorithm Hash digest
SHA256 7e08c4a05b4bd81ca3434f843469eaac2e8aa8abb620530f7102df5086da85e3
MD5 413dff77e84ef20075a930c06d633868
BLAKE2b-256 7267daebbe0afeda673f545dca0dc614e069c554d63314677f236cfeb4bcac3c

See more details on using hashes here.

File details

Details for the file smiet-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: smiet-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 90.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for smiet-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 636d7426b45e5a8f09705997143db64fad3d11f6a1e9c9ada678e84d2de028a7
MD5 56c14815bb5b491e3179774fca87abd7
BLAKE2b-256 6483c91f2bace376f83c4af6092f034661e6de4b0d07a12a1e77d92197399622

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