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

heasarc.nasa.gov
from heasarc.nasa.gov More from this publisher
30.01.2013 Views

D.12. BATID2XY 155 (history = NO) [boolean ] If history = YES, then a set of HISTORY keywords will be written to the header of the specified HDU in the output file to record the value of all the ftcopy task parameters that were used to produce the output file. D.12.5 EXAMPLES Note that when commands are issued on the Unix command line, strings containing special characters such as ‘[’ or ‘]’ must be enclosed in single or double quotes.The following examples illustrate ways in which batid2xy can be used. 1. With an input file (“BDSD” mode). batid2xy infile=’detids.fits’ -or- batid2xy detids.fits An input file can be created from an ascii table containing the block, dm, side, and detector values in columns 1-4, respectively. A template to create the proper column names can be found in the batid2xy directory as the file bdsd mode.lis. A header template is bdsd mode.hdr. If the data is in a file called data.lis, then the input file detids.fits is created using one of the following commands. Both of these assume that the template files are in the current directory. -or- create_input.pl infile="data.lis" outfile="detids.fits" fcreate bdsd_mode.lis data.lis detids.fits extname="DETID" headfile=bdsd_mode.hdr clobber=yes 2. With no input file (“BDSD” mode). batid2xy NONE 7 3 1 67 3. With an input file (“DETID” mode). batid2xy infile=’detids.fits’ -or- batid2xy detids.fits An input file can be created from an ascii table containing the detector ID values in column 1. A template to create the proper column names can be found in the batid2xy directory as the file detid mode.lis. A header template is detid mode.hdr. If the data is in a file called data.lis, then the input file detids.fits is created using one of the following commands. Both of these assume that the template files are in the current directory.

156 APPENDIX D. BAT SOFTWARE TOOL REFERENCE create_input.pl infile="data.lis" outfile="detids.fits" batidmod="detid" -orfcreate detid_mode.lis data.lis detids.fits extname="DETID" headfile=detid_mode.hdr clobber=yes 4. With no input file (“DETID” mode). batid2xy NONE detid=15299 5. With an input file (“DETXY” mode). batid2xy infile=’detids.fits’ -or- batid2xy detids.fits An input file can be created from an ascii table containing the detector X and Y values in columns 1 and 2, respectively. A template to create the proper column names can be found in the batid2xy directory as the file detxy mode.lis. A header template is detxy mode.hdr. If the data is in a file called data.lis, then the input file detids.fits is created using one of the following commands. Both of these assume that the template files are in the current directory. create_input.pl infile="data.lis" outfile="detids.fits" batidmod="detxy" -orfcreate detxy_mode.lis data.lis detids.fits extname="DETID" headfile=detxy_mode.hdr clobber=yes 6. With no input file (“DETXY” mode). batid2xy NONE detx=259 dety=102 D.12.6 SEE ALSO fcreate D.12.7 LAST MODIFIED Dec 2007

156 APPENDIX D. <strong>BAT</strong> SOFTWARE TOOL REFERENCE<br />

create_input.pl infile="data.lis" outfile="detids.fits" batidmod="detid"<br />

-orfcreate<br />

detid_mode.lis data.lis detids.fits extname="DETID"<br />

headfile=detid_mode.hdr clobber=yes<br />

4. With no input file (“DETID” mode).<br />

batid2xy NONE detid=15299<br />

5. With an input file (“DETXY” mode).<br />

batid2xy infile=’detids.fits’<br />

-or- batid2xy detids.fits<br />

An input file can be created from an ascii table containing the detector X and Y values in<br />

columns 1 and 2, respectively. A template to create the proper column names can be found in the<br />

batid2xy directory as the file detxy mode.lis. A header template is detxy mode.hdr.<br />

If the data is in a file called data.lis, then the input file detids.fits is created using one of the<br />

following commands. Both of these assume that the template files are in the current directory.<br />

create_input.pl infile="data.lis" outfile="detids.fits" batidmod="detxy"<br />

-orfcreate<br />

detxy_mode.lis data.lis detids.fits extname="DETID"<br />

headfile=detxy_mode.hdr clobber=yes<br />

6. With no input file (“DETXY” mode).<br />

batid2xy NONE detx=259 dety=102<br />

D.12.6 SEE ALSO<br />

fcreate<br />

D.12.7 LAST MODIFIED<br />

Dec 2007

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

Saved successfully!

Ooh no, something went wrong!