Main Content

matlab.io.hdfeos.gd.getFillValue

Namespace: matlab.io.hdfeos.gd

Fill value for specified field

Syntax

fillvalue = getFillValue(gridID,fieldname)

Description

fillvalue = getFillValue(gridID,fieldname) retrieves the fill value for the specified field.

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

Examples

Return the fill value for the 'ice_temp' field in the 'PolarGrid' grid.

import matlab.io.hdfeos.*
gfid = gd.open('grid.hdf');
gridID = gd.attach(gfid,'PolarGrid');
fillvalue = gd.getFillValue(gridID,'ice_temp');
gd.detach(gridID);
gd.close(gfid);