Workaround for CERES Products Exhibiting Vdata Error (AVG, ZAVG)
hdftool errors on HDF4 files with Vdata datasets with zero-length names
hdftool incorrectly assumed that any Vdata dataset would have a name with at
least one character. However, zero-length names, while rare, are valid.
For more information, see:
MATLAB bug report
dealing with 0-length Vdata
Mac 32-bit Machines - tested and verified with Matlab R2008b
Mac 64-bit Machines - NOT tested and verified yet
Type "matlabroot" at Matlab command prompt and copy the path.
This directory will be referred to as $matlabroot
Quit Matlab
Go to "$matlabroot/toolbox/matlab/imagesci/private"
Make a backup copy of the file hdfquickinfo.m to hdfquickinfo.m.old
Copy the new hdfquickinfo.m file into the same directory
Restart Matlab
Type "rehash toolboxcache" at Matlab command prompt. The changes are not going to be effective without doing this.
Start hdftool and load the CERES HDF files
Type "matlabroot" at Matlab command prompt and copy the path.
This directory will be referred to as $matlabroot
Quit Matlab
Go to "$matlabroot/toolbox/matlab/imagesci/private"
Make a backup copy of the file hdfquickinfo.m to hdfquickinfo.m.old
Copy the new hdfquickinfo.m file into the same directory
Restart Matlab
Type "rehash toolboxcache" at Matlab command prompt. The changes are not going to be effective without doing this.
Start hdftool and load the CERES HDF files
Workaround for Customers using MATLAB R2007b
Users may experience problems reading CERES (specifically, FLASHFLUX) data
files with MATLAB. The problem with reading CERES data files is a bug in
MATLAB R2007b that has been fixed in R2008a. This issue, which arises only
with certain HDF files, is related to a bug in the HDFREAD function that
cannot read a 'Vdata' dataset that is contained in a 'Vgroup'.
At the MATLAB prompt:
Type the matlabroot command
Record the directory name returned
This directory will be referred to as ${MATLABROOT} in following steps
Quit MATLAB
Change directories into ${MATLABROOT}/toolbox/matlab/imagesci/private
Make a backup copy of the file "hdfquickinfo.m" by copying it to
"hdfquickinfo.m.old"