agnpy focuses on the numerical computation of the photon spectra produced by particles radiative processes in jetted Active Galactic Nuclei (AGN).
Notation and basic formulas are borrowed from [DermerMenon2009] which constitutes the fundamental reference for this package. The implementation of synchrotron and synchrotron self Compton radiative processes relies on [DermerMenon2009] and [Finke2008]. [Dermer2009] and [Finke2016] are instead the main references for the external Compton and γγ absorption implementation.
The numerical operations are delegated to numpy arrays, all the physical quantities computed are casted as astropy Quantities.
The code is licensed under a BSD-3-Clause License (see LICENSE.md
in the main repository).
The code is available in the python package index and can be installed via pip
pip install agnpy
The code can also be installed with conda
conda install -c conda-forge agnpy
The only dependencies are:
- numpy managing the numerical computation;
- astropy managing physical units and astronomical distances;
- scipy for interpolation;
- matplotlib for visualisation and reproduction of the tutorials.
sherpa and gammapy are additionaly required to use agnpy for fitting, i.e. to use the wrappers in the agnpy.fit
module.
The documentation includes several tutorial jupyter notebooks providing examples of applications of the code functionalities.
spectra emission_regions synchrotron targets tutorials/dt_thermal_emission.ipynb tutorials/energy_densities.ipynb compton tutorials/synchrotron_self_compton.ipynb tutorials/external_compton.ipynb absorption tutorials/absorption_targets.ipynb spectral_constraints fit proton_synchrotron acknowledging bibliography agnpy