def save_arr(arr, dir, fname):
    "\n    Saves an array in 'tif' format file.\n    \n    Parameters\n    ----------\n    arr : ndarray\n        an array to save\n    dir : str\n        directory to save the file to\n    fname : str\n        file name\n\n    Returns\n    -------\n    nothing\n    "
    if (dir is not None):
        full_name = os.path.join(dir, fname)
    else:
        full_name = fname
    tif.imsave(full_name, arr.transpose().astype(np.float32))
Saves an array in 'tif' format file.

Parameters
----------
arr : ndarray
    an array to save
dir : str
    directory to save the file to
fname : str
    file name

Returns
-------
nothing
def save_arr(arr, dir, fname):
    "\n    Saves an array in 'tif' format file.\n    \n    Parameters\n    ----------\n    arr : ndarray\n        an array to save\n    dir : str\n        directory to save the file to\n    fname : str\n        file name\n\n    Returns\n    -------\n    nothing\n    "
    if (dir is not None):
        full_name = os.path.join(dir, fname)
    else:
        full_name = fname
    tif.imsave(full_name, arr.transpose().astype(np.float32))