ReadMe file

FAMA: An automatic code for stellar parameter and abundance
determination

Laura Magrini, Sofia Randich, Eileen Friel, Lorenzo Spina, Heather
Jacobson, Tristan Cantat-Gaudin, Paolo Donati, Roberto Baglioni,
Enrico Maiorca, Angela Bragaglia, Rosanna Sordo, Antonella Vallenari

Astronomy and Astrophysics, 2013, Vol., Page

Keywords: Methods: data analysis; techniques: spectroscopic; stars:
abundances; Galaxy: abundances, open clusters and associations:
general; surveys FAMA v.1

Description: 
FAMA v.1, July 2013, distributed with MOOGv2013 and Kurucz models
The tarball file (FAMAv.1CDS.tar) contains: 

Perl Codes: 

read_out2.pl
read_final.pl
driver.pl
sclipping_26.0.pl
sclipping_final.pl
sclipping_26.1.pl
confronta.pl
fama.pl

Model atmopheres and interpolator (Kurucz models): 
MODEL_ATMO

MOOG_files: 
files to compile MOOG (the most recent version of MOOG can be obtained from 
http://www.as.utexas.edu/~chris/moog.html)

FAMA_moog_files: 
files to update when compiling MOOG

OUTPUT: 
directory in which the results will be stored, contains a sm macro to
produce final plots


automoog.par: files with parameters fro FAMA
1) OUTPUTdir 
2) MOOGdir 
3) modelsdir
4) 1.0 (default) percentage of the dispersion of FeI abundances to be considered to compute the
errors on the stellar parameters, 1.0 means 100%, thus to compute e.g., the error on Teff we
allow to code to find the Teff corresponding to a slope given by sigma(FeI)/range(EP).
5) 1.2 (default) Sigma clipping for FeI lines
6) 1.0 (default) sigma clipping for FeII lines
7) 1.0 (default) sigma clipping for the other elements
8) 1.0 (default) value of the QP parameter, higher values mean less strong convergence criteria.

star.iron:
EWs in the correct format to test the code

sun.par: 
initial parameters for the test


How to install the FAMA: 



1) copy the files from MOOG_files in the present directory,
compile MOOG with the Makefile suitable for your architecture.
After compilation, You can move all  files (*.f, *.o. *.com) 
again in the dir MOOG_files,  except the MOOG
executable and the two dampinig files Barklem.dat and BarklemUV.dat
In the directory FAMA_moog_files you find the two files modified 
respect to the original files of MOOG distributed by C. Sneden. 
If you update the MOOG version, be sure to change these two files: 
Infile.f: do not ask interactively the name of the par file
Moog.f: put in non interactive mode 


Modify Moog.f with your path!!!!

Compile: 

make 


2) compile the interpolator in the MODEL_ATMO dir: 

g77 -ffixed-line-length-132 makekurucz64.f makekuruczsub.f phdlibsd.f -o makekurucz64.e


3) check that all perl script are executables

(chmod 755 *.pl)

4) edit automoog.par with your Paths and preferences
(see the manual for details)


5) run the FAMA with a test star EWs:
./fama.pl star.iron star.iron sun.par

the second file is usually the file with all element EW, but in the
case you want only to derive only stellar parameters you can use twice
the iron file.  Check the results in the OUTPUT dir (never remove
plot.m file to have a summary check plot for each star, and remember
that SM does not want the "-" sign in files...). 

