Data tables and utilities to construct the database file for PriNCe
The PriNCe UHECR propagation code requires tabulated data for photon fields, photo-nuclear and photo-hadronic interactions. This collection of utilities, mainly the jupyter notebook construct_prince_database.ipynb
, will generate the database file in HDF5 format from various sources. To extend the database one can follow the implementation and extend the file with custom data.
A second database file is generated by make_particle_dict.py
These tools were developed and used mainly in Heinze et al., Astrophys.J. 873 (2019)
This is a light pure python code without specific requirements to the architecture.
Dependencies:
- PriNCe propagation code
- python-3.7 or later
- particletools
- numpy
- scipy
- pandas
- astropy
- six
- h5py
- jupyter notebook or jupyter lab
- Make sure the dependencies are installed
pip install -r requirements.txt
- Launch with jupyter notebook|lab
construct_prince_database.ipynb
. The notebook generates an HDF database file that can be copied to prince-dir/prince_cr/data folder. - To create a new nuclide/particle property database process the notebook
construct_particle_nuclide_database.ipynb
. Then copy the fileparticle_data.ppo
to prince-dir/prince_cr/data folder.
Some example/debugging notebooks used for cross-checking and visualizing data are located in the notebooks directory. Have a look.
If you are using this code in your work, please cite:
A new view on Auger data and cosmogenic neutrinos in light of different nuclear disintegration and air-shower models
J. Heinze, A. Fedynitch, D. Boncioli and W. Winter
Astrophys.J. 873 (2019) no.1, 88
- Jonas Heinze
- Anatoli Fedynitch
Licensed under BSD 3-Clause License, see (LICENSE)