

def main(filename, fname_out=''):
    if (not os.path.isfile(filename)):
        console_log('File {} does not exist.'.format(filename))
    if (fname_out != ''):
        (path_out, file_out, ext_out) = sct.extract_fname(fname_out)
        basename = (path_out + file_out)
    else:
        basename = os.path.basename(filename)
    headername = '{}.header'.format(basename)
    rawname = '{}.raw'.format(basename)
    console_log('Processing file: {}'.format(filename))
    console_log('Creating header file: {}'.format(headername))
    make_header(filename, headername)
    console_log('Creating raw data file: {}'.format(rawname))
    make_raw(filename, rawname)

dataset/ETHPy150Open neuropoly/spinalcordtoolbox/scripts/isct_minc2volume-viewer.py main/original