def METHOD_NAME(data, compress, scale, offset, dtype, fname):
    '''Compress and save numpy array to file
    Parameters
    ----------
    data : numpy array
    compress : bool
    scale : float
    offset : float
    dtype : numpy dtype
    fname : string
    Note:
    -----
    Data is always written in ‘C’ order, independent of the order of d.
    '''
    if compress:
        d = utilities.compress_data(data, scale, offset, dtype)
    else:
        d = data
    logging.info(
        "Data is always written in ‘C’ order, independent of the order of d.")
    d.tofile(fname)
    # return shape, fortran order, dtype
    return d.shape, False, d.dtype.str