mitsim2fits - Convert from MIT (simulated events lists) from arv format to an ACIS level 0 format. This program was previously named arv2fits.
mitsim2fits
--ccdid the_ccd_id
--detname | -D name_of_detector
[ --datamode | -d the_FITS_DATAMODE_keyword (default: FAINT) ]
[ --date-end | the_ending_date_of_observation (default: today's date) ]
[ --date-obs | the_begin_date_of_observation (default: today's date) ]
[ --filter | -f filter_used (default: NONE) ]
[ --grating | -g grating_used (default: NONE) ]
[ --help | -h ]
[ --input | -i the_input_filename ]
[ --mission | -m the_mission_name (CHANDRA) ]
[ --output | -o the_output_filename ]
[ --readmode | -r the_FITS_READMODE_keyword (default: TIMED) ]
[ --src_spec | -s the_FITS_SRC_SPEC_keyword (default: MONO) ]
[ --telescope | -t the_name_of_the_telescope (default:CHANDRA) ]
[ --time-end the_end_time_of_observation (default: current time) ]
[ --time-obs the_begin_time_of_observation (default: current time) ]
[ --version | -v ]
The program converts an ARV format to an ACIS FITS level 0 format. The ARV format is a C-struct with the following definition:
struct ARV {
short nframe;
short exposure;
long acistime;
short nodenum,x,y,data[9];
}
Each row of the Fits Row to be output is defined as:
struct AcisFits {
short ccd_id;
short chipx, chipy;
short phas[ 9 ];
long expno;
double time;
}
Where the transformations from ARV to FITS are given below:
ccd_id = comand_line_option( "ccdid" );
chipx = x;
chipy = y;
expno = nframe;
time = double( acistime );
for ( int ii = 0; ii < 9; ++ii )
phas[ i ] = data[ i ];
Options may be abbreviated. Options which take values may be separated from their values either by white space.
The options are :
mitsim2fits --detname ACIS-3 --ccdid 3 < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 < foo.arv > foo.fits
or
mitsim2fits -D ACIS-3 --ccdid 3 < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --datamode NOTFAINT < foo.arv > foo.fits
or
mitsim2fits -D ACIS-3 --ccdid 3 -d NOTFAINT < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --date-end 2001-10-09 < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --date-obs 2001-10-09 < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --filter junk < foo.arv > foo.fits
or
mitsim2fits -D ACIS-3 --ccdid 3 -f junk < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --grating junk < foo.arv > foo.fits
or
mitsim2fits -D ACIS-3 --ccdid 3 -g junk < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --input foo.arv --output foo.fits
or
mitsim2fits -D ACIS-3 --ccdid 3 -i foo.arv -o foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --mission AXAF < foo.arv > foo.fits
or
mitsim2fits -D ACIS-3 --ccdid 3 -m AXAF < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --input foo.arv --output foo.fits
or
mitsim2fits -D ACIS-3 --ccdid 3 -i foo.arv -o foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --readmode NOTTIMED < foo.arv > foo.fits
or
mitsim2fits -D ACIS-3 --ccdid 3 -r NOTTIMED < foo.arv > foo.fits
--src_spec stringmitsim2fits --detname ACIS-3 --ccdid 3 --src_spec MONO < foo.arv > foo.fits
or
mitsim2fits --detname ACIS-3 --ccdid 3 -s MONO < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --telescope AXAF < foo.arv > foo.fits
or
mitsim2fits --detname ACIS-3 --ccdid 3 -t AXAF < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --time-end 04:04:00 < foo.arv > foo.fits
mitsim2fits --detname ACIS-3 --ccdid 3 --time-obs 03:04:00 < foo.arv > foo.fits
mitsim2fits --usage
For example:
mitsim2fits --version
or
mitsim2fits -v