Turbospectrum package v19.1 (March 15, 2019) by B. Plez
With the help and patience of many colleagues, cf Readme in source-v19.1 directory.

This package contains the Turbospectrum code 
(Plez, B., 2012, ASCL 1205.004, and Alvarez, R. & Plez, B., 1998, A&A 330, 1109)

The current version is v19.1. 
There is a Readme file in the DOC directory that details changes made in successive versions.
There is unfortunately no user manual yet, but I have included commented scripts in DOC/

==================================================
To compile, use the Makefile in the exec-v19.1 directory, for the ifort compiler,
or in the exec-gf-v19.1 for gfortran.
Note that you can change the spectrum.inc parameter file according to your needs.
A number of versions already exist in the source directory, but feel free to modify it.

It is possible to use other fortran compiler by modifying the compiler options. 
One important option to include is one that saves the content of variables between 
successive calls to a subroutine. The -convert big_endian option is only if you use
the binary formatted MARCS models.

==================================================
The structure of the directory is the following:

README_getstarted		! This file

DOC: 				! Some documentation
Readme				! record of code modification. Highly recommended reading in the absence of a user manual
script-sun-findabu_comments	! a commented script
script-5000-intens_comments     ! a couple more
script-sun-flux_comments

exec-gf-v19.1:			! executable for gnu fortran
Makefile

exec-v19.1: 			! executable for intel fortran
Makefile

Utilities:			! a couple of useful programs
parameter.inc
lambda.par
tapet-v2.f			! reads a binary formatted MARCS model (ususally not distributed that way)
vald3line-BPz-freeformat.f	! converts the present VALD3 long-format outputs to the line list format of Turbospectrum
faltbon.f90			! convolution of spectra by various profiles: gaussian, expoential, radial-tangential, rotation.

COM-v19.1:			! directory from which to run the code
models				! a couple of models in there
linelists			! a couple of linelists in there
syntspec			! directory for output spectra and results
contopac			! directory for continuous opacity files generated by babsma.f, and then used by bsyn.f or eqwidt.f
script-sun-eqw.com		! a collection of 5 demo scripts that run the code to compute a portion of a flux spectrum, intensities at 2 angles, equivalent widths, and determine abundances from observed eqw.
script-sun-findabu.com
script-sun-flux.com
script-sun-intens.com
script-5000-intens.com
logeqw-benchmark 		! the 5 output log generated by the 4 runs
logfindabu-benchmark
logflux-benchmark
logintensity-benchmark
logintens-5000.benchmark
sphlimb				! directory where some useless output may still end up

COM-v19.1/contopac:
5777g4.44z+0.00a+0.00t01-ref107857opac-benchmark  						! the continuous opacity file generated by babsma.f
5777g4.44z+0.00a+0.00t01-ref107857opac.mod							! often empty, but output may end up in there
s5000_g+2.0_m1.0_t02_st_z+0.00_a+0.00_c+0.00_n+0.00_o+0.00_r+0.00_s+0.00.modopac-benchmark	! same for a spherical model
s5000_g+2.0_m1.0_t02_st_z+0.00_a+0.00_c+0.00_n+0.00_o+0.00_r+0.00_s+0.00.modopac.mod


COM-v19.1/linelists:
BertrandPlez.002060									! output from VALD
BertrandPlez.002060.bib
vald-6700-6720.list									! line list generated from VALD output using an older version of vald3line.f
vald_eqw.list										! a line list with observed eqw inserted

COM-v19.1/models:
5777g4.44z+0.00a+0.00t01-ref107857							! reference MARCS solar model
6750g4.04z0.00t2.0									! a slightly hotter MARCS model
s5000_g+2.0_m1.0_t02_st_z+0.00_a+0.00_c+0.00_n+0.00_o+0.00_r+0.00_s+0.00.mod		! a spherical MARCS model
kurucz-sun.mod										! ATLAS solar model
4513g+1.029z-3.61.interpol								! spherical model interpolated from the MARCs grid
BF123-cell+071+071_0001_T4logP.mod							! a column extracted from a CO5BOLD star-in-a-box model

COM-v19.1/syntspec:
5777g4.44z+0.00a+0.00t01-ref107857_6700-6720_xit1.0.eqw-benchmark			! calculated eqw (script-sun-eqw.com)
5777g4.44z+0.00a+0.00t01-ref107857_6700-6720_xit1.0.findabu-benchmark			! calculated abundances (script-sun-findabu.com)
5777g4.44z+0.00a+0.00t01-ref107857_6700-6720_xit1.0.spec-benchmark			! calculated flux spectrum (script-sun-flux.com)
5777g4.44z+0.00a+0.00t01-ref107857_6700-6720_xit1.0_mu0.3.intensity-benchmark		! calculated flux + intensity @ mu=1.0 spectrum (script-sun-intens.com) columns are: lambda, relative and absolute flux, intensity and relative intensity at specified mu
5777g4.44z+0.00a+0.00t01-ref107857_6700-6720_xit1.0_mu1.0.intensity-benchmark		! same @ mu=0.3
s5000_g+2.0_m1.0_t02_st_z+0.00_a+0.00_c+0.00_n+0.00_o+0.00_r+0.00_s+0.00.mod_6700-6720_xit2.0.intensity-benchmark	! intensities for a spherical modelscolumns are: lambda, relative Flux, abs. flux, and then for each mu=1.0, 0.9, ...0.1: intensity and relative intensity

DATA:				! data needed to run the code. You need to link this directory to the place where you run the code from (usually COM-v19.1)
Anstee-1802-2014.dat
CIA.H-He.dat
CIA.H2-H.dat
CIA.H2-H2.Yi.dat
CIA.H2-He.dat
E161
Hlinedata
IRWIN_atoms_v07.3.dat
IRWIN_molecules_v15.1.dat
LISTE_molecules_all_v12.1.dat
atomicweights.dat
bpo_self.grid.DEC
bpo_self.grid.SUN
chcont.dat
energy-levels-BarberH2O.txt
h2olevels.morbid
h2omolk.dat
jonabs_vac_v07.3.dat
ohcont.dat
stehle.dat.DEC
stehle.dat.SUN
tableU2.dat
tableU3.dat
vcsbalmer.dat

source-v19.1:			! source
CIAh2h.f
CIAh2h2.f
CIAh2he.f
CIAhhe.f
Iplus_calc.f
absko.f
anstee.f
babsma.f
bpl.f
bsyn.f
bsynb.f
bsynbplatt.f
clock-gf.f
clock.f
cubint_module.f90
depth.f
detabs.f
die_pe_lu.f
eqmol_pe_lu.f
eqwidt.f
eqwidtb.f
eqwidtbplatt.f
extract_multi.f
funcv.f
gausi.f
getinfospecies.f
getisotopmass.f
getlele.f
h2borysowopac.f
h2opac.f
h2opartf.f
h2opartf2001.f
hbop.f
heborysowopac.f
heopac.f
hlinprof.f
hydropac.f
inabs.f
injon.f
inp3.f
input.f
jon.f
lenstr.f
lint.f
lubksb.f
ludcmp.f
makeabund.f
molecpartf.f
moleq.f
molfys.f
molmat.f
newvoigt.f
partf.f
partfBarberH2O.f
partfamesh2o.f
partffordepth.f
pemake.f
pemakero.f
plot2xy.f
qas.f
qtrav.f
readfilt.f
readmo.f
rinteg.f
rossop.f
spectrum.inc
spectrum_100-150000.inc
spectrum_1500_150000.inc
spectrum_750-150000.inc
spectrum_std.inc
tabs.f
takemolec.f
test-lint.f
test.f
test2.f
tint.f
traneq.f
traneqplatt.f
tranfr.f
tranfrplatt.f
transc.f
transcplatt.f
tranw.f
trqua2.f
trrays.f
tryck.f
tsuji.par
weightlimb.f
xy2moog.f
zerof.f
