def find_files(fdir, pattern='D*.r'):
    files = glob.glob(os.path.join(fdir, pattern))
    files.sort()
    return np.asarray(files)
def find_files(fdir, pattern='D*.r'):
    files = glob.glob(os.path.join(fdir, pattern))
    files.sort()
    return np.asarray(files)