Main Content

matlab.io.hdfeos.sw.inqGeoFields

Namespace: matlab.io.hdfeos.sw

Information about geolocation fields

Syntax

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

Description

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

This function corresponds to the SWinqgeofields 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,datatypes] = sw.inqGeoFields(swathID);
sw.detach(swathID);
sw.close(swfid);