Cheatsheet¶
PFANT Fortran binaries¶
innewmarcs
: interpolate atmospheric modelhydro2
: calculate hydrogen linespfant
: spectral synthesisnulbad
: convolution with Gaussian
Python applications from project PyFANT¶
Graphical applications¶
abed.py
: Abundances file editorated.py
: Atomic lines file editorconvmol.py
: Conversion of molecular lines data to PFANT formatexplorer.py
: F311 Explorer – list, visualize, and edit data files (à la File Manager)mained.py
: Main configuration file editormced.py
: Editor for molecular constants filemled.py
: Molecular lines file editormoldbed.py
: Editor for molecules SQLite databasetune-zinf.py
: Tunes the “zinf” parameter for each atomic line in atomic lines filex.py
: PFANT Launcher – Graphical Interface for Spectral Synthesis
Command-line tools¶
copy-star.py
: Copies stellar data files (such as main.dat, abonds.dat, dissoc.dat) to local directorycreate-grid.py
: Merges several atmospheric models into a single file (i.e., the “grid”)cut-atoms.py
: Cuts atomic lines file to wavelength interval specifiedcut-molecules.py
: Cuts molecular lines file to wavelength interval specifiedcut-spectrum.py
: Cuts spectrum file to wavelength interval specifiedhitran-scraper.py
: Retrieves molecular lines from the HITRAN databaselink.py
: Creates symbolic links to PFANT data files as an alternative to copying these (sometimes large) files into local directorynist-scraper.py
: Retrieves molecular constants from NIST Web Book for a particular moleculenulbad.py
: Convolve spectrum with Gaussian profile (similar, but not equivalent, to Fortrannulbad
)plot-spectra.py
: Plots spectra on screen or creates PDF filerun4.py
: Runs the four Fortran binaries in sequence:innewmarcs
,hydro2
,pfant
,nulbad
save-pdf.py
: Looks for files “.norm” inside directories session- and saves one figure per page in a PDF filevald3-to-atoms.py
: Converts VALD3 atomic/molecular lines file to PFANT atomic lines file.
Hint
All programs have a --help
argument.
Command-line options for the Fortran binaries¶
Options are accompained by their default values.
Below, <main_xxxxx>
means that option xxxxx
is, by default, read from PFANT main configuration file.
hydro2
¶
hydro2 \
--logging_console T \
--logging_dump F \
--logging_fn_dump <executable name>_dump.log \
--fn_main main.dat \
--fn_modeles modeles.mod \
--fn_absoru2 absoru2.dat \
--fn_hmap hmap.dat \
--interp 1 \
--kik 0 \
--ptdisk <main_llzero> \
--llfin <main_llfin> \
--amores T \
--kq 1 \
--zph 12.00
innewmarcs
¶
innewmarcs \
--logging_console T \
--logging_dump F \
--logging_fn_dump <executable name>_dump.log \
--fn_main main.dat \
--fn_modeles modeles.mod \
--fn_modgrid grid.mod \
--fn_moo grid.moo \
--allow F \
--fn_opa modeles.opa \
--opa T
pfant
¶
pfant \
--logging_console T \
--logging_dump F \
--logging_fn_dump <executable name>_dump.log \
--fn_main main.dat \
--fn_modeles modeles.mod \
--fn_absoru2 absoru2.dat \
--fn_hmap hmap.dat \
--interp 1 \
--kik 0 \
--ptdisk <main_llzero> \
--llfin <main_llfin> \
--fn_opa modeles.opa \
--fn_partit partit.dat \
--fn_abonds abonds.dat \
--fn_atoms atoms.dat \
--no_molecules F \
--no_atoms F \
--no_h F \
--pas <main_pas> \
--aint <main_aint> \
--opa T \
--abs F \
--opa T \
--opa T \
--fn_dissoc dissoc.dat \
--fn_molecules molecules.dat \
--flprefix <main_flprefix>
nulbad
¶
nulbad \
--logging_console T \
--logging_dump F \
--logging_fn_dump <executable name>_dump.log \
--fn_main main.dat \
--flprefix <main_flprefix> \
--fn_flux <main_flprefix>.norm \
--flam F \
--fn_cv <flux file name>.nulbad.<fwhm> \
--pat <main_pas> \
--convol T \
--fwhm <main_fwhm>
PFANT on GitHub: http://github.com/trevisanj/PFANT
PyFANT on GitHub: http://github.com/trevisanj/pyfant