Main Content

matlab.io.hdfeos.gd.compInfo

Namespace: matlab.io.hdfeos.gd

Compression information for field

Syntax

[compCode,parms] = compInfo(gridID,fieldname)

Description

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

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

Examples

Get compression information for the ice_temp field.

import matlab.io.hdfeos.*
gfid = gd.open('grid.hdf');
gridID = gd.attach(gfid,'PolarGrid');
[compCode,compParms] = gd.compInfo(gridID,'ice_temp');
gd.detach(gridID);
gd.close(gfid);

See Also