NAME

mxevtfilter

USAGE

mxevtfilter rootname detector evtlist gtilist src_regfile bkg_regfile

DESCRIPTION

Using a list of event files and matching GTIs, create a number of output data products including event files and images. Specifically, it makes

In addition to these, ASCII file lists and an image mask are generated intended for inputs to other MAXI processing tools.

PARAMETERS

rootname [string]
The prefix on all output file names.

detector [string]
The name of the MAXI detector. Should be one of 'gsc_low', 'gsc_med', or 'ssc' ('ssc_med' is equivalent to 'ssc').

evtlist [string]
A list of input event files. This may be a comma-delimited list, or the name of a text file containing a list of files, one per line, preceded by an '@' character.

gtilist [string]
A list of input GTI files. This may be a comma-delimited list, or the name of a text file containing a list of files, one per line, preceded by an '@' character.

(hvlist = "CALDB") [string]
A list of high voltage state settings for GSC. This may be a comma-delimited list, or the name of a text file containing a list of files, one per line, preceded by an '@' character. If set to "CALDB" (default), the high voltage history is obtained by reading the MAXI calibration database. Ignored if the detector is SSC.

(simbkglist = "NONE") [string]
A list of the simulated background files. This may be a comma-delimited list, or the name of a text file containing a list of files, one per line, preceded by an '@' character. If not using simulated background, set to "NONE" (default).

src_regfile [filename]
The name of the ds-9 compatible source region file.

bkg_regfile [filename]
The name of the ds-9 compatible background region file. Set to "NONE" if not using background.

(eband_fname = "REFDATA") [filename]
The name of the ASCII file containing the energy band settings. Reads the default settings (bands at 2-6 and 6-20 keV for GSC, or a single band 0.7-7 kev for SSC) from the MAXI reference data if set to "REFDATA" (default).

(leapsecfile = "REFDATA") [string]
If set to "REFDATA" (default), use the built-in reference file for defining leap seconds. If set to CALDB, use the reference file in the MAXI calibration database. Otherwise, use the specified file name.

(cleanup = no) [boolean]
Determines whether to delete temporary files (yes/[no]).

(clobber = no) [boolean]
Overwrites the existing output file if set to yes (yes/[no]).

(chatter = 1) [integer]
Sets the amount of output from the code. Values range from 0 (little to no output) to 3 (verbose: provides considerable output). Default value of 1 provides basic details as code runs.

(logfile = !DEFAULT) [string]
Record output from running this tool. If set to DEFAULT, the output logfile will be named "mxevtfilter.log". If preceded by the "!", any existing file with the same name will be overwritten; otherwise this output will be appended to any existing file.

(history = yes) [boolean]
Records tool parameters in HISTORY ([yes]/no).

(debug = no) [boolean]
If set to "yes", the code will provide detailed logging of variables and settings as the code runs in considerable detail. This can be useful when debugging features in the code or deciphering unexpected error conditions, but not suitable for routine operation. Default is "no".

(mode = ql) [string ql|hl|q]
Mode to query the parameter file. Acceptable values include: "ql" (query and learn/remember), "hl" (hidden and learn/remember), "q" (query but don't remember), "h" (hidden).(Optional)

EXAMPLES

Given a list of input event files and matching GTIs for time intervals when the source is in the field of view, generate:

No scan condition filter GTIs are generated as they were not requested.

mxevtfilter rootname=crab detector=gsc_low evtlist=crab_g1.evt,crab_g2.evt,crab_g7.evt \
  gtilist=crab_g1_fov.gti,crab_g2_fov.gti,grab_g7_fov.gti hvlist=CALDB eband_fname=REFDATA \
  src_regfile=crab_src.reg bkg_regfile=crab_bkg.reg

SEE ALSO

hpextract, mxextract, mxevtgti, mxpipeline

LAST MODIFIED

March 2026 (mxevtfilter v0.71)