| Name | cr-pulse-interpolator JSON |
| Version |
1.1.0
JSON |
| download |
| home_page | None |
| Summary | Full waveform interpolation for air shower simulations |
| upload_time | 2024-08-16 19:21:14 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.6 |
| license | None |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# cr-pulse-interpolator
Full electric-field waveform interpolation for air shower simulations
For elaborate information on the methods and their performance, see
Corstanje et al. (2023), JINST 18 P09005, arXiv **2306.13514**
Please cite this when using code and/or method in your analysis, publication etc.
## Contents
The package contains two interpolation submodules:
- **interpolation_fourier**: interpolates a 2D scalar function f(x, y) defined on a radial (polar) grid.
This includes for instance air shower radio energy fluence or amplitude along a radio footprint in the shower plane.
- **signal_interpolation_fourier**: interpolates full time traces (waveforms) of electric-field signals simulated by air shower simulation codes such as CoREAS, in antennas placed on a radial grid.
## Installation and Dependencies
This package can be installed with the following command:
```sh
pip install git+https://github.com/nu-radio/cr-pulse-interpolator
```
To automatically install the requirements for the demo scripts, one can instead use
```sh
pip install "cr_pulse_interpolator[demo] @ git+https://github.com/nu-radio/cr-pulse-interpolator"
```
## Usage
The interpolation modules have an interface very similar to e.g. Scipy's **interp1d** class.
Runnable demo scripts are:
- **demo_interpolation_fourier.py**: a demo of the interpolation_fourier method, plotting a radio energy footprint heatmap.
- **demo_signal_interpolation.py**: demonstrates full signal interpolation, doing cross-correlations with true simulated signals on "random" test positions.
- **minimal_usage_demo.py**: a smaller demo of full signal interpolation, aimed at getting the user started quickly.
The full signal interpolation demos require example data files to be downloaded:
run **download_demo_data.sh** before using the demo scripts.
The h5py package is required to read the demo data.
The example data files contain E-field traces from a CoREAS shower, converted to two "on-sky" polarizations.
They can be given as input in any order when creating the interpolator object.
This is the recommended usage in the interpolator.
NB. in the full pulse interpolator, the two polarizations should _not_ be aligned to vxB and vx(vxB), as the near-zero amplitudes along circles in the footprint lead to poor accuracy. In the interpolation for amplitude or fluence only, this is not an issue.
It is recommended to rotate the polarizations by 45 degrees when this happens (e.g. zenith showers, or close to north-south axis in general), and rotate back after interpolating.
Another recommendation is to test the accuracy of interpolation by simulating some 10 or 20 additional antennas placed at strategic positions 'in between' the radial-grid positions.
Raw data
{
"_id": null,
"home_page": null,
"name": "cr-pulse-interpolator",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Arthur Corstanje <a.corstanje@astro.ru.nl>",
"download_url": "https://files.pythonhosted.org/packages/73/3a/d8aa299cf1c1288e88ba835f1a22e99406c865bb9b02da109105a2c27d4e/cr_pulse_interpolator-1.1.0.tar.gz",
"platform": null,
"description": "# cr-pulse-interpolator\nFull electric-field waveform interpolation for air shower simulations\n\nFor elaborate information on the methods and their performance, see \nCorstanje et al. (2023), JINST 18 P09005, arXiv **2306.13514** \nPlease cite this when using code and/or method in your analysis, publication etc.\n\n## Contents\nThe package contains two interpolation submodules:\n- **interpolation_fourier**: interpolates a 2D scalar function f(x, y) defined on a radial (polar) grid.\n This includes for instance air shower radio energy fluence or amplitude along a radio footprint in the shower plane.\n- **signal_interpolation_fourier**: interpolates full time traces (waveforms) of electric-field signals simulated by air shower simulation codes such as CoREAS, in antennas placed on a radial grid.\n\n## Installation and Dependencies\nThis package can be installed with the following command: \n```sh\n pip install git+https://github.com/nu-radio/cr-pulse-interpolator\n```\nTo automatically install the requirements for the demo scripts, one can instead use \n```sh\n pip install \"cr_pulse_interpolator[demo] @ git+https://github.com/nu-radio/cr-pulse-interpolator\" \n```\n\n## Usage \nThe interpolation modules have an interface very similar to e.g. Scipy's **interp1d** class. \nRunnable demo scripts are:\n- **demo_interpolation_fourier.py**: a demo of the interpolation_fourier method, plotting a radio energy footprint heatmap.\n- **demo_signal_interpolation.py**: demonstrates full signal interpolation, doing cross-correlations with true simulated signals on \"random\" test positions.\n- **minimal_usage_demo.py**: a smaller demo of full signal interpolation, aimed at getting the user started quickly.\n\nThe full signal interpolation demos require example data files to be downloaded: \nrun **download_demo_data.sh** before using the demo scripts. \nThe h5py package is required to read the demo data.\n\nThe example data files contain E-field traces from a CoREAS shower, converted to two \"on-sky\" polarizations.\nThey can be given as input in any order when creating the interpolator object.\nThis is the recommended usage in the interpolator. \nNB. in the full pulse interpolator, the two polarizations should _not_ be aligned to vxB and vx(vxB), as the near-zero amplitudes along circles in the footprint lead to poor accuracy. In the interpolation for amplitude or fluence only, this is not an issue.\nIt is recommended to rotate the polarizations by 45 degrees when this happens (e.g. zenith showers, or close to north-south axis in general), and rotate back after interpolating.\n\nAnother recommendation is to test the accuracy of interpolation by simulating some 10 or 20 additional antennas placed at strategic positions 'in between' the radial-grid positions.\n",
"bugtrack_url": null,
"license": null,
"summary": "Full waveform interpolation for air shower simulations",
"version": "1.1.0",
"project_urls": {
"Homepage": "https://github.com/nu-radio/cr-pulse-interpolator",
"Issues": "https://github.com/nu-radio/cr-pulse-interpolator/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d4b3893d901af8bd79ccf81fbae7f87370a7d98452b781e76a3fc27d0a026ef2",
"md5": "e2178eda5a2bdfaf263b7f1b6308ec9a",
"sha256": "26f4e7f42fdd60e33d172ede52ebf69b7ad6bbcca984351d46e003b31faf867a"
},
"downloads": -1,
"filename": "cr_pulse_interpolator-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e2178eda5a2bdfaf263b7f1b6308ec9a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 26261,
"upload_time": "2024-08-16T19:21:13",
"upload_time_iso_8601": "2024-08-16T19:21:13.391220Z",
"url": "https://files.pythonhosted.org/packages/d4/b3/893d901af8bd79ccf81fbae7f87370a7d98452b781e76a3fc27d0a026ef2/cr_pulse_interpolator-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "733ad8aa299cf1c1288e88ba835f1a22e99406c865bb9b02da109105a2c27d4e",
"md5": "41218b565f72b7b061e314e9a01b5484",
"sha256": "f6653ba159a89655294eb4621c7b5624966d28ecc832b5d5cc2c7c8cfcf933c0"
},
"downloads": -1,
"filename": "cr_pulse_interpolator-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "41218b565f72b7b061e314e9a01b5484",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 26554,
"upload_time": "2024-08-16T19:21:14",
"upload_time_iso_8601": "2024-08-16T19:21:14.756162Z",
"url": "https://files.pythonhosted.org/packages/73/3a/d8aa299cf1c1288e88ba835f1a22e99406c865bb9b02da109105a2c27d4e/cr_pulse_interpolator-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-16 19:21:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nu-radio",
"github_project": "cr-pulse-interpolator",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "cr-pulse-interpolator"
}