Write an HSZ data sctructure to disk.

Contents

Syntax

   HSZwrite(filename, HSZ);
   HSZwrite(filename, HSZ, options);

Description

 
   HSZwrite exports data in a HSZ struct into a compressed HDF5 format with all the variables 
   recovered by the Scyllarus routine.

Inputs:

   filename: The name of the file (including the path) to be written to disk.
   HSZ:      The data structure delivered by the Scyllarus routine.
   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

See also:

 
    FLAwrite, FLAread, HSZread, SLZwrite, SLZread

Example:

 Write an HSZ file to disk using a medium level of compression and
 8-bit unsigned integers as data type.
    options.compression = 5;
    options.datatype = 'uint8';
    HSZwrite('test.hsz', HSPipeline);