def METHOD_NAME(cname,f,verbose=False,Mode="Imaging+Misc",operations=['download','untar']):
    '''
    Download required data from field cname into location f
    '''
    #tarfiles=['images.tar','uv.tar']
    for macaroon, directory in [('maca_sksp_tape_DDF.conf','archive/'),('maca_sksp_tape_DDF_readonly.conf','other/')]:
        try:
            rc=RClone(macaroon,debug=True)
        except RuntimeError:
            print('Macaroon',macaroon,'does not exist!')
            continue
        rc.get_remote()
        files=rc.get_files(directory+cname)
        print(files)
        tarfiles=None
        if files:
            if Mode=="Imaging":
                tarfiles=[fl for fl in files if 'images' in fl or 'uv' in fl]
            elif Mode=="Misc":
                tarfiles=[fl for fl in files if 'misc.tar'==fl]
            elif Mode=="Imaging+Misc":
                tarfiles=[fl for fl in files if 'images' in fl or 'uv' in fl or 'misc.tar'==fl or "stokes_small.tar"==fl]
        if 'download' in operations and tarfiles is not None:
            d=rc.multicopy(rc.remote+directory+cname,tarfiles,f)
            if d['err'] or d['code']!=0:
                continue # try next source
        if tarfiles is not None:
            break # out of loop to unpack
    else:
        raise RuntimeError('Failed to download from any source')
    #tarfiles = glob.glob('*tar')
    if 'untar' in operations and tarfiles is not None:
        untar(f,tarfiles,verbose=verbose)