NAME
mk_corweighted_bgd - Perl script for Suzaku XIS
USAGE
mk_corweighted_bgd tgtfile bgdfile id step error name image clobber
DESCRIPTION
This program makes background spectra (and image) weighted
with cut-off-rigidity(COR) of target observation.
PARAMETERS
- tgtfile [filename]
- Spectra for target observation. Set common and initial words of
each target spectrum sorted with COR. This program searches target
spectra by this parameter.
- bgdfile [filename]
- Spectra for background observation. Set common and initial words of
each background spectrum sorted with COR. This program searches background
spectra by this parameter.
- id [integer]
- Set XIS ID. This parameter is used to search spectra.
- step [array of integer separeted with ","]
- Set XIS ID. This parameter is used to search spectra.
- error [integer]
- Set calculation method for error. See help of mathpha for details.
- name [string]
- Part of output filename. Output filename is defined as follows.
- COR weighted spectrum: corweighted_{name}_x{id}.pi
- log file: corweighted_{name}_x{id}.log
- image : corweighted_{name}_x{id}.img
(parameter of image is 1)
- ({id} shows XIS ID.)
- image [integer]
- Set parameter for image. If image=1, this program makes
background image which is weighted with COR and corrected exposure time to
that of target observation.
- (clobber = no) [boolean]
- If colbber=no, files are not overwrote.
EXAMPLES
The following examples illustrate
1. A following example makes background spectrum and image which are
weighted with COR of target.
mk_corweighted_bgd tgtfile=target/src bgdfile=nte/nte \
id=0 image=1 name=nxb clobber=yes
The example uses many files. There are files below in target/ and nte/.
> ls target/
src_x0_cor_00_04.pi
src_x0_cor_04_05.pi
src_x0_cor_05_06.pi
src_x0_cor_06_07.pi
src_x0_cor_07_08.pi
src_x0_cor_08_09.pi
src_x0_cor_09_10.pi
src_x0_cor_10_11.pi
src_x0_cor_11_12.pi
src_x0_cor_12_13.pi
src_x0_cor_13_99.pi
> ls nte/
nte_x0_cor_00_04.pi nte_x0_cor_00_04.img
nte_x0_cor_04_05.pi nte_x0_cor_04_05.img
nte_x0_cor_05_06.pi nte_x0_cor_05_06.img
nte_x0_cor_06_07.pi nte_x0_cor_06_07.img
nte_x0_cor_07_08.pi nte_x0_cor_07_08.img
nte_x0_cor_08_09.pi nte_x0_cor_08_09.img
nte_x0_cor_09_10.pi nte_x0_cor_09_10.img
nte_x0_cor_10_11.pi nte_x0_cor_10_11.img
nte_x0_cor_11_12.pi nte_x0_cor_11_12.img
nte_x0_cor_12_13.pi nte_x0_cor_12_13.img
nte_x0_cor_13_99.pi nte_x0_cor_13_99.img
These files can be made by "mk_corsorted_spec" easily.
2.
mk_corweighted_bgd
SEE ALSO
LAST MODIFIED
Oct 2006