Main Content

matlab.io.hdfeos.gd

Low-level access to HDF-EOS grid data

Description

To use these MATLAB® functions, you must be familiar with the HDF-EOS library C interface. In most cases, the syntax of the MATLAB function is similar to the syntax of the corresponding HDF-EOS library function. The functions are implemented as the namespace matlab.io.hdfeos.gd. To use this namespace, prefix the function name with a namespace path, or use the import function to add the namespace to the current import list, prior to calling the function, for example,

import matlab.io.hdfeos.*
gfid = gd.open(filename,'read');

Access

matlab.io.hdfeos.gd.attachAttach to existing grid
matlab.io.hdfeos.gd.closeClose HDF-EOS grid file
matlab.io.hdfeos.gd.detachDetach from existing grid
matlab.io.hdfeos.gd.openOpen grid file

Definition

matlab.io.hdfeos.gd.createCreate new grid structure
matlab.io.hdfeos.gd.defCompSet grid field compression
matlab.io.hdfeos.gd.defDimDefine new dimension within grid
matlab.io.hdfeos.gd.defFieldDefine new data field within grid
matlab.io.hdfeos.gd.defOriginDefine origin of pixels in grid
matlab.io.hdfeos.gd.defPixRegDefine pixel registration within grid
matlab.io.hdfeos.gd.defProjDefine grid projection
matlab.io.hdfeos.gd.writeBlkSomOffsetWrite Block SOM offset

Basic I/O

matlab.io.hdfeos.gd.getFillValueFill value for specified field
matlab.io.hdfeos.gd.readAttrRead grid attribute
matlab.io.hdfeos.gd.readFieldRead data from grid field
matlab.io.hdfeos.gd.setFillValueSet fill value for specified field
matlab.io.hdfeos.gd.writeAttrWrite grid attribute
matlab.io.hdfeos.gd.writeFieldWrite data to grid field

Inquiry

matlab.io.hdfeos.gd.compInfoCompression information for field
matlab.io.hdfeos.gd.dimInfoLength of dimension
matlab.io.hdfeos.gd.fieldInfoInformation about data field
matlab.io.hdfeos.gd.gridInfoPosition and size of grid
matlab.io.hdfeos.gd.inqAttrsNames of grid attributes
matlab.io.hdfeos.gd.inqDimsInformation about dimensions defined in grid
matlab.io.hdfeos.gd.inqFieldsInformation about data fields defined in grid
matlab.io.hdfeos.gd.inqGridNames of grids in file
matlab.io.hdfeos.gd.nEntriesNumber of specified objects
matlab.io.hdfeos.gd.originInfoOrigin code
matlab.io.hdfeos.gd.pixRegInfoPixel registration code
matlab.io.hdfeos.gd.projInfoGCTP projection information about grid
matlab.io.hdfeos.gd.readBlkSomOffsetRead Block SOM offset

Subsetting

matlab.io.hdfeos.gd.defBoxRegionDefine region of interest by latitude and longitude
matlab.io.hdfeos.gd.defVrtRegionDefine vertical subset region
matlab.io.hdfeos.gd.extractRegionRead region of interest from field
matlab.io.hdfeos.gd.getPixValuesRead data values for specified pixels
matlab.io.hdfeos.gd.getPixelsPixel rows and columns for latitude/longitude pairs
matlab.io.hdfeos.gd.interpolateBilinear interpolation on a grid field
matlab.io.hdfeos.gd.regionInfoInformation about subsetted region

Tiling

matlab.io.hdfeos.gd.defTileDefine tiling parameters
matlab.io.hdfeos.gd.readTileRead single tile of data from field
matlab.io.hdfeos.gd.setTileCompSet tiling and compression for field with fill value
matlab.io.hdfeos.gd.tileInfoTile size of grid field
matlab.io.hdfeos.gd.writeTileWrite tile to field

Utility

matlab.io.hdfeos.gd.ij2llConvert row and column space to latitude and longitude
matlab.io.hdfeos.gd.ll2ijConvert latitude and longitude to row and column space
matlab.io.hdfeos.gd.sphereCodeToNameName corresponding to GCTP sphere code
matlab.io.hdfeos.gd.sphereNameToCodeNumeric GCTP code corresponding to sphere name