The collated FITS table itself can be searched for a list of LABELs using the tool ae_label2name.
EXAMPLE:
.run acis_extract_tools
ae_label2name, ['101','202','303'], 'all.collated'
ae_label2name, 3, 'all.collated'
The parameter labels can either be a string array, or an integer.
If an integer is supplied, then the tool prompts for you to enter the specified number labels.
Alternatively, such a table can be constructed in ASCII form using the LABEL_FILENAME option to the Collate Stage (§7.19), and then searched for a specific LABEL either manually or with grep. For example, if the Collate Stage has produced the ASCII table label.txt then this shell alias would change directories to the source with the specified label:
alias asl 'setenv LINE `grep -i "(\!:1)" label.txt`; echo $LINE; if ( "$LINE" != "" ) pushd `echo $LINE | cut -c 1-18`;'
EXAMPLE:
; Create an emap at 1 keV named 'fullfield_1' using six CCDs and an emap named 'iarray_1' using only ACIS-I.
.run acis_extract_tools
ae_make_emap, 'acis.evts', ['fullfield_1','iarray_1'], CCD_LIST=['012367','0123'], ARDLIB_FILENAME='./ardlib.par', ASPECT_FN='acis.asol1', PBKFILE='acis.pbk0', MASKFILE='acis.msk1', MONOENERGY=1.0
EXAMPLE:
.run acis_extract
ae_group_spectrum, '182029.89-161044.4.pi', '182029.89-161044.4_bkg.pi', '', SNR_RANGE=[5,10]
EXAMPLE:
.run acis_extract_tools
ae_timerange_extract, '182029.80-161045.5', '6420', '270786808.58:270854668.99', '6420.1'
ae_timerange_extract, '182029.80-161045.5', '6420', '270854678.71:270897521.73', '6420.2'
ae_timerange_extract, '182029.80-161045.5', '6420', '270897531.45:270938175.77', '6420.3'
<sourcename>/<obsname>/.
However, with appropriate inputs you can run it on AE's multi-ObsId PSF and neighborhood event list.
The KS_PSF value reported by the tool is the 1-sided KS probability, computed on the observed and model (PSF) encircled energy distributions via the AstroLib routine prob_ks.
For example, a KS_PSF value of 0.90 means that if the parent distribution of the data is the same as the model, then 90% of observations (with the specified number of counts) should show a deviation from the model larger than what you actually observed.
Thus, a very small value of KS_PSF is evidence that your source is NOT point-like.
If you look at the code for ae_radial_profile in acis_extract.pro you'll see a parameter ENERGY_RANGE (default = [1,2]) which specifies an energy filter applied to the data before analysis. Another parameter you might change is SRC_RADIUS, the size (in skypixels) of the circular aperture in which the data and PSF are compared.
The algorithm tries to put the analysis apertures at the centroid of the data and at the centroid of the PSF, i.e. it does not assume that the PSF you have constructed aligns perfectly with the data. Alignment is really important of course in radial profiles since a misplaced reference point will skew the profile.
Note that application of the CXC thread ``Improving the Astrometry of your Data: Correct for a Known Processing Offset'' will induce an offset between your data and the MARX PSF. We do not understand the header magic involved here, but fortunately this thread in not applicable to data re-processed after 2004.
Running ChaRT is not easy, but we've written a tool (ae_chart_interface) that calculates the ChaRT parameters you need, downloads the rays, and processes them into an AE-compatible set of PSF images. The ChaRT PSF is blurred by the same method used in AE (§5.1.2). For example, to create ChaRT PSFs for observation ``4495'' at the location of the source ``104357.47-593251.3'':
idl .run acis_extract_tools ae_chart_interface, '104357.47-593251.3', '4495'Supply the optional parameters /PIPELINE_RANDOMIZATION and/or /S_AIMPOINT, described in §7.6, as appropriate.
Then, cd to the source's observation directory and create a symbolic link that will cause the ChaRT PSFs to be used by AE:
cd 104357.47-593251.3/4495 mv source.psf AE_source.psf ln -s chart_source.psf source.psf.
EXAMPLE:
plot_spectra.pl 18*/nogrp_tbabs_vapec/ldata.ps
This tool is a re-implementation of the Perl tool spectra_viewer.pl developed by Konstantin Getman. The X Windows program gv is used to display the Postscript spectra produced by XSPEC. You must have the GNU implementation of gv (version 3.6.1 or higher) in your Unix path.
EXAMPLE:
.run acis_extract_tools
; Set the default ``best model'' to ``nogrp_tbabs_vapec'' for all sources.
; Use /FORCE keyword to override any existing BEST_MDL values.
ae_default_model_preference, 'all.srclist', 'nogrp_tbabs_vapec'
; Interactively review each source.
ae_spectra_viewer, 'all.srclist'
; Collate the ``best model'' results.
acis_extract, 'all.srclist', COLLATED_FILENAME='best_model.collated', HDUNAME='BEST_MDL'
By careful construction of the source list passed to ae_spectra_viewer the observer can review the sources in whatever order is most convenient, or review only a subset of the catalog. For example you might collate (§7.19) the fit results from a standard model for the whole catalog, and then make a list of the sources with suspicious fit results for interactive review.
EXAMPLE:
.run acis_extract
ae_perform_fit, '181948.82-160624.2', 'nogrp_tbabs_vapec'
<source>/spectral_models/.