Skip to content

JetSeT a framework for self-consistent modeling and fitting of astrophysical relativistic jets

License

Notifications You must be signed in to change notification settings

renlliang3/jetset

 
 

Repository files navigation

Build Status

img

JetSeT is an open source C/Python framework to reproduce radiative and accelerative processes acting in relativistic jets,
allowing to fit the numerical models to observed data. The main features of this framework are:

  • handling observed data: re-binning, definition of data sets, bindings to astropy tables and quantities definition of complex numerical radiative scenarios: Synchrotron Self-Compton (SSC), external Compton (EC) and EC against the CMB

  • Constraining of the model in the pre-fitting stage, based on accurate and already published phenomenological trends. In particular, starting from phenomenological parameters, such as spectral indices, peak fluxes and frequencies, and spectral curvatures, that the code evaluates automatically, the pre-fitting algorithm is able to provide a good starting model,following the phenomenological trends that I have implemented. fitting of multiwavelength SEDs using
    both frequentist approach (iminuit) and bayesian MCMC sampling (emcee)

  • Self-consistent temporal evolution of the plasma under the effect of radiative and accelerative processes, both first
    order and second order (stochastic acceleration) processes.

Acknowledgements

If you use this code in any kind of scientific publication please cite the following papers:

Documentation

visit: https://jetset.readthedocs.io/en/latest/

Install JetSeT from Anaconda (suggested for OSX and Linux)

  • I suggest to use anaconda and python3 (https://www.anaconda.com/download/)

  • create a virtual environment (not necessary, but suggested):

    conda create --name jetset python=3.7 ipython jupyter

    conda activate jetset

  • install the code:

    conda install -c andreatramacere jetset

if conda fails with dependencies you can try

  • conda install -c andreatramacere -c astropy jetset

    OR

  • conda install -c andreatramacere -c conda-forge jetset

Install the JetSeT from source

Download the code

Installation from source using Anaconda

  • Install requirements, run on the command line:

    • conda install --file requirements.txt

    if conda fails with dependencies you can try

    • conda install -c astropy --file requirements.txt

      OR

    • conda install -c conda-forge --file requirements.txt

    if anaconda fails to install swig, you can try one of the following alternative methods

  • run on the command line:

    • python setup.py clean
    • python setup.py install

run all the examples outside of the installation dir

Installation from source using PIP

  • Install requirements, run on the command line: pip install -r requirements.txt

    if pip fails to install swig, you can try one of the following alternative methods

  • run on the command line:

    • python setup.py clean
    • python setup.py install

run all the examples outside of the installation dir

Requirements

The following python packages are required:

    python >=3.6 (python >=3.6 is suggested, older python 3 versions should  work, python 2 is not supported any more from version>=1.1.0)
    setuptools
    scipy
    numpy
    astropy
    matplotlib
    swig
    future
    iminuit
    corner
    six
    emcee
    pyyaml

A C compiler is also necessary, plus the SWIG wrapper generator.

All the dependencies are be installed following the Anaconda method OR the pip method, as described above.

jetset code repoistory

The code is hosted here:

Build documentation

requires:

About

JetSeT a framework for self-consistent modeling and fitting of astrophysical relativistic jets

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 51.0%
  • Python 49.0%