def METHOD_NAME(self):
    '''Write data to disk'''
    if not os.path.isdir(self.dir_name):
        os.mkdir(self.dir_name)
    fname = os.path.join(self.dir_name, self.file_name + '.raw')
    # write to disk
    header = \
        compress_and_save(self.data_container.as_array(), self.compress, self.scale, self.offset, self.dtype, fname)
    shape = header[0]
    fortran_order = header[1]
    read_dtype = header[2]
    # save information about the file we just saved
    config = configparser.ConfigParser()
    config['MINIMAL INFO'] = {
        'file_name': os.path.basename(fname),
        'data_type': read_dtype,
        'shape': shape,
        # Data is always written in ‘C’ order, independent of the order of d.
        'is_fortran': fortran_order
    }
    if self.compress:
        config['COMPRESSION'] = {
            'scale': self.scale,
            'offset': self.offset,
        }
    logging.info("Saving to {}".format(self.file_name))
    logging.info(str(config))
    # write the configuration to an ini file
    with open(os.path.join(self.dir_name, self.file_name + '.ini'),
              'w') as configfile:
        config.METHOD_NAME(configfile)