20-Jan-2010
Added feature to handle artifacts in rear segments that are due to electronics unpredicted by the normal detector response model.
There are two parts. One is to mask out fixed channel problems in specific detectors while still using the same channels from other detectors. This process creates wiggles in our plots of the photon spectra so the second part was to apply a correction to remove the primary component of those wiggles.
The artifact mask is applied to the spectrum and SRM data that you export to OSPEX for analysis.
Richard Schwartz's message of Jan 20, 2010:
I just onlined support for Albert's artifact_mask (channel cutouts) to be used with both data and the srm's in OSPEX. This is to handle things like the half and full scale artifacts by removing the 64 bins in the affected detectors but keeping the others. To get a data set with this masking, start from a spectrum object set up for your times and energies. If you start from the gui, then get the object thus hessi_data, sp=sp sp is the spectrum object To generate the FITS files for the srm and the spectrum data sp->filewrite,/build,/use_artifact_mask It won't work with any front segments selected. I've just pushed the software onto the hessi ssw account and it will propagate within a few hours. Richard These are the uploaded routines: hsi_artifact_mask_proc.pro hsi_artifact_mask.pro hsi_artifact_mask_control__define.pro hsi_artifact_mask_control.pro hsi_artifact_mask_info__define.pro hsi_spectrum__fitswrite.pro hsi_srm__define.pro hsi_artifact_mask__define.pro hsi_spectrum__define.pro hsi_spectrum__filewrite.pro hsi_spectrum__spectra4spex.pro