Main Content

matlab.io.hdfeos.sw.inqDataFields

Namespace: matlab.io.hdfeos.sw

Information about geolocation fields

Syntax

[fields,rank,datatype] = inqDataFields(swathID)

Description

[fields,rank,datatype] = inqDataFields(swathID) returns the list of geolocation field names, the rank of each field, and the data type of each field.

This function corresponds to the SWinqdatafields function in the HDF-EOS library C API, but because MATLAB® uses FORTRAN-style ordering, the fields parameter is reversed with respect to the C library API.

Examples

import matlab.io.hdfeos.*
swfid = sw.open('swath.hdf');
swathID = sw.attach(swfid,'Example Swath');
[fields,rank,datatype] = sw.inqDataFields(swathID);
sw.detach(swathID);
sw.close(swfid);