Lv1_swift_filter.py
def merging(event_filelist,interm_file,interm_filelist,merged_file):
    """
    Facilitating the merging of the total event file, with individual barycenter-corrected
    event files!

    event_filelist - input text file containing paths to the barycenter-corrected event files
    interm_file - intermediate event file
    interm_filelist - input text file containing paths to the INTERMEDIATE event files.
                      Intermediate means events have been merged, but not the GTI rows
    merged_file - path to the merged file!
    """
    subprocess.run(['ftmerge','@'+event_filelist,interm_file])
    subprocess.run(['ftmerge','@'+interm_filelist,merged_file])

    return

    Facilitating the merging of the total event file, with individual barycenter-corrected
    event files!

    event_filelist - input text file containing paths to the barycenter-corrected event files
    interm_file - intermediate event file
    interm_filelist - input text file containing paths to the INTERMEDIATE event files.
                      Intermediate means events have been merged, but not the GTI rows
    merged_file - path to the merged file!
    
Facilitating the merging of the total event file, with individual barycenter-corrected
event files!

input text file containing paths to the barycenter-corrected event files
interm_file - intermediate event file
interm_filelist - input text file containing paths to the INTERMEDIATE event files.
Intermediate means events have been merged, but not the GTI rows
merged_file - path to the merged file!
Facilitating the merging of the total event file with individual barycenter - corrected event files! input text file containing paths to the barycenter - corrected event files interm_file - intermediate event file interm_filelist - input text file containing paths to the INTERMEDIATE event files . Intermediate means events have been merged but not the GTI rows merged_file - path to the merged file!
def merging(event_filelist,interm_file,interm_filelist,merged_file):
    subprocess.run(['ftmerge','@'+event_filelist,interm_file])
    subprocess.run(['ftmerge','@'+interm_filelist,merged_file])
    return
def merging ( event_filelist , interm_file , interm_filelist , merged_file ) : subprocess . run ( [ 'ftmerge' , '@' + event_filelist , interm_file ] ) subprocess . run ( [ 'ftmerge' , '@' + interm_filelist , merged_file ] ) return
Facilitating the merging of the total event file, with individual barycenter-corrected
event files!
Facilitating the merging of the total event file with individual barycenter - corrected event files!
"""
    Facilitating the merging of the total event file, with individual barycenter-corrected
    event files!

    event_filelist - input text file containing paths to the barycenter-corrected event files
    interm_file - intermediate event file
    interm_filelist - input text file containing paths to the INTERMEDIATE event files.
                      Intermediate means events have been merged, but not the GTI rows
    merged_file - path to the merged file!
    """
event_filelist
interm_file
interm_filelist
merged_file