Main Content

matlab.io.hdfeos.gd.tileInfo

Namespace: matlab.io.hdfeos.gd

Tile size of grid field

Syntax

tileDims = tileInfo(gridID,fieldname)

Description

tileDims = tileInfo(gridID,fieldname) returns the tile dimensions of the field specified by fieldname in the grid specified by gridID. If the field is not tiled, then tileDims is [].

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

Examples

import matlab.io.hdfeos.*
gfid = gd.open('grid.hdf');
gridID = gd.attach(gfid,'PolarGrid');
tileDims = gd.tileInfo(gridID,'pressure');
gd.detach(gridID);
gd.close(gfid);

See Also