Main Content

matlab.io.hdfeos.sw.inqAttrs

Namespace: matlab.io.hdfeos.sw

Names of swath attributes

Syntax

attrlist = inqAttrs(swathID)

Description

attrlist = inqAttrs(swathID) returns the list of swath attribute names. attrlist is a cell array.

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

Examples

import matlab.io.hdfeos.*
swfid = sw.open('swath.hdf');
swathID = sw.attach(swfid,'Example Swath');
attrList = sw.inqAttrs(swathID);
sw.detach(swathID);
sw.close(swfid);