Hello everyone,
A couple of updates to CHAV:
* IN the newly processed data, the aoff1 files are missing. I've
modified asol2aoff so that it can make this file out of asol files:
asol2aoff -o aoff1 -evtfile events.fits -asol1
pcadf440067977N001_asol1.fits ...
If there is more than one asol file, you can specify them all with -
asol2 ... -asol3 and so on flags
* TGAIN files are now packaged as individual tarballs, which makes it
easier for you to update
Alexey
=================== INSTALLATION INSTRUCTIONS
===========================================
If you are doing a fresh install of CHAV, follow these steps. For
update of CHAV, follow 2. For tgain update, follow 3b.
1. Get and install ciao-4.3. Binary is OK but make sure you install a
32-bit version. Their default scripts installs a 64-bit one if you're
running a 64-bit OS.
2. Get chav:
mac osx binaries:
http://hea-www.harvard.edu/~alexey/CHAV/chav-macosx.zip
source code:
http://hea-www.harvard.edu/~alexey/CHAV/chav-src.tar.gz
If you install mac binaries, simply unpack them somewhere (e.g. into /
soft )
If you install from source, go to chav-src/chav, edit and run
configure with suitable options (see the entry alexey-ciao43-32 as an
example)
make; make install
do the same in chav-src/acisbg (the code developed by Maxim Markevitch
and modified by me)
3. Get the calibration dataset:
http://hea-www.harvard.edu/~alexey/CHAV/CAL.tar.gz
unpack it into the directory where you installed CHAV (e.g., /soft/
chav in the case of the mac binaries)
3b. make a subdirectory 'tgain' inside CAL, download individual tgain
tarballs from:
http://hea-www/~alexey/CHAV/tgain/
and unpack inside CAL/tgain
4. Get parameter files:
http://hea-www.harvard.edu/~alexey/CHAV/Par.tar.gz
and also unpack it into the CHAV install dir.
5. Separately, get Maxim's background datasets. At my place, I also
make a directory /soft/chav/BG with convenient links to the
background
files:
lrwxr-xr-x 1 alexey staff 42 Nov 1 17:23
acisi_E_01236_bg_evt.fits -> ../bgdata/
acisi_E_01236_bg_evt_201209.fits
lrwxr-xr-x 1 alexey staff 28 Oct 18 18:49 badpix_E -> ../bgdata/
badpix_E_110210y10
6. After you initialize the package as described below, you should be
able to run everything. In the process_acis_data window, you'll
notice
two new flags:
T-dependent CTI (you'll need to download and set the mlt1 file for
your observation to use this option)
and subpix positions
If you'd like to process old datasets exactly as before, unset these
options.
***** my CHAV + FTOOLS + CIAO initialization file:
************************************************
<pre>
# LOAD ftools:
source ~/.ftools12
# LOAD chav
setenv CH /soft/chav
set path = ( $path $CH/bin )
# if sm is something else then the plain supermongo binary,
setenv SUPERMONGOBINARY /usr/local/bin/sm
# LOAD ciao
source /soft/ciao/bin/ciao.csh
# use fitsfilter if your machine has little RAM
setenv FITSFILTER $CH/bin/fitscopy
# move FTOOLS and CIAO at the end of path
set path = `echo $path | perl -ne '{ chomp; @dirs = split; @cdirs =
(); foreach $dir (@dirs) { if ($dir =~ /ciao/) { push @cdirs,
$dir; $dir=""; } } print join (" ",@dirs,@cdirs,"\n");}'`
set path = `echo $path | perl -ne '{ chomp; @dirs = split; @cdirs =
(); foreach $dir (@dirs) { if ($dir =~ /heasoft/) { push @cdirs,
$dir; $dir=""; } } print join (" ",@dirs,@cdirs,"\n");}'`
# reset PFILES
setenv PFILES `printenv PFILES | perl -pe '{s/cxcds_param4/SYS
\/.cxcpfiles4/; s/alexey\/pfiles/alexey\/SYS\/.pfiles/}'`
rm -rf ~/pfiles ~/cxcds_param4
# personal settings:
setenv P_A_D_GAINFILE `getpar matching_gainfile @$CH/Par/best_cal.par
rp_expand_vars=no`
# # To get the latest CALDB gain file, use
# set govdate = `date +%Y-%m-%d`
# setenv P_A_D_GAINFILE `quizcaldb infile=none mission=chandra
instrument=ACIS detector=- date=$govdate time=00:00:00 filter=-
codename=DET_GAIN expr=cti_corr.eq.yes | perl -pe '{s/\[.*//;
s(^'$CALDB')(\$CALDB)}'`
</pre>