Skip to content

ajwheeler/Korg.jl

Repository files navigation

Documentation Tests codecov Aqua QA

Code papers (please cite these if you use Korg):

Tutorials:

Example

using Korg, PyPlot

wls, flux, continuum = synth(
    Teff=5000,
    logg=4.32,
    m_H=-1.1,
    C=-0.5,
    linelist=Korg.get_GALAH_DR3_linelist(),
    wavelengths=(5850, 5900)
)

# plot
figure(figsize=(12, 4))
plot(wls, flux, "k-")
xlabel(L"$\lambda$ [Å]")
ylabel(L"$F_\lambda/R_\mathrm{star}^2$ [erg s$^{-1}$ cm$^{-5}$]");

image

You can also call Korg from python

See the documentation for setup instructions.

from juliacall import Main as jl
jl.seval("using Korg"); Korg = jl.Korg

wls, flux, continuum = Korg.synth(
    Teff=5000,
    logg=4.32,
    m_H=-1.1,
    C=-0.5,
    linelist=Korg.get_GALAH_DR3_linelist(),
    wavelengths=(5850, 5900)
)