Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Roman-UCSD/BasicATLAS

Repository files navigation

BasicATLAS

This project is a simple Python wrapper for the ATLAS LTE stellar modelling code by Robert L Kurucz as well as satellite utilities including the spectral synthesis library SYNTHE and opacity distribution (ODF) calculator DFSYNTHE. Refer to the literature references below:

Also see the websites of Robert L Kurucz and Fiorella Castelli.

ATLAS 9 and ATLAS 12 differ in the opacity sampling method (opacity distribution functions vs direct sampling) which results in the former being considerably faster and, in principle, somewhat less accurate although (to my understanding) the significance of the uncertainty introduced by the chosen opacity treatment is not well established. BasicATLAS works with ATLAS 9 (support for ATLAS 12 may be added in the future).

If you are using BasicATLAS in your research, please cite Larkin et al. (2022)

Contributors

  • Roman Gerasimov (University of Notre Dame, University of California San Diego)
  • Mikaela Larkin (University of California San Diego)
  • Tianxing Zhou (University of California San Diego)
  • Philipp Edelmann (Los Alamos National Laboratory) @ AAS 242 Hack Together
  • Paul Barrett (George Washington University) @ AAS 242 Hack Together
  • Efrain Alvarado (University of California San Diego)
  • Evan Kirby (University of Notre Dame)

Installation

Grid of restart files

BasicATLAS uses a grid of pre-computed model atmospheres as initial guesses for temperature-pressure profiles in structure calculations. This repository contains a reduced grid of models; however, we recommend downloading the full grid from Google Drive and placing it in BasicATLAS/restarts/light.h5.

Download legacy code and data files

Run the wget-based bash script download.com to retrieve the original ATLAS/SYNTHE/DFSYNTHE Fortran codes and required data files (line lists, chemical constants etc):

source download.com

Compile the code

To compile the legacy code, both Intel and GNU Fortran compilers are required. Intel compilers are typically not available by default, but can be installed as part of the oneAPI Toolkit. Follow the instructions on the oneAPI website to install the Toolkit for your operating system (both GUI and command line installers are available). Once installed, the Toolkit must be initialized before every use by running the setvars.sh script:

sh ~/intel/oneapi/setvars.sh

Once installed and initialized, you must be able to use the ifx command in your terminal. Then run the compile script in BasicATLAS:

source compile.com

Finally, verify that the installation completed successfully by running

python test.py

The test is clean if no output is produced.

PyTLAS sub-module

BasicATLAS is shipped with the PyTLAS sub-module, which implements a modified version of the SYNTHE suite that runs entirely in memory. PyTLAS is necessary e.g. for abundance fitting with chemfit. To enable PyTLAS:

cd PyTLAS
source compile.com

This should generate spectrv.so, synthe.so and xnfpelsyn.so in BasicATLAS/PyTLAS/bin/.

About

Python wrapper for ATLAS-9/SYNTHE

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •