summaryrefslogtreecommitdiffstats
path: root/tools/h5toh4.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r1355] Bug fix: compiler complained about errno not defined. That wasAlbert Cheng1999-06-161-7/+4
| | | | | | | because it is predefined in <errno.h>, not <sys/errno.h> which contains the system error codes. Fixed and tested in IRIX6.5 (also got rid of the few K&R C-style function declaration statements.)
* [svn-r1347] Robb Matzke1999-06-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes since 19990614 ---------------------- ./src/H5D.c Changed the way the plist_id argument of H5Dvlen_reclaim() is checked so that it's more specific and works when debugging is turned off. ./src/H5TB.c Removed an unused local variable. ./test/fillval.c ./test/h5test.c ./test/h5test.h Changed `basename' variables to `base_name' to prevent a warning about a global with the same name. ./tools/h5ls.c Changed `indent' variables to `ind' to prevent a warning about a global with the same name. ./tools/h5toh4.c Commented out declarations for things that normally appear in system header files since our definitions might be incompatible with the system and prevent h5toh4 from compiling. If all looks good on other systems then we can permanently remove these declarations...
* [svn-r1151] Changes since 19990318Robb Matzke1999-03-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ---------------------- ./Makefile.in ./configure.in ./configure [REGENERATED] ./src/H5config.h.in [REGENERATED] ./config/commence.in ./config/conclude.in ./config/dec-osf4.x ./config/depend.in ./config/freebsd ./config/linux-gnu ./config/linux-gnulibc1 ./config/linux-gnulibc2 ./config/solaris2.x ./examples/Makefile.in ./src/Makefile.in ./test/Makefile.in ./testpar/Makefile.in ./tools/Makefile.in ./tools/testh5dump.sh Changes that allow hdf5 to be configured and compiled in a directory other than the source directory. This is especially useful if you want to concurrently compile with different compilers and/or compile flags, or if the hdf5 source is on read-only media like a CDROM. The changes were surprisingly easy ;-) Here's what you can do now... $ mkdir /tmp/build1 # or something $ cd /tmp/build1 $ /cdrom/hdf5/configure # where ever the source is $ make Paul, you'll have to change the testh5toh4 script similar to the way I changed testh5dump.sh. I started working on it but then gave up because of a number of problems: (1) I had to comment out all the tests that let h5toh4 choose the output file name because it always tried to put the output file in the same directory as the input file, (2) if path names are used during the h4 dump then they interfere with the diff. The test works fine when run in the source directory, but try this instead: $ gunzip <hdf5-1.1.67.tar.gz |tar xf - $ chmod -R ugo-w hdf5-1.1.67 $ mkdir build $ cd build $ ../hdf5-1.1.67/configure $ make check Dan, I didn't modify the pablo/Makefile.in because I have no way to test it. I think all you need to do is add a couple lines before the @COMMENCE@ line and add a couple search directories for header files. Anyway, it seems like almost an exact duplicate of the src/Makefile.in, so it shouldn't be a problem... ./Makefile.in Removes a few more temporary files during make clean and distclean. ./configure.in I fixed the creation of the time-stamp files so that the initial make doesn't have to regenerated all the makefiles (only GNU make users will see any change). ./src/H5R.c Changed a return type from `intn' to `int' for an API function. ./src/H5detect.c Added the volatile qualifier to a couple more variables. ./tools/h5tools.c Fixed a compiler warning about an unused local. ./tools/h5toh4.c Initialized `optind' to 1 because it's zero on my system. It should always be one on a unix system. ./tools/testh5toh4 Redirected "broken pipe" messages to /dev/null so outut is formatted correctly.
* [svn-r1074] Purpose:Paul Harten1999-02-171-9/+9
| | | | | | | | | | | | | | | Bug Fixes Problem: Warnings given during compilation on some machines. Solution: Take care of various Compiler Warnings such as: 1) uninitialized variables; 2) unreachable statements. Platforms tested: Solaris2.5, Linux, Irix6.5
* [svn-r1059] Purpose:Paul Harten1999-02-051-7/+30
| | | | | | | | | | | | | | | Bug fix Problem: Did a H5get_type() on a dataset of committed type without doing the associated H5Tclose(). This caused an abort to occur during the atexit() phase of the h5toh4 converter. Solution: Execute the associated H5Tclose(). Platform tested: Solaris2.5
* [svn-r1044] Purpose:Paul Harten1999-02-011-9/+341
| | | | | | | | | | | | | New feature Solution: Changes to support conversion of 1-dimensional HDF5 datasets of H5T_STRING type into HDF4 Vdatas. Also, support conversion of HDF5 attribute of string type into HDF4 attribute of INT8 type. Dimensional information is lost. Platform tested: Solaris2.5
* [svn-r1021] Purpose:Paul Harten1999-01-121-15/+31
| | | | | | | | | | | | | | | | Bug fix Problem: Segmentation fault when attempting to free NULL or uninitialized pointers. Problem noticed on Linux and HPUX10.20 platforms. Solution: Initialialize the pointer to NULL. Execute the "free" statement upon the condition that the pointer is not equal to NULL (i.e. after the allocation has taken place.) Platform tested: Linux, HPUX10.20, Solaris2.5
* [svn-r989] Purpose:Paul Harten1998-12-221-2/+22
| | | | | | | | | | Bug fix Solution: Have warning messages go to stderr instead of stdout. Platform tested: Solaris2.5
* [svn-r978] Purpose: Bug fixesPaul Harten1998-12-211-239/+766
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problems: There were three separate bugs in the h5toh4 converter worked on. They were: 1) When a loop was detected, the H4 file was missing references to paths which were available in the H5 file. 2) When an H4 SDS or Vdata was created from a H5 dataset, the H4 object was referenced in the root group, instead of the correct Vgroup. 3) The FIRST path taken to an object for the h5toh4 conversion could not involve a SOFTLINK. Solutions: The bug fixes were: 1) All of the associated references to available paths which occur in the H5 file, now appear in the H4 file. 2) After an H4 SDS or Vdata is created from a H5 dataset, the H4 object is tag/ref'ed in the appropriate Vgroup. 3) The FIRST path taken to an H5 object for the H5toh4 conversion may involve a HARDLINK, a SOFTLINK, or neither. The same is true of any additional paths to the same object. Platform tested: Solaris2.5
* [svn-r958] Purpose:Paul Harten1998-12-011-202/+207
| | | | | | | | | | | New feature Solution: Testing of Extendable Dataset support in h5toh4 converter when extendable dimension is first dimension. Platform tested: Solaris2.5
* [svn-r952] Changes since 19981125Robb Matzke1998-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ---------------------- ./doc/html/Datatypes.html ./src/H5.c ./src/H5T.c ./src/H5Tconv.c ./src/H5Tpkg.h ./src/H5Tpublic.h ./src/H5detect.c ./test/chunk.c ./test/dtypes.c ./test/h5test.c ./test/mtime.c ./test/tattr.c ./test/th5s.c ./tools/h5dump.c ./tools/h5dumputil.c ./tools/h5import.c ./tools/h5ls.c ./tools/h5toh4.c ./tools/h5tools.c Renamed the old H5T_NATIVE_CHAR type to H5T_NATIVE_SCHAR to denote that it is always signed. Added a new H5T_NATIVE_CHAR type which has the same range, representation, and behavior as either H5T_NATIVE_SCHAR or H5T_NATIVE_UCHAR depending on the compiler and its command-line switches for the application source file which references H5T_NATIVE_CHAR. If source files are compiled with different switches then each source file will resolve H5T_NATIVE_CHAR appropriately so it matches the C type `char' in that source file. NOTE: THERE ARE OTHER DOCUMENTATION FILES THAT I DIDN'T CHANGE BECAUSE I CAN'T MODIFY THE SOURCE. ./test/extend.c Swapped two lines to prevent diagnostic messages from messing up the formatted output.
* [svn-r942] PURPOSE:Paul Harten1998-11-211-0/+1407
New Feature SOLUTION: h5toh4 is an H5 utility which converts HDF5 files into HDF4 files. It converts only those H5 objects which have have mappings into H4 objects. Some H5 objects that may be converted into H4 objects are: 1) H5 group objects may be converted into H4 Vgroup objects. 2) H5 dataset objects of integer or floating point datatype may be converted into H4 SDS objects. 3) H5 dataset objects of compound datatype and rank 1 may be converted into H4 Vdata objects. Field members of the compound datatype are constrained to be single dimensional. Platforms tested: Solaris2.5, HP10.20