Write spectral library data on a SLZ file

Contents

Syntax:

   SLZwrite(filename, DATA, options);

Description:

   Write a library data structure (SLZ) to disk in HDF5 format.

Inputs:

   filename: The name of the file (including the path) to be written to disk.
   DATA:     The data SLZ data structure containing the spectral library
   options:  Write to disk options these are
             'compression': Level of compression for the HDF5 data (0-9).
                         The default is 9 (maximum compression).
             'datatype': Type for the data written to disk on the HDF5 datasets.
                         The default is 'uint16', but 'uint8' can also be used.

Example:

 Write the library on the SLZ data structure to disk using a medium level of compression
 and unsigned integers as data type.
    options.compression = 5;
    options.datatype = 'uint8';
    SLZwrite('test.slz', SLZ, options);

See also:

    HSZread, HSZwrite, SLZread, FLAread, FLAwrite