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 Zenodo entry.

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.0.tar.gz (111.8 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.0-py3-none-any.whl (92.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for smiet-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e248bf1dd9d7b34cc8790cfac699fd37525c9663c7ebe223020362dbb995f2eb
MD5 1cc942c77781b22dcd377fd74317f7c1
BLAKE2b-256 3e877c81d1004a7f4bb3c1940ca2da875b8b9160d06d7e496a7d72d93d89e680

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for smiet-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17e3b109f8c7c6640386aa43d8b6f3b5a991a402084fed70ef62acb729f56485
MD5 06dcf7963094305bfcc7dfd2f38d63f1
BLAKE2b-256 d56cbdaf0158682377825df28725ede30e7ee60da593cc231d6ca1ea8bcbee95

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