Why do I receive an error from BUILDHDFTREE when I attempt to read my HDF-file into MATLAB?

1 view (last 30 days)
I am using HDFTOOL to read in an HDF-file. However, I receive the following error:
??? One or more output arguments not assigned during call to 'd:/applications/matlab6p5p1/toolbox/matlab/iofun/private/buildhdftree (getNumProjAttrs)'.
Error in ==> D:\Applications\matlab6p5p1\toolbox\matlab\iofun\private\buildHDFTree.m (createGridNode)
On line 189 ==> n = getNumProjAttrs(info.Projection.ProjCode,info.Projection.ProjParam);
Error in ==> D:\Applications\matlab6p5p1\toolbox\matlab\iofun\private\buildHDFTree.m (buildtree)
On line 87 ==> Gridnode = createGridNode(info.Grid(j));
Error in ==> D:\Applications\matlab6p5p1\toolbox\matlab\iofun\private\buildHDFTree.m
On line 25 ==> hdfEOSObjects = buildtree(info,hdfEOSObjects);
Error in ==> D:\Applications\matlab6p5p1\toolbox\matlab\iofun\hdftool.m
On line 68 ==> [HDFObjects, HDFEOSObjects] = buildHDFTree(filename);

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
This error occurs when the Projection Code parameter is an unsupported type. In the above example, the Projection Code was listed as "unknown." To work around this, modify your HDF-files so that they do not have a Projection Code of "unknown."

More Answers (0)

Products


Release

R13SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!