Skip to content

yingyisong/turbopy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turbopy

Python interface to Turbospectrum.

Authors

  • Alex Ji (University of Chicago)

With major contributions from Jean Somalwar and Ivanna Escala

Installation

This only works with python 3 (needs format strings)

Python Dependencies

  • numpy
  • astropy

Turbospectrum

Usage

This is an example of how this should work once it's all going:

import turbopy

wmin, wmax, dwl = 6700, 6720, 0.1
ll = turbopy.TSLineList("vald-6700-6720.list")
atmo = turbopy.MARCSModel.load("sun.mod")

wave, norm, flux = turbopy.run_synth(wmin, wmax, dwl,
                                     [12.0, 0.4], [6.0, 0.5], [8.0, 0.5],
                                     atmosphere=atmo, vt=1.0,
                                     linelist=ll, outfname="sun-6700-6720.tar.gz")

Right now if you have a linelist and model atmosphere that you like, this will work (based on Jo Bovy's APOGEE code).

I am now making utilities to deal with linelists, model atmospheres, and such.

Citation and Acknowledgments

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 60.8%
  • Fortran 39.0%
  • Shell 0.2%