Commit Graph

476 Commits

Author SHA1 Message Date
MuQun Yang
1578b26103 [svn-r3418]
Purpose:
    add contents to compile h4toh5test.c
Description:

solution:
    handled similar as h5dumptst.c
Platforms tested:
    Linux(eirene), sun 5.7(arabica)
2001-02-15 22:42:03 -05:00
MuQun Yang
e8c3d178ac [svn-r3417]
Purpose:
    source code to generate hdf files for h4toh5 converter
Description:
Solution:
     see the comments of the code. this file is handled similar with h5dumptst.c
Platforms tested:
     eirene, arabica
2001-02-15 22:38:57 -05:00
MuQun Yang
c1d6c01959 [svn-r3416]
Purpose:
     bug fix
Description:
    update a few constant
Solution:
Platforms tested:
     eirene and arabica
2001-02-15 22:36:35 -05:00
MuQun Yang
5dc419551e [svn-r3415]
Purpose:
    bug fix
Description:
   two bugs: 1. different order of conventions of sds and image in hdf4 is
                 considered at h4toh5image.c file.
                  add palette colormodel attribute and correct names of
                   a few attributes. see detail at:
               http://hdf.ncsa.uiuc.edu/HDF5/H5Image/ImageDetails.htm
              2. convert hdf internal vdata structure(chunking table)
                 into a new hdf5 dataset.

Solution:
        1. change h5 data space order for image.
          h5dims[0] = edge[1]-edge[0];
          h5dims[1] = start[1]-start[0];
        2. at h4toh5main.c, check the vdata class name and if the
           first few characters match with HDF_CHK_TBL; ignore converting
           this vdata.
        3. add a few attributes at h4toh5pal.c

platforms:

       linux and sun 5.7(arabica)




    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2001-02-15 22:35:37 -05:00
Bill Wendling
a7c25153bc [svn-r3414] Purpose:
Update
Description:
    Updated the code so that error messages are sent to stdout instead of
    to /dev/null. Albert says that it was supposed to be doing this
    anyway, so...

    Also did some formatting changes.
Solution:
    Changed the "2>/dev/null" to "2>&1"
Platforms tested:
    Linux
2001-02-15 14:33:19 -05:00
Bill Wendling
24320f0df1 [svn-r3413] Purpose:
Update
Description:
    Updated the result files to be consistent with the new error
    messaging schema that h5dump uses.
Platforms tested:
    Linux
2001-02-15 14:32:38 -05:00
Bill Wendling
71090d2e9a [svn-r3412] Purpose:
Code cleanup
Description:
    Cleaned the code up a bit getting rid of some warnings about "const"
    being lost from passing a const char * to a function, etc.

    Also force the error messages to stderr instead of simply printing
    them to stdout. The same behaviour can be achieved by running h5dump
    like:

            h5dump ... 2>&1

    however, the error reporting before this change wasn't consistent in
    its use. I also made some of the error messages clearer (giving names
    of the failed types and, when there's an "internal error", reporting
    the line number the error occurred on so that we can debug).
Solution:
    Converted to "fflush(stdout); fprintf(stderr,...);" for all error
    reportings.
Platforms tested:
    Linux
2001-02-15 14:31:55 -05:00
Robert E. McGrath
d12fa9b5c5 [svn-r3408] Purpose:
Adding new feature.
Description:
  XML output option to h5dump
Platforms tested:
  SPARC Solaris 2.7, Irix6.5 (32bit), Linux, Win98
2001-02-14 15:48:22 -05:00
Quincey Koziol
7921315a33 [svn-r3304] Purpose:
Code update
Description:
    Remove ragged array code & tests from library before release.
Platforms tested:
    FreeBSD 4.2 (hawkwind)
2001-01-18 18:30:23 -05:00
Albert Cheng
29fbb330b0 [svn-r3287] Purpose:
Improvement
Description:
    The mkdir testfiles and the testing of h5dump have their stderr
    redirected to /dev/null.  Thus no way to see error messages when happen.
    Removed the redirection
Platforms tested:
    Eirene (linux).
2001-01-12 17:46:48 -05:00
Albert Cheng
b84c92e07d [svn-r3284] Purpose:
document
Description:
    Added comments in how to use the program and instructions
    that the corresponding may need updates if new batch of binary
    files are created.
Platforms tested:
    Eye-balled only.  (Just a few lines of comments.)
2001-01-12 15:24:58 -05:00
MuQun Yang
51fd87c344 [svn-r3276]
Purpose:
    windows bug fix
Description:
     need extra header files for windows
Solution:
     add #ifdef win32 #endif loops
Platforms tested:
     windows 2000, confirmed at eirene
2001-01-12 01:48:36 -05:00
Bill Wendling
dc9c387ba2 [svn-r3266] Purpose:
Name change
Description:
    Changed the names of the testh5toh4 and testh4toh5 scripts to the
    "canonical" form -- testh4toh5.sh and testh5toh4.sh.
Platforms tested:
    Linux
2001-01-10 16:56:47 -05:00
Quincey Koziol
c5c4e70311 [svn-r3265] Purpose:
Clean up warnings.
Description:
    Cleaned up a few compiler warnings.
Platforms tested:
    FreeBSD 4.2 (hawkwind)
2001-01-10 16:46:38 -05:00
Bill Wendling
8e20f98805 [svn-r3264] Purpose:
Bug fix
Description:
    I dropped the boat on this one. I assigned prefix to NULL after it'd
    been allocated...My bad.
Solution:
    Stopped doing that.
Platforms tested:
    Linux
2001-01-10 16:24:54 -05:00
Bill Wendling
2ae44ebdba [svn-r3263] Purpose:
Code cleanup
Description:
    Changed so that the streaming stuff is inserted if > 1.2 version.
    Also modified init_prefix function so that it's sane.
Platforms tested:
    Linux
2001-01-10 16:24:07 -05:00
Bill Wendling
b8085ef1ee [svn-r3262] Purpose:
Annoying code cleanup
Description:
    This code could all be on one line, but wasn't for some reason.
Solution:
    Made it into one printf() call.
Platforms tested:
    Linux
2001-01-10 16:07:26 -05:00
Bill Wendling
9078455217 [svn-r3261] Purpose:
Code Cleanup
Description:
    Cleaned up where structures were. Added comments to new functions.
    Removed strcpy(prefix, "") and made it prefix = NULL; since that's
    what it's doing anyway.
Platforms tested:
    Linux
2001-01-10 13:38:48 -05:00
Quincey Koziol
9b4ce45106 [svn-r3257] Purpose:
Bug fix
Description:
    Compiler on sangamon (HP/UX 10.20) is having problems with the statement
    "#ifdef 0".
Solution:
    Changed statement to "#if 0" instead.
Platforms tested:
    Eyeballed...
2001-01-10 09:57:39 -05:00
Quincey Koziol
35bc545296 [svn-r3252] Purpose:
Code cleanup.
Description:
    Fixed _lots_ (I mean _tons_) of warnings spit out by the gcc with the
    extra warnings.  Including a few show-stoppers for compression on IRIX
    machines.
Solution:
    Changed lots of variables' types to more sensible and consistent types,
    more range-checking, more variable typecasts, etc.
Platforms tested:
    FreeBSD 4.2 (hawkwind), IRIX64-64 (modi4)
2001-01-09 16:22:30 -05:00
Bill Wendling
2f51e3c16a [svn-r3249] Purpose:
New Feature
Description:
    Changed the command line flags in the h5dumper so that they accept
    both short and long flags. The flag syntax for some have changed
    (I.e., object ids are no longer -v but -i and -header is now -H or
    --header, etc.) A new function is added called get_options which can
    be used for all other tools as well.

    Had to change these output files to accept the correct flags.
Platforms tested:
    Linux
2001-01-09 15:04:47 -05:00
Bill Wendling
d2c9b6d8d9 [svn-r3248] Purpose:
New Feature
Description:
    Changed the command line flags in the h5dumper so that they accept
    both short and long flags. The flag syntax for some have changed
    (I.e., object ids are no longer -v but -i and -header is now -H or
    --header, etc.) A new function is added called get_options which can
    be used for all other tools as well.
Platforms tested:
    Linux
2001-01-09 15:04:29 -05:00
Quincey Koziol
b5809e0780 [svn-r3230] Purpose:
Extra testing
Description:
    Added tests to dump empty datasets to the h5dump and h5ls testing.
Platforms tested:
    FreeBSD 4.2 (hawkwind)
2001-01-03 14:20:18 -05:00
Quincey Koziol
cf4ff99bdf [svn-r3229] Purpose:
Bug fix
Description:
    Close several potential resource leaks in failure conditions.
Platforms tested:
    FreeBSD 4.2 (hawkwind)
2001-01-03 13:33:56 -05:00
Robb Matzke
a53fbbc045 [svn-r3227] ./hdf5/tools/h5ls.c
2000-12-28 12:03:41 Robb Matzke  <matzke@llnl.gov>
	* main: If the file cannot be opened then immediately try the next
	   argument. This prevents multiple error messages from
	   the same file.
2000-12-29 13:35:32 -05:00
MuQun Yang
5c28e0edb9 [svn-r3194]
Purpose:
     bug fix
Description:
    1. zeroing out memory before using the memory buffer
    2. before wrongly using Vquerysize API of HDF4 to obtain
       the real file size of record type in HDF4. Actually Vquerysize will
       return the real data type size in Memory. That will cause the object
       reference difference on Cray which file size is not equal memory size.

Solution:
    1. using h4toh5ZeroingMemory function to zero out memory.
    2. calcuating the real file size of vdata record in the converter instead of
       using Vquerysize HDF4 API.
Platforms tested:
    Cray J90, arabica, eirene
2000-12-22 14:07:45 -05:00
MuQun Yang
7332a1934e [svn-r3193]
Purpose:
     bug fix
Description:
    Zeroing out all memory buffer before it is being used.

Solution:
    using h4toh5ZeroMemory function
Platforms tested:
    linux(eirene), arabica(sun 2.7)
2000-12-22 14:03:00 -05:00
Quincey Koziol
5979a990c0 [svn-r3139] Purpose:
Bug Fix
Description:
    Re-generated h5ls output which contained floating point numbers.
Platforms tested:
    FreeBSD 4.2 (hawkwind)
2000-12-14 11:35:41 -05:00
MuQun Yang
375f018aa1 [svn-r3137]
Purpose:
   kind of bug fix for windows
Description:
   Use HDfree() instead of free() so that it will not cause exceptions on windows dll
Solution:
Platforms tested:
    windows NT 4.0 and 5.0, confirmed at Linux box.
2000-12-14 10:55:51 -05:00
Quincey Koziol
d07377a897 [svn-r3136] Purpose:
Bug Fix
Description:
    Moved check for float type ahead of double type, since they are the same
    size on Crays..
Platforms tested:
    Cray J90 (killeen)
2000-12-13 19:54:07 -05:00
Quincey Koziol
cd7098f1b6 [svn-r3135] Purpose:
Bug Fix
Description:
    Dataspace wasn't being freed...
Platforms tested:
    Cray J90 (killeen)
2000-12-13 19:51:48 -05:00
Quincey Koziol
496207675d [svn-r3134] Purpose:
Bug Fix
Description:
    Floating point format string is incorrect.
Solution:
    Changed "g" -> "%g"
Platforms tested:
    Cray J90 (killeen)
2000-12-13 19:36:09 -05:00
Quincey Koziol
3dcc29ec41 [svn-r3113] Purpose:
Bug Fix
Description:
    Stumbled across a problem when working on the J90 h5dump problem where
    I noticed that some of the output for named compound datatypes wasn't being
    displayed.
Solution:
    Generated correct DDL files.
Platforms tested:
    FreeBSD 4.2 (hawkwind) & Cray J90 (killeen)
2000-12-11 16:26:55 -05:00
Quincey Koziol
5c5b65eeec [svn-r3112] Purpose:
Bug Fix
Description:
    Stumbled across a problem when working on the J90 h5dump problem where
    I noticed that some of the output for named compound datatypes wasn't being
    displayed.
Solution:
    Corrected output to display missing information.
Platforms tested:
    FreeBSD 4.2 (hawkwind) & Cray J90 (killeen)
2000-12-11 16:26:26 -05:00
MuQun Yang
d9ba836b00 [svn-r3077]
Purpose:
     a bug fix for windows
Description:
     ignore checking the permission of file and directory on windows
Solution:
     using ifndef WIN32 endif to ignore checking this feature.
     Will find how windows deal with file checking stuff later.
Platforms tested:
    WIN 2000, and confirmed at eirene(Linux)
2000-12-05 12:21:52 -05:00
MuQun Yang
c279c82a75 [svn-r3072]
Purpose:
    turn off "checking file and directory permission right" on windows platform
Description:
    Adding #ifndef WIN32 #endif block at the corresponding test-file and test-dir functions.
Solution:
   See above.
Platforms tested:
     Win NT 4.0,5.0; and confirm the result the same on eirene and arabica
2000-12-04 14:55:59 -05:00
Quincey Koziol
afb64c0bac [svn-r3066] Purpose:
Bug Fix.
Description:
    Attributes whose datatype was an object or dataset region reference weren't
    dumping correctly.
Solution:
    Pass along attribute ID to the code which prints the attributes, so the
    reference types can be dereferenced and printed.
Platforms tested:
    FreeBSD 4.2 (hawkwind) & IRIX64 6.5 (modi4)
2000-12-02 10:13:38 -05:00
Robb Matzke
ecd06afe4e [svn-r3051] ./hdf5/tools/h5ls.c
2000-12-01 Robb Matzke  <matzke@llnl.gov>
	* display_vlen_type: Added function to display name of variable-length datatypes.
2000-12-01 13:25:07 -05:00
Quincey Koziol
1d12edaf3e [svn-r3045] Purpose:
Following up on added tests.
Description:
    Added the code to generate the vldata and array test files added into
    the h5dump test suite recently.  This doesn't have any affect on the
    library or tools, it's just for future reference.
Platforms tested:
    FreeBSD 4.2 (hawkwind)
2000-11-30 18:09:11 -05:00
MuQun Yang
f686e853aa [svn-r3040]
Purpose:
    bug_fix
Description:
    forget changing offset from file offset into memory offset when inserting array datatype
Solution:
    correct them
Platforms tested:
    J90
2000-11-30 15:12:14 -05:00
MuQun Yang
c5cd064a88 [svn-r3023]
Purpose:
   bug fix (zeroing memory for memory allocating for the name of dimensional list)
Description:
   At modi4, test failed due to garbage read for name of dimensional list.
Solution:
   zeroing out memory before writing the name.
Platforms tested:
   modi4, eirene(Linux)
2000-11-29 14:05:47 -05:00
Quincey Koziol
b3f6b6ffdd [svn-r3022] Purpose:
Bug fix
Description:
    Added DDL for test file.
Platforms tested:
    Linux 2.2.16-3smp (eirene)
2000-11-29 12:40:18 -05:00
Quincey Koziol
7062c4889a [svn-r3021] Purpose:
Bug fix
Description:
    Moving VL data reclamation to be more local to where the data is read in.
Platforms tested:
    Linux 2.2.16-3smp (eirene)
2000-11-29 12:39:09 -05:00
Quincey Koziol
6efa821555 [svn-r3017] Purpose:
Code cleanup/bug fix
Description:
    Variable length datatypes were leaking memory when being dumped.
Solution:
    Reclaim the VL data after each element has been dumped out.
Platforms tested:
    FreeBSD 4.2 (hawkwind) & Solaris 2.6 (baldric)
2000-11-29 10:49:38 -05:00
Quincey Koziol
1bd42760c1 [svn-r3016] Purpose:
Re-enabling features.
Description:
    Re-add the tests which had been core-dumping on a couple of platforms, now
    that the underlying bug is fixed.
Platforms tested:
    FreeBSD 4.2 (hawkwind) & Solaris 2.6 (baldric)
2000-11-29 10:48:32 -05:00
Quincey Koziol
5f049dc50c [svn-r3014] Purpose:
Bug fix.
Description:
    Data dumping routines weren't correctly handling scalar dataspaces when
    dumping them.  Under some circumstances, it would get into infinite loops.
Solution:
    Small patches to avoid problems when the number of dimensions is zero.
Platforms tested:
    FreeBSD 4.2 (hawkwind)
2000-11-28 15:11:06 -05:00
Quincey Koziol
de7799d251 [svn-r2992] Purpose:
Bug workaround
Description:
    tarray4.h5 and tdvltypes4.h5 are causing core dumps on modi4
Solution:
    Commented out those tests for now.  I'll take a look at them after the code
    freeze for the beta-release is finished.
Platforms tested:
    O2K (modi4)
2000-11-21 17:38:17 -05:00
Quincey Koziol
cab0d73cb3 [svn-r2988] Purpose:
Updating test files.
Description:
    Updated test files to reflect changes to DDL.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-11-21 14:35:23 -05:00
Quincey Koziol
75dad07518 [svn-r2987] Purpose:
Bug fixes and misc. code fixing.
Description:
    Updated to reflect current DDL document.  Also changed VL data to be able
    to be able also dump VL data of any other datatype.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-11-21 14:33:15 -05:00
Bill Wendling
82f9e0338a [svn-r2984] Purpose:
Bug fix
Description:
	The code for determining what a string should print out if it was
	declared as H5T_STR_NULLTERM (C strings), H5T_STR_SPACEPAD
	(Fortran strings), or H5T_STR_NULLPAD (print null characters to
	the end of the line) was mucked. A user had a problem with it and
	suggested a change, but the change didn't seem to work properly.

	Also, if the string was H5T_STR_SPACEPAD, it could have stopped
	when encountering a NULL even if it hadn't gotten to the end of
	the string.
Solution:
	Reworked the code to make it more understandable what's happening
	and to add in support for H5T_STR_SPACEPAD which may have been
	missing before.
Platforms tested:
	Linux
2000-11-21 12:39:38 -05:00