Main Content

matlab.io.hdfeos.sw.compInfo

Namespace: matlab.io.hdfeos.sw

Compression information for field

Syntax

[code,parms] = compInfo(swathID,fieldname)

Description

[code,parms] = compInfo(swathID,fieldname) returns the compression code and compression parameters for a given field. Refer to sw.defComp for a description of various compression schemes and parameters.

This function corresponds to the SWcompinfo function in the HDF-EOS library C API.

Examples

import matlab.io.hdfeos.*
swfid = sw.open('swath.hdf');
swathID = sw.attach(swfid,'Example Swath');
[compCode,parms] = sw.compInfo(swathID,'Spectra');
sw.detach(swathID);
sw.close(swfid);

See Also