Recompilation instructions. Most patches require
recompilation of XSPEC. Please follow the instructions below if necessary
- If you have compiled xspec for other machine architectures since you originally installed
it, you will need to reconfigure the package for your current machine. To do this:
- cd {distribution root}/BUILD_DIR
- ./hmake distclean
- ./configure
- Do the standard set-up of environment variables (here are the csh & variant
instructions) :
- setenv HEADAS {distribution root}/{architecture}, where architecture is
the architecture specific directory, such as Linux_2.2_i686 or SunOS_5.6_sparc
- source $HEADAS/headas-init.csh
- If you build with local models make sure to setenv LMODDIR to
your local model directory.
- Change directory to {distribution root}/ftools/spectral/xspec/src
- type "hmake", followed by "hmake install". If you cleaned the distribution, then
this will recompile the xspec binary from the beginning (but not the libraries upon which
it depends).
|
New Issues from XSPEC 11.3.2
|
| All of the changes below [including the ones to which links
to separate source code blocks are given] can be effected by downloading
the latest patch tarfile, uncompressing it in the xanadu top source
directory ($HEADAS/../ftools) and recompiling XSPEC. The patchfile also updates
the version string [11.3.2aj at present]. The most recent bug was added
on Nov 26, 2007. |
| 11.3.2a |
Reading type II pha files causes a seg
fault when running under Linux or Solaris. A workaround is to add
keywords XFLT0001, XFLT0002,...,XFLT0010 to the spectrum extension.
Our thanks to Craig Markwardt for pointing this out. Bug report added
on Apr 18, 2005.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/FILE/rdsfg2.f and rebuild xspec.
|
| 11.3.2b |
xspec 12.2 uses the fortran routine fgmodf
to return the standard directory location for files required by
models. However, xspec 11.3.2 uses fgdatd to perform the same
function. To make it easier to include local models in both versions a
routine fgmodf has been added to v11.3.2.
Our thanks to Roderick Johnstone for pointing out this inconsistency
Bug report added on Apr 18, 2005.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/functions/fgunc.f and rebuild xspec.
|
| 11.3.2c |
|
| 11.3.2d |
The gaussian line model can generate a seg
fault if the part of the line falls below the first response energy.
Our thanks to John Houck for reporting this.
Bug report added on May 9, 2005.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/functions/xsgaul.f and rebuild xspec.
|
| 11.3.2e |
The posm model calculates the function at
the upper boundary of the energy bin. A more accurate strategy is to
use a trapezoid integration over the bin. Our thanks to Chris Shrader
for the change.
Bug report added on May 23, 2005.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/functions/xsposm.f and rebuild xspec.
|
| 11.3.2f |
|
| 11.3.2g |
|
| 11.3.2h |
The NEI models do not respond to the abund
command ie the relative abundances are always from Anders & Grevesse.
Our thanks to Terry Gaetz for reporting this.
Bug report added on Jun 9, 2005.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/functions/neispec.f and rebuild xspec.
|
| 11.3.2i |
|
| 11.3.2j |
|
| 11.3.2k |
Machine round-off errors can produce large
discontinuous jumps in Cstat when model parameters are slowly varied,
particularly for data files with very few counts. (This is the same bug
fixed as 12.2.0bh.)
Bug report added on Jul 14, 2005.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/DATA/calcml.f,
and rebuild xspec.
|
| 11.3.2l |
When using more than 15 datasets
simultaneously, datasets 16 and above are not plotted. This occurs
because PGPLOT only defines 15 colours. The fixed version cycles
through the colours. Our thanks to Steve Snowden for reporting this.
Bug report added on Jul 18, 2005.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/DATA/pltfld.f,
and rebuild xspec.
|
| 11.3.2m |
|
| 11.3.2n |
The log filename is limited to 80
characters. Using a longer filename causes seg faults. The allowed
length has been increased to 1024 characters. Our thanks to Jeremy
Sanders for reporting this. Bug report added on Aug 30, 2005.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/tcl/tcllog.c
and rebuild xspec.
|
| 11.3.2o |
Using cstat with a background file on an
x86_64 produces a NaN for the fit statistic. Our thanks to Jeremy
Sanders for reporting this. Bug report added on Sep 14, 2005.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/DATA/calcml.f
and rebuild xspec.
|
| 11.3.2p |
|
| 11.3.2q |
|
| 11.3.2r |
|
| 11.3.2s |
In rare circumstances plots with the ratio
as the lower panel can produce garbage due to a floating point
overflow. Our thanks to Ryan Porter for reporting this. Bug fix added
on Mar 23, 2006.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/DATA/pltfld.f,
then rebuild xspec.
|
| 11.3.2t |
When there are many counts/bin a spurious
warning message about non-Poisson data can be generated by the stat
cstat command. Our thanks to Glenn Morris for reporting this. Bug fix added
on Mar 28, 2006.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/DATA/ispoiss.f,
then rebuild xspec.
|
| 11.3.2u |
|
| 11.3.2v |
|
| 11.3.2w |
The documentation on the lorentz model is
incorrect. The second parameter is the FWHM not the sigma. Our thanks
to Mariano Mendez for pointing this out.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/help/xspec.hlp
then hmake install.
|
| 11.3.2x |
Changed the chatter level of the warning message
from tabulated models which occurs when the response energy range
extends outside the range tabulated for the model. Now only writes if
chatter is set to 15 or higher. Also fixes bug that caused the message
to be written when it should not have been. Our thanks to Jeremy Sanders for
reporting this. Bug fix added on Nov 7, 2006.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/functions/inibin.f
then rebuild xspec.
|
| 11.3.2y |
If the weight command is given before any
dataset is read in then it has no effect and requires that the next
invocation explicitly specify the dataset range else it too will have
no effect. Bug fix added on Nov 7, 2006.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/DATA/stwght.f
then rebuild xspec.
|
| 11.3.2z |
Fakeit using an XMM RGS background file produced
by the rgsbkgmodel in SAS generates various obscure error
messages. Our thanks to Piero Ranalli for reporting this. Bug fix
added on Nov 8, 2006.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/DATA/wrtfak.f
then rebuild xspec.
|
| 11.3.2aa |
|
| 11.3.2ab |
|
| 11.3.2ac |
The conversion constant relating keV and
Angstrom is incorrect in the 6th significant figure based on the
latest values of fundamental constants. Surprisingly this is visible
when plotting grating data in wavelength space. Our thanks to Carlos
Gabriel for reporting this. Bug fix added on Feb 13, 2007.
The fix is to get the
latest patch tar file and rebuild xspec.
|
| 11.3.2ad |
|
| 11.3.2ae |
The compps model can generate a
segmentation fault when using a response matrix with > 5000 energy
bins. Our thanks to Hiromitsu Takahashi for reporting this. Bug report
added on Mar 13, 2007.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/src/functions/xscompps.f
and rebuild xspec.
|
| 11.3.2af |
When using some particularly complicated
models you may see the error message "Too many blocks" following which
the fit will get lost. Our thanks to Ewan O'Sullivan and Roderick
Johnstone for independently reporting this. Bug report added on May 2, 2007.
The fix is to edit the file ftools/xanlib/memory/udmget.c and
change the #define of MAXBLK from 100 to 1000. Ensuring this change is
used in xspec is a little complex. First do an hmake and hmake install
in ftools/xanlib. Next delete all copies of libxantcl* in your headas
installation. Now go to xspec/src/tcl and do an hmake and hmake
install. Finally go to xspec/src, delete the xspec11 executable and do
an hmake and hmake install. Note that this fixed file is not included
in the patch tar file.
|
| 11.3.2ag |
|
| 11.3.2ah |
If xspec has been compiled using gcc4 and
save makes an attempt to overwrite an existing file an error message
is generated instead of the usual prompt. Our thanks to Glenn Morris
for reporting this. Bug report added on Jul 18, 2007.
The fix is to replace
$HEADAS/../ftools/xanlib/sysdep/sys.lnx
and
$HEADAS/../ftools/xanlib/sysdep/sys.darwin
and rebuild the xanlib library and xspec (to do this do an hmake
followed by hmake install in xanlib then an hmake and hmake install
in xspec/src/tcl then finally an hmake and hmake install in xspec/src).
|
| 11.3.2ai |
The help for the NEI models incorrectly
state that abundance ratios are from Anders & Grevesse. In truth they
are those set using the abund command. Our thanks to Frank Haberl for
reporting this. Bug report added on Aug 28, 2007.
The fix is to replace
$HEADAS/../ftools/spectral/xspec/help/xspec.hlp
then hmake install.
|
| 11.3.2aj |
|