Check our latest tool upgrades: WebSpec-js and FViewer.
Building with the Models Library
To build the libraries required to link in XSPEC models download XSPEC by checking the Xspec box in the HEAsoft download page and extract from the tar file. Then, in the BUILD_DIR directory:
./configure --enable-xs-models-only make make install
The XSFunctions library depends on the lower-level XSUtil library, and also on the hdsp, CCfits and cfitsio libraries distributed with HEASOFT. (In XSPEC 13 the former monolithic XS library was split into separate XSCore, XSData, XSModel and related libraries; a program that only calls model functions needs XSFunctions and XSUtil.) A Makefile for a small Fortran program linking with the models library therefore may look like this on Linux (the hdsp and CCfits version numbers will match those in your HEASOFT release):
myprog : myprog.o gfortran -g myprog.o -o myprog \ -L/path/to/headas/installed/location/lib \ -lXSFunctions -lXSUtil -lhdsp_6.36 -lCCfits_2.7 -lcfitsio myprog.o: myprog.f gfortran -g -c myprog.f