30.01.2013 Views

The SWIFT BAT Software Guide Version 6.3 30 ... - HEASARC - Nasa

The SWIFT BAT Software Guide Version 6.3 30 ... - HEASARC - Nasa

The SWIFT BAT Software Guide Version 6.3 30 ... - HEASARC - Nasa

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

D.1. <strong>BAT</strong>BINEVT 101<br />

batbinevt infile.evt outfile.lc LC 0.1 uniform 15-195 tstart=$START tstop=$STOP<br />

(only include data from $START to $STOP)<br />

6. Applying your own binning (0.1 second uniform bins, 15-195 keV) (must make a Good Time<br />

Interval (GTI) named mygti.gti)<br />

batbinevt infile.evt outfile.lc LC 0.1 gti 15-195 gtifile=mygti.gti<br />

(<strong>The</strong> “gti” time binning means that the bins are taken from the GTI file. When the time<br />

binning is not “gti” the GTI file is still useful to select data by time.)<br />

7. Unweighted light curve (with no background subtraction)<br />

batbinevt infile.evt outfile.lc LC 0.1 uniform 15-195 weighted=no<br />

(<strong>The</strong> weighted parameter decides whether mask weighting is applied or not.)<br />

8. Change output units to counts instead of counts/s.<br />

batbinevt infile.evt outfile.lc LC 0.1 uniform 15-195 outunits=count<br />

(<strong>The</strong> outunits parameter can be either COUNT or RATE.)<br />

MAKING SPECTRA from EVENT DATA<br />

9. Total spectrum, in user-specified energy bins<br />

batbinevt infile.evt outfile.pha PHA 0 uniform 15-25,25-50,50-100,100-195<br />

(A time bin size of 0 means that the entire data set should be accumulated into one total<br />

spectrum.<br />

<strong>The</strong> energy bins can be specified as either an ASCII list or a file name with the energy bins.<br />

With a few bins it is easier to give an ASCII list.)<br />

10. Total spectrum, with energy bins given by EBOUNDS extension in myebounds.fits<br />

batbinevt infile.evt outfile.pha PHA 0 uniform myebounds.fits<br />

(Here the energy bins are given in a file with an EBOUNDS extension.)<br />

11. Spectrum every 100 seconds, using EBOUNDS extension<br />

batbinevt infile.evt outfile.pha PHA 100.0 uniform myebounds.fits

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!