Go to file
Pedro Vicente Nunes 6b41367ac6 [svn-r14892] RFC display compression ratio in h5dump
Here's the current behavior of h5dump regarding the printing of the dataset creation property list

For example

./h5dump -H -p -d filters

HDF5 "tfilters.h5" {
DATASET "deflate" {
   DATATYPE  H5T_STD_I32LE
   DATASPACE  SIMPLE { ( 20, 10 ) / ( 20, 10 ) }
   STORAGE_LAYOUT {
      CHUNKED ( 10, 5 )
      SIZE 385 
    }
   FILTERS {
      COMPRESSION DEFLATE { LEVEL 9 }
   }
   FILLVALUE {
      FILL_TIME H5D_FILL_TIME_IFSET
      VALUE  0
   }
   ALLOCATION_TIME {
      H5D_ALLOC_TIME_INCR
   }
}
}


The proposed behavior is to add this information after SIZE

SIZE 385 (51.9%COMPRESSION)

That percentage is obtained trough

Per = (b-a) / a

Where a = theoretical size obtained by multiplying datum size times number of elements
b =  size obtained with H5Dget_storage_size

The final print would look like

HDF5 "tfilters.h5" {
DATASET "deflate" {
   DATATYPE  H5T_STD_I32LE
   DATASPACE  SIMPLE { ( 20, 10 ) / ( 20, 10 ) }
   STORAGE_LAYOUT {
      CHUNKED ( 10, 5 )
      SIZE 385 (51.9%COMPRESSION)
    }
   FILTERS {
      COMPRESSION DEFLATE { LEVEL 9 }
   }
   FILLVALUE {
      FILL_TIME H5D_FILL_TIME_IFSET
      VALUE  0
   }
   ALLOCATION_TIME {
      H5D_ALLOC_TIME_INCR
   }
}
}

tested: windows, linux, solaris
2008-04-29 13:02:05 -05:00
bin [svn-r14713] Increase lines at end of output checked to determine completion from 2 to 5. 2008-03-08 20:22:23 -05:00
c++ [svn-r14850] Purpose: Fixed bugs 2008-04-20 17:06:37 -05:00
config [svn-r14864] Snapshot version 1.9 release 4 2008-04-27 06:18:36 -05:00
examples [svn-r14420] Description: 2008-01-15 16:10:42 -05:00
fortran [svn-r14420] Description: 2008-01-15 16:10:42 -05:00
hl [svn-r14598] 1050 (B2) make H5TBdelete_record call H5Dset_extent and parameter checking. Removed #ifdefs regarding possible un-commenting of H5Dset_extent call in H5TBdelete_record. DONE NOW for 1.8, done already FOR 1.6 2008-02-18 11:12:55 -05:00
perform [svn-r14831] Revise file of the serial benchmarking tool. 2008-04-12 18:08:08 -05:00
release_docs [svn-r14864] Snapshot version 1.9 release 4 2008-04-27 06:18:36 -05:00
src [svn-r14864] Snapshot version 1.9 release 4 2008-04-27 06:18:36 -05:00
test [svn-r14860] Description: 2008-04-24 10:03:41 -05:00
testpar [svn-r14442] Modified metadata cache to adapt more quickly to the insertion of a 2008-01-18 12:52:12 -05:00
tools [svn-r14892] RFC display compression ratio in h5dump 2008-04-29 13:02:05 -05:00
vms [svn-r14394] Maintenance on VMS: cleaned up the scripts to avoid the annoying warning messages 2008-01-10 12:59:00 -05:00
windows [svn-r14867] Purpose: Add new source files to Windows projects 2008-04-28 09:04:29 -05:00
windows_vnet [svn-r14867] Purpose: Add new source files to Windows projects 2008-04-28 09:04:29 -05:00
.autom4te.cfg
.h5chkright.ini
aclocal.m4
acsite.m4
configure [svn-r14864] Snapshot version 1.9 release 4 2008-04-27 06:18:36 -05:00
configure.in [svn-r14864] Snapshot version 1.9 release 4 2008-04-27 06:18:36 -05:00
COPYING [svn-r14375] Update copyright to 2008. 2008-01-04 14:03:16 -05:00
Makefile.am
Makefile.dist
Makefile.in [svn-r14402] Description: 2008-01-13 00:37:00 -05:00
MANIFEST [svn-r14860] Description: 2008-04-24 10:03:41 -05:00
README.txt [svn-r14864] Snapshot version 1.9 release 4 2008-04-27 06:18:36 -05:00

HDF5 version 1.9.5 currently under development
Please refer to the release_docs/INSTALL file for installation instructions.
------------------------------------------------------------------------------

This release is almost fully functional for the entire API defined in the
documentation, see the RELEASE.txt file in the release_docs directory for information
specific to this release of the library.  The INSTALL file contains
instructions on compiling and installing the library.  The INSTALL_parallel
file contains instructions on installing the parallel version of the
library.  The INSTALL* files can be found in the release_docs/ directory.

Documentation for this snapshot can be found at the following URL:
http://www.hdfgroup.uiuc.edu/HDF5/doc_dev_snapshot/H5_dev/

Four mailing lists are currently set up for use with the HDF5
library.

   news         - For announcements of HDF5 related developments,
		  not a discussion list.

   hdf-forum    - For general discussion of the HDF5 library with
		  other users.

   hdf5dev      - For discussion of the HDF5 library development
		  with developers and other interested parties.

To subscribe to a list, send mail to "<list>-subscribe@hdfgroup.org".
where <list> is the name of the list.
E.g., mail hdf5-subscribe@hdfgroup.org

Messages to be sent to the list should be sent to "<list>@hdfgroup.org".

Periodic code snapshots are provided at the following URL:
    ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf5/snapshots
Please read the README.txt file in that directory before working with a library
snapshot.

The HDF5 website is located at http://hdfgroup.org/HDF5/

Bugs should be reported to help@hdfgroup.org.