ftgetmodeldata modelname modelversion localdir remotedir dryrun clobber
This tool will download spectral data files from the HEASARC to a local computer. These files are necessary for loading some of the Xspec models.
The spectral model files were previously included in the HEASoft distribution, stored in heasoft/Xspec/src/spectral/modelData and installed in heasoft/spectral/modelData. Starting with HEASoft version 6.37, the distribution no longer includes the spectral model files. With this tool ftgetmodeldata, users and administrators now download the requested files after HEASoft installation.
To determine if a desired model requires a spectral model data file, reference https://heasarc.gsfc.nasa.gov/FTP/software/xspec/spectral/modelDataFiles.csv. Models listed in that CSV do require a file.
The tool uses the curl library in order to download files. If curl is not available on the user's machine, then the files can be downloaded using wget:
wget https://heasarc.gsfc.nasa.gov/FTP/software/xspec/spectral/modelData
More details can be found in the Spectral Model Files page
To download all the latest release files for all models:
ftgetmodeldata modelname="all" modelversion="latest"
To download all the files for all the models, including obsolete versions:
ftgetmodeldata modelname="all" modelversion="all"
To download only the 3.0.9 versions of the apec files:
ftgetmodeldata modelname="apec" modelversion="3.0.9"
To download the current release files of the apec files:
ftgetmodeldata modelname="apec" modelversion="latest"
To download every version of the apec files:
ftgetmodeldata modelname="apec" modelversion="all"
To print out which files would be downloaded if trying to retrieve every version of the xseqpair files:
ftgetmodeldata xseqpair dryrun=true
November 2025