Initial script help
initial.csh RAWDIR ROR ROOT BGRADIN BGRADOUT RA DEC
RAWDIR = working directory e.g. /exgal2/sfh/temp
ROR = ROR description of downloaded data e.g. rp600005n00
ROOT = a name you pick. Many file names will begin with this e.g. ngc720
BGRADIN = inner radius of background annulus e.g. 0.6
BGRADOUT = outer radius of background annulus e.g. 0.7
RA = ra of object in degrees (J2000) e.g. 28.23
DEC = dec of object in degrees (J2000) e.g. -17.0
N.B. the RA and DEC expect a decimal point to be included.
i.e. type 23.0 not 23
The following files will need to be present when this script is run:
default.set sets up some values such as resolution of spectral and
spatial bins. If you want to use different values than this
file gives type: source default.set . This will create a
file called defaults.txt which can be edited. (or you could
just alter the default.set file which the script will call
later - usefull if you want to regularly use different
values to those I use)
pkstart starts up asterix, obelix, kappa (Also sets up a variable
$fstart to start up ftools if it is needed) as appropriate
for your computer. Also creates a variable $mach which
tells the script what computer it is being run on
(sun,linux,etc)
extra use to add extra ignores. Usefull if a large diffuse source
is sitting in your background annulus.
This script is designed to carry out initial reduction. It will generate
the following files.
ROOT_cube_broad.sdf raw data cube (x,y,E)
ROOT_bcube_broad.sdf cube containing background annulus
ROOT_bmcube_broad.sdf cube containing background model
ROOT_bscube_broad.sdf background subtracted cube
ROOT_ccube_broad.sdf bg subtracted and corrected cube (xrtcorr)
ROOT_bimage.sdf image of background model
ROOT_bimage_1_p.sdf polar profile of above file centered on specified
position
ROOT_image.sdf image of raw data
ROOT_image_1_p.sdf polar profile of above file centered on specified
position
ROOT_cimage.sdf image of subtracted and corrected data
ROOT_src_broad.pss text file - output from pss
ROOT_src_broad.sdf output from pss in sdf format
ROOT_sigmap_broad.sdf signifcance map produced by pss
ROOT_rate_ok_1.lis a list of good time slots
ard_broad.dat ard file containing pt. sources and support
structure.
profile.sdf polar profile showing raw data divided by
background as a function of radius
stored.txt contains contains position (derived from RA and
DEC) in image coordinates
Rough procedure.
1) Unpack data (gunzip,tar,uncompress)
2) Get good time periods
3) sort cube
4) create background cube with annulus
5) background subtract data and create background model
6) project to images and source search
7) recreate background cube this time excluding pt sources found in 6)
8) repeat 5), 6), 7) and 8) until same number of sources are found each
time
9) check that bg model does appear to give a good description of the
data. Warn if it doesn't.
10)Final bg subtraction. Correct cube (dead time,wires,cnts/sec,etc) and
attach a spectral response.
11)Create final images. Generate profile.sdf (see above). Clean up.
This file was written to go with INITIAL VERSION 3.0b4
Asterix
Last modified: Fri Jun 2 14:18:29 BST 2000