Installation¶
Prerequisites¶
Before installing DAO, please ensure your system meets the following requirements:
Build Tools:
make,gfortran, andgcc.Python: Version 3.10 or newer.
Python Libraries:
f90nml,jinja2,hashlib,argparse, and standard libraries (os,subprocess,pathlib).External Software: HEASoft (High Energy Astrophysics Software).
Installation Steps¶
Clone the Repository
Download the source code from GitHub:
git clone https://github.com/ABHModels/DAO.git cd DAO
Prepare the Build Directory
Create a directory for module files:
mkdir modsConfigure HEASoft Paths
Open the
Makefileand locate the HEADS variable. You must update this path to point to your local HEASoft installation directory.Example:
HEADS = /path/to/heasoft/heasoft-6.31.1/x86_64-pclinux-gnu-libc2.17
Note
If the libraries listed in the
LIBSsection of theMakefileare not found at this path, please manually verify the locations oflibcfitsio,libxanlib, andlibapeon your system and update the path accordingly.Compile the Model
Run the make command to build the project:
make
Before Running: Prepare Data Files
The model relies on the XSTAR atomic database (specifically
adtb.fitsandcoheat.dat) and pre-calculated Compton scattering redistribution functions.Atomic Database: While the code can automatically locate these files if HEASoft is installed, we strongly recommend downloading them manually and configuring a custom path to ensure consistency. After v1.2.2, the model require a specific structure for atom database for adopt high density calculation (see version for more details).
Redistribution Functions: You must ensure the pre-calculated redistribution functions are available before running the model.
Download: You can download both the required atomic database and the Compton scattering redistribution functions (500 energy bins) from Zenodo.