Skip to content

astro-group-bristol/Reltrans.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reltrans.jl

Requires the AstroRegistry:

pkg> add Reltrans

Usage

using SpectralFitting, Reltrans

SpectralFitting.download_model_data(XS_ReltransDCP)
# [ Info: Model data for XS_ReltransDCP is already downloaded.

model = XS_ReltransDCP()
# ┌ XS_ReltransDCP
# │                  K -> 1       ± 0.1 ∈ [ 0, Inf ] FREE
# │                  h -> 6       ± 0.6 ∈ [ 0, Inf ] FREE
# │                  a -> 0.998   ± 0.1 ∈ [ 0, Inf ] FREE
# │                inc -> 30      ±   3 ∈ [ 0, Inf ] FREE
# │                rin -> -1                         FROZEN
# │               rout -> 1e+03                      FROZEN
# │               zcos -> 0                          FROZEN
# │              gamma -> 2                          FROZEN
# │              logxi -> 3                          FROZEN
# │                afe -> 1                          FROZEN
# │             lognep -> 15                         FROZEN
# │                kte -> 60                         FROZEN
# │                 nh -> 0                          FROZEN
# │              boost -> 1                          FROZEN
# │               mass -> 4.6e+07                    FROZEN
# │             flo_hz -> 0                          FROZEN
# │             fhi_hz -> 0                          FROZEN
# │              re_im -> 1                          FROZEN
# │              del_a -> 0                          FROZEN
# │             del_ab -> 0                          FROZEN
# │                  g -> 0                          FROZEN
# │ telescope_response -> 1                          FROZEN
#
energy = collect(logrange(0.1, 1e3, 1000))
flux = invokemodel(energy, model)

About

This is a Julia wrapper of reltrans, which exposes the model with a SpectralFitting.jl model interface.

For citation information, see Cititing reltrans.

The compiled binaries of reltrans for use in other projects are also available from LibXSPEC_Reltrans_jll.jl.

About

A Julia wrapper for the reltrans model of Ingram et al. (2019).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages