The nimpumerge task merges NICER MPU event data.
Typically nimpumerge will be used to merge event data from multiple MPU slices into a single output event list file. The task is able to merge the MPU slice event data from a single observation, but also multiple observations.
In addition, nimpumerge is able to merge data from already-merged "MPU 7" files, with the setting mpulist=7. This would typically be used to merge data from multiple observations into a single file. Note that "MPU 7" data is assumed to have FPM Selection data.
IMPORTANT NOTE: Only combine the calibrated but unfiltered output files, so called "ufa" or "cl" files. "ufa" files can be produced using the nicercal task. Although it is possible to combined raw unfiltered data ("uf" files) without errors, it will be impossible to calibrate these files with standard tasks afterward. Therefore, only use this task on "ufa" or "cl" files.
The output file contains a merged event list from all input files. The standard "GTI" extension is present and represents the common observation times of all MPUs (i.e. the intersection or "AND" merge of the individual MPUs). If multiple observations are combined from disjoint times, these good times are combined with union or "OR" merger. In addition to the combined GTI, the individual per-MPU GTIs are also stored in the output with extension names, GTI_MPUn, where n is MPU slice number between 0 and 6.
1. Merge per-slice data from multiple MPUs from one observation.
ls obs1/xti/event_cl/ni*_ufa.evt > evtfiles.lis nimpumerge infiles=@evtfiles.lis outfile=merged.evt
The input directory is a NICER observation with name 'obs1'. The first command is ls which lists the calibrated but unfiltered event files and saves it as a list file (evtfiles.lis). The call to nimpumerge combines these files into a single output called merged.evt.
2. Merge per-slice data from multiple observations.
ls {obs1,obs2}/xti/event_cl/ni*_0mpu[0-6]_ufa.evt > evtfiles.lis nimpumerge infiles=@evtfiles.lis outfile=merged.evtThis is basically the same command as variation 1 listed above, but the "ls" command lists calibrated files from two different observation directories, here listed as obs1 and obs2. MPU data from both observations is combined into a single time-sorted event list file.
3. Merge "MPU 7" data from multiple observations using "ufa" file.
ls {obs1,obs2}/xti/event_cl/ni*_0mpu7_ufa.evt > evtfiles.lis nimpumerge infiles=@evtfiles.lis outfile=merged_ufa.evt mpulist=7
4. Merge "MPU 7" data from multiple observations using "cl" file.
ls {obs1,obs2}/xti/event_cl/ni*_0mpu7_cl.evt > evtfiles.lis nimpumerge infiles=@evtfiles.lis outfile=merged_cl.evt mpulist=7