diff --git a/docs/fit.rst b/docs/fit.rst new file mode 100644 index 00000000..dbc40234 --- /dev/null +++ b/docs/fit.rst @@ -0,0 +1,17 @@ +.. _fit: + + +Use agnpy radiative processes to fit a MWL SED +============================================== +agnpy is a code for numerical modelling: routines for data handling and fitting are not only outside of its scope, but are currently already implemented in several python data-analysis packages. +Agnpy interfaceability with the astropy ecosystem allows it to be seamlessly interfaced with packages such as `sherpa` and `Gammapy`, containing these routines. +In this documentation we provide several tutorial notebooks illustrating how to build wrappers with these two data-analysis packages to perform a :math:`\chi^2` fit of a MWL SED. +We consider different science tools and different science cases (radiative processes). The interested user can find: + +* `a tutorial notebook wrapping agnpy with sherpa and fitting Mrk421 MWL SED `_; + +* `a tutorial notebook wrapping agnpy with Gammapy and fitting Mrk421 MWL SED `_; + +* `a tutorial notebook wrapping agnpy with sherpa and fitting PKS 1510-089 MWL SED `_; + +* `a tutorial notebook wrapping agnpy with Gammapy and fitting PKS 1510-089 MWL SED `_. \ No newline at end of file diff --git a/docs/index.rst b/docs/index.rst index 415b3396..1aaa2df7 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -18,7 +18,7 @@ The numerical operations are delegated to `numpy arrays `_, a License ------- -The code is licensed under `GNU General Public License v3.0 `_ (see `LICENSE.md` in the main directory). +The code is licensed under `BSD-3-Clause License `_ (see `LICENSE.md` in the main directory). Installation ------------ @@ -63,8 +63,11 @@ The documentation includes several tutorial jupyter notebooks providing examples tutorials/absorption_targets.ipynb derivations spectral_constraints + fit tutorials/ssc_sherpa_fit.ipynb + tutorials/ssc_gammapy_fit.ipynb tutorials/ec_dt_sherpa_fit.ipynb + tutorials/ec_dt_gammapy_fit.ipynb bibliography agnpy diff --git a/environment.yml b/environment.yml index 041b3c9f..8020c0b3 100644 --- a/environment.yml +++ b/environment.yml @@ -15,4 +15,5 @@ dependencies: - sherpa - pip: - agnpy + - gammapy