Monday, June 23, 2008
documentation errors for table files
Mike Corcoran spotted a couple of minor problems. The ogip_92_009 memo refers to the incorrect location for the wftbmd.f and .c files. It should be $HEADAS/../ftools/spectral/tables/. Also the onepar and twopar Makefile don't work because they need to refer to the correct version numbers of xanlib and cfitsio - I fixed this by switching to standard HEADAS Makefiles so running hmake will automatically pick up current versions of libraries. These changes are checked in but won't make the imminent HEAsoft 6.5 release.
Friday, June 13, 2008
tclout goodness
goodness was listed as an option for the tclout command but we had forgotten to actually implement it. This is fixed as patch 12.4.0ab after Phil Evans pointed out the discrepancy.
Thursday, June 05, 2008
Bug fix in xselect for suzaku
When I added the support for 5x5 to 3x3 conversion I missed the case of the user already having done an extract events. If this has happened then the event file to be used has a different name. Checked in a fix to this and was a bit cleverer about jumping out of the 5x5to3x3 routine if we don't need to run it.
Friday, May 09, 2008
modification to lrt.tcl
The likelihood-ratio test script doesn't work when there are multiple datagroups. The reason is that switching between models by making them active/inactive loses information on the parameters for groups > 1 when the model becomes inactive. We perhaps should modify the model inactive command to track multiple datagroups however as a workaround I modified lrt.tcl to use command files to store the model definitions. Each time the model is switched the appropriate command file is read.
Monday, May 05, 2008
started work on extractor v5
Started work on the new version of extractor which will use cfitsio internal filtering as much as possible.
In the course of switching the region filtering to cfitsio I found an obscure bug. If the image and wmap coordinates are the same but have different binning and wtmapfix is set then the WMAP bins with -1 are not quite correct. Several bins at the edge of the selected region can have counts in them when the value should be -1.
In the course of switching the region filtering to cfitsio I found an obscure bug. If the image and wmap coordinates are the same but have different binning and wtmapfix is set then the WMAP bins with -1 are not quite correct. Several bins at the edge of the selected region can have counts in them when the value should be -1.
Saturday, May 03, 2008
xselect and ROSAT
Dave Pooley reports that xselect has problems under Mac OS 10.4 but not 10.3 when using ROSAT data. I confirmed the error under 10.4. The error message is something like
Could not find keyword for Instrument for ROSAT
NONE
Got new mission: ?4????AF?'?AF?AF?AF??
'7????P???? R??????D???51
I don't know why this occurs but the fix is to edit xselect.mdb to use the new wildcard facility to deal with the PSPCB and PSPCC instrument variant names instead of using the instkey specification to only read the first four characters of the INSTRUME keyword.
Could not find keyword for Instrument for ROSAT
NONE
Got new mission: ?4????AF?'?AF?AF?AF??
'7????P???? R??????D???51
I don't know why this occurs but the fix is to edit xselect.mdb to use the new wildcard facility to deal with the PSPCB and PSPCC instrument variant names instead of using the instkey specification to only read the first four characters of the INSTRUME keyword.
Wednesday, April 30, 2008
xspec patches
A few new patches have been added recently. 12.4.0x fixes a number of problems that showed up when using the new g++-4.3.0 compiler and when using gcc on Solaris platforms. This patch level is released as part of HEAsoft 6.4.1. 12.4.0y improves the handling of cases when the L-M algorithm pegs a parameter due to a zero or negative pivot value in the Hessian. 12.4.0z keeps the fit valid when the fit method is changed. This allows the improve command to be run after an L-M fit. 12.4.0aa is a fix to allow filenames prompted for by the fakeit command to being with a / ie to be absolute paths. Patches available from the usual place.
Thursday, April 24, 2008
xselect: Chandra response generation
Overhauled the response generation option on "save spec" for Chandra ACIS data. I added an extended? parameter to specify whether the source is a point source or not. For a point source the arf is created using mkarf, and for an extended source mkwarf is used. The rmf is generated using mkrmf or mkacisrmf depending on whether CTI correction has been performed. The script checks keywords in the spectrum to determine which is appropriate. Note that to find some of the auxiliary files required xselect should be being run in either main directory for the dataset or in a directory one level down (eg secondary).
Note that I also modified the FITS region extension written by extractor so that the EXTNAME is REGION and EXTVER is used to track multiple extensions. This is a change from an EXTNAME of REG001## and is made to conform with the CXC standard defined by McDowell & Rots. There may be an issue here is XMM-Newton SAS routines are expecting the REG001## names.
Note that I also modified the FITS region extension written by extractor so that the EXTNAME is REGION and EXTVER is used to track multiple extensions. This is a change from an EXTNAME of REG001## and is made to conform with the CXC standard defined by McDowell & Rots. There may be an issue here is XMM-Newton SAS routines are expecting the REG001## names.
Tuesday, April 22, 2008
Science 2.0
SciAm has a brief survey of Web 2.0 applications in science. In particular, it argues that putting scientists working notes on-line will foster greater communication and collaboration.
Monday, April 14, 2008
reading old RMFs
Tahir points out that the BeppoSAX RMFs don't work in rbnrmf. The problem is that these files have only RMFVERSN='1992a' and do not have the HDUVERS keyword that the software now requires. The workaround is to add HDUVERS='1.0.0' to the MATRIX extension. I've updated the relevant subroutines to check for RMFVERSN if HDUVERS is not found.
Tuesday, April 08, 2008
setplot wave units in xspec
Changed the plotting units for the setplot wave option. Now showing f_nu and variants instead of f_lambda. The model and ufspec y-axis is photons/cm^2/s/Hz; emodel and eufspec are in Jansky (1e-23 erg/cm^2/s/Hz); eemodel and eeufspec in keV Jy. The latter is a bizarre mixed unit but it isn't clear to me what to use here. It might be an idea to have an option for the user to switch between f_lambda and f_nu.
Updated: decided that for the eemodel/eeufspec plots the units should be erg/cm^2/s corresponding to standard nu F_nu plots.
Independently, I fixed an error in setting the y-axis range for eufspec and eeufspec under setplot wave.
Updated: decided that for the eemodel/eeufspec plots the units should be erg/cm^2/s corresponding to standard nu F_nu plots.
Independently, I fixed an error in setting the y-axis range for eufspec and eeufspec under setplot wave.
Wednesday, April 02, 2008
genrsp v2.02
Added an option for the resolution varying linearly with either the energy or the wavelength.
Friday, March 28, 2008
xspec updates
A number of updates and bug fixes, mainly minor.
12.4.0p This is the fix for suzpsf alluded to earlier.
12.4.0q CHANTYPE was not being set correctly after fakeit none leading to confusing warning messages.
12.4.0r A generalization of fakeit to work correctly with multiple models as requested by K.D. Kuntz.
12.4.0s A couple of patches for plot eff bizarreness that I ran across.
12.4.0t Fix for a seg fault in data when the user gives the filename as empty double quotes.
12.4.0u A fix for unusual compiler configurations.
12.4.0v Allow the unnamed model to be turned on and off.
12.4.0w Correction for a bug when using non-standard weighting and toggling between chi and cstat statistics.
Patches are available from the usual place.
12.4.0p This is the fix for suzpsf alluded to earlier.
12.4.0q CHANTYPE was not being set correctly after fakeit none leading to confusing warning messages.
12.4.0r A generalization of fakeit to work correctly with multiple models as requested by K.D. Kuntz.
12.4.0s A couple of patches for plot eff bizarreness that I ran across.
12.4.0t Fix for a seg fault in data when the user gives the filename as empty double quotes.
12.4.0u A fix for unusual compiler configurations.
12.4.0v Allow the unnamed model to be turned on and off.
12.4.0w Correction for a bug when using non-standard weighting and toggling between chi and cstat statistics.
Patches are available from the usual place.
Monday, March 24, 2008
likelihood-ratio test
Added a new Tcl script, lrt.tcl, to calibrate the likelihood ratio test. Currently only works with one data set. The user defines two models (by default model0 and model1) then the script generates a user-specified number of simulated data sets based on model0 and for each one evaluates the log(likelihood ratio) between model1 and model0. The script returns the fraction of simulations with a smaller log(LR) than the data.
I will then use lrt.tcl as the basis for a script to calculate F-test probabilities for
adding an additional model component.
I will then use lrt.tcl as the basis for a script to calculate F-test probabilities for
adding an additional model component.
Friday, March 14, 2008
fakeit with multiple sources
We now have the patch out for fakeit to simulate data from the case where there are multiple sources (with their own responses). This is xspec v12.4.0r and is available from the usual place.
Thursday, March 13, 2008
suzaku xis response generation
Enabled the automated response generation in xselect for Suzaku XIS spectra. I'm still waiting for a decision from the XIS team on what default energy and channel binning to use in the response matrix. Ishisaki-san has suggested that the correct estepfile option for xissimarfgen is "medium" so the response generation uses this.
Currently using a "medium" binning scheme which produces 2048 channels. Spectra extracted from xselect are binned using this scheme whether or not the automated response generation is used.
Note that I also modified the MDB code to allow trailing wild cards eg XIS* will match to any of XIS0, XIS1, XIS2, or XIS3.
Also, updated addascaspec so it runs correctly if there is no ARF used.
Currently using a "medium" binning scheme which produces 2048 channels. Spectra extracted from xselect are binned using this scheme whether or not the automated response generation is used.
Note that I also modified the MDB code to allow trailing wild cards eg XIS* will match to any of XIS0, XIS1, XIS2, or XIS3.
Also, updated addascaspec so it runs correctly if there is no ARF used.
suzaku xis 5x5 and 3x3 files
Checked in a change to xselect so that when there is a mix of 5x5 and 3x3 suzaku xis files read in then, when doing an extract, xis5x5to3x3 is used to create a temporary 3x3 file. This was requested by the xis team and ensures that doing an extract event creates a correct output 3x3 file. At the moment we aren't doing anything with the extra information in the 5x5 file.
Tuesday, March 11, 2008
local models in xspec v11 on the Mac OS X
Bryan points out that the documentation for local models in v11 doesn't include the special instructions required for the Mac OS X ie because we can't make a shared library the xspec11 executable must be rebuilt with the new local model library. I've added this to the relevant manual page although hopefully most people are using v12 now anyway.
Friday, March 07, 2008
grade strings in xselect/extractor
The specifications rules for grade strings in the xselect "filter grade" command do seem lead to a little confusion so made them a but more lenient. Now allow spaces in between individual elements. eg "0:0 2:4 6:6" is now allowed as well as "0:0,2:4,6:6". This change is in extractor v4.83.
twittering
There is now an xspector twitter. I'm not sure whether I will keep this up or where it will go - it's an experiment.
Subscribe to:
Posts (Atom)