Main Content

matlab.io.hdfeos.gd.inqDims

Namespace: matlab.io.hdfeos.gd

Information about dimensions defined in grid

Syntax

[dimnames,dimlens] = inqDims(gridID)

Description

[dimnames,dimlens] = inqDims(gridID) returns the names of the dimensions dimnames in a cell array and their respective lengths dimlens. This does not include the grid extent dimensions XDim and YDim.

This function corresponds to the GDinqdims function in the HDF-EOS library C API, but because MATLAB® uses FORTRAN-style ordering, the dimnames and dimlens parameters are reversed with respect to the C library API.

Examples

import matlab.io.hdfeos.*
gfid = gd.open('grid.hdf','read');
gridID = gd.attach(gfid,'PolarGrid');
[dims,dimlens] = gd.inqDims(gridID);
gd.detach(gridID);
gd.close(gfid);

See Also