I am trying to dump a data set from one of my HDF5 files. Here is the output 
from my command line invocation:

503:[mjackson@mine:~]$ h5dump -d /VoxelDataContainer/CELL_DATA/GrainIds -o 
/Users/Shared/Data/Ang_Data/Small_IN100_Output/GrainIds.bin 
/Users/Shared/Data/Ang_Data/Small_IN100_Output/Small_IN100.dream3d 
HDF5 "/Users/Shared/Data/Ang_Data/Small_IN100_Output/Small_IN100.dream3d" {
DATASET "/VoxelDataContainer/CELL_DATA/GrainIds" {
   DATATYPE  H5T_STD_I32LE
   DATASPACE  SIMPLE { ( 4444713 ) / ( 4444713 ) }
   DATA {
   }
   ATTRIBUTE "NumComponents" {
      DATATYPE  H5T_STD_I32LE
      DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      DATA {
      (0): 1
      }
   }
   ATTRIBUTE "ObjectType" {
      DATATYPE  H5T_STRING {
         STRSIZE 19;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
      DATA {
      (0): "DataArray<int32_t>"
      }
   }
}
}


Looking at the output file "GrainIds.bin" the file size is registered as 
26,800,344 bytes which is confusing because if we take the DATASPACE from above 
and multiply by 4 (number of bytes in H5T_STD_I32LE) I get 17,778,852 bytes. 
This is on hdf5-1.8.10-patch1, compiled on OS X 10.8.2 using the latest XCode 
installation from Apple. 

Thoughts?
___________________________________________________________
Mike Jackson                    Principal Software Engineer
BlueQuartz Software                            Dayton, Ohio
[email protected]              www.bluequartz.net


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to