Commit Graph

839 Commits

Author SHA1 Message Date
Quincey Koziol
d456c2bb82 [svn-r4643] Purpose:
Code cleanup
Description:
    Windows is generating hundreds of warnings from some of the practices in
    the library.  Mostly, they are because size_t is 32-bit and hsize_t is
    64-bit on Windows and we were carelessly casting the larger values down to
    the smaller ones without checking for overflow.

    Also, some other small code cleanups,etc.

Solution:
    Re-worked some algorithms to eliminate the casts and also added more
    overflow checking for assignments and function parameters which needed
    casts.

    Kent did most of the work, I just went over his changes and fit them into
    the the library code a bit better.

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-27 11:29:13 -05:00
MuQun Yang
debeaf6e64 [svn-r4612]
Purpose:
     A new feature
Description:
    While testing h4toh5 utility with real NASA files, we find an example that the data array(one SDS) is so big that it exceeds the physical memory of some machine(>128 MB) and the conversion failed. Before the smart hyperslab operation is out, I am dividing the whole SDS into smaller hyperslabs with each hyperslab propotational to the original SDS array dimensions. For example, a three dimension array with 1000*1000*1000 elements, I can divide them into eight 500*500*500 pieces. I can read and write each piece and remember their starting and ending points. In this way, the memory allocation failure can be avoided; however, it may not be the efficient way.

    I've tested this feature using SDS without chunking. It works fine. However, when testing SDS with chunking, it is extremely slow. This happens to be a bug in HDF5 library now. Quincey may fix this later and give me a more efficient way to handle the problem. Currently all my testing files are with UNLIMITED dimensions, so in HDF5 the chunking feature will be required.

    SO by default, this feature will not be turned on.

Solution:

   see the above
Platforms tested:
    linux 2.2.18
2001-11-19 16:29:26 -05:00
Quincey Koziol
965e3bc3e2 [svn-r4591] Purpose:
Code cleanup
Description:
    Fix a bunch of warnings
Platforms tested:
    Linux 2.2 (eirene)
2001-11-03 22:23:30 -05:00
Raymond Lu
e3a137f39e [svn-r4517]
Purpose:
    Changed to the new generic property list for dataset creation property
    list.
Platforms tested:
    Arabica, modi4 and Hawkwind
2001-10-03 12:57:56 -05:00
Quincey Koziol
7a96b1a0d2 [svn-r4482] Purpose:
Kludge
Description:
    Since we're only about halfway through converting the internal use of
    property lists from the "old way" to the generic property lists, we turned
    off snapshots to avoid exposing lots of API changes to users, until the
    APIs settled down.

    Getting the snapshots rolling again seems to have become a priority, so
    some changes are going to have to be made now that were going to be
    postponed until we were completely finished with the conversion.  This
    requires that the old API functions be able to deal with both the old
    and new property lists smoothly.

Solution:
    Kludge together the property list code so that they can transparently handle
    dealing with both the old and new property lists

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-09-26 15:29:35 -05:00
Quincey Koziol
ed663577a5 [svn-r4473] Purpose:
Code cleanup for better compatibility with C++ compilers
Description:
    C++ compilers are choking on our C code, for various reasons:
        we used our UNUSED macro incorrectly when referring to pointer types
        we used various C++ keywords as variables, etc.
        we incremented enum's with the ++ operator.
Solution:
    Changed variables, etc.to avoid C++ keywords (new, class, typename, typeid,
        template)

    Fixed usage of UNUSED macro from this:
        char UNUSED *c
    to this:
        char * UNUSED c

    Switched the enums from x++ to x=x+1
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-09-25 12:46:32 -05:00
Bill Wendling
be9c42c7b1 [svn-r4456]
Purpose:
    Bug Fix
Description:
    Some so-called "operating systems" (*cough*Windows*cough*) can't
    handle large string sizes.
Solution:
    Replace the Usage string with individual strings which all call
    fprintf() themselves.
Platforms tested:
    Linux
2001-09-18 11:58:27 -05:00
Bill Wendling
d10d58c0c3 [svn-r4455]
Purpose:
    Warning Removal
Description:
    Remove some spurious warnings from the compilation.
Platforms tested:
    Linux
2001-09-18 11:57:16 -05:00
Bill Wendling
8b0a3c5c1f [svn-r4402]
Purpose:
    Bug Fix
Description:
    Object IDs command-line options weren't being picked up.
Solution:
    The wrong flag was being checked for. Changed the flag from "v" to
    "i", which is what the documentation says.
Platforms tested:
    Linux
2001-08-21 14:37:23 -05:00
MuQun Yang
04ca207930 [svn-r4376]
Purpose:
    add another raster image 24-bit test files
Description:
Solution:
Platforms tested:
     sol 2.7 and RedHat Zoot 6.2
2001-08-17 15:42:45 -05:00
MuQun Yang
46a0981644 [svn-r4375]
Purpose:
    update the expected HDF5 files to follow the interlace mode convention
    in HDF5 image spec.
Description:
Solution:
Platforms tested:
2001-08-17 15:40:29 -05:00
MuQun Yang
1c9a8c7c37 [svn-r4374]
Purpose:
      add another test file
Description:
Solution:
Platforms tested:
    eirene, arabica

    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2001-08-17 15:39:32 -05:00
MuQun Yang
631c032150 [svn-r4373]
Purpose:
   Add another test file
Description:
Solution:
Platforms tested:
    eirene, arabica
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2001-08-17 15:38:20 -05:00
MuQun Yang
54066b8652 [svn-r4372]
Purpose:
    add another test case.
Description:
Solution:
2001-08-17 15:37:17 -05:00
MuQun Yang
22bc8c18e1 [svn-r4371]
Purpose:
    a bug fix
Description:
    change PIXEL_INTERLACE to INTERLACE_PIXEL and other interlace mode description
     to fit for the image specification.
Solution:
Platforms tested:
   eirene, sol2.7
2001-08-17 15:36:25 -05:00
MuQun Yang
365461a772 [svn-r4370]
Purpose:
    1. fix a bug
    2. turn off a feature
Description:
    1. change the output of GRgetiminfo from NULL to &interlace_mode.
    2. turn off the feature to change line-interleaved feature into
        pixel-interleaved feature since inconsistent behaviour is found
        in GR interface.
Solution:
    see above
Platforms tested:
      eirene, arabica
2001-08-17 15:34:01 -05:00
MuQun Yang
6218bc7efa [svn-r4369]
Purpose:
     add a real raster-24 bit testing for interlace mode.
Description:
     1. GR interfaces will never create an HDF4 file with interlace mode other than
     pixel interleaved. DF24 interfaces can create HDF4 file with different interleaved.
     There are inconsistent behaviors between GRreqimageil and GRreadimage, data read into     the memory will not behave properly if a new interlace mode is asked.
     2. Currently HDF5 image spec. supports pixel interleaved and plane interleaved.
      We make a real image file to test whether the converter is doing the right thing.
Solution:
     We use DF24 bit APIs to generate a real image file that can be tested by H5view.
Platforms tested:
     linux and sol2.7
2001-08-17 15:29:07 -05:00
Quincey Koziol
e87fc517b8 [svn-r4355] Purpose:
Code cleanup (sorta)

Description:
    When the first versions of the HDF5 library were designed, I remembered
    vividly the difficulties of porting code from a 32-bit platform to a 16-bit
    platform and asked that people use intn & uintn instead of int & unsigned
    int, respectively.  However, in hindsight, this was overkill and
    unnecessary since we weren't going to be porting the HDF5 library to
    16-bit architectures.

    Currently, the extra uintn & intn typedefs are causing problems for users
    who'd like to include both the HDF5 and HDF4 header files in one source
    module (like Kent's h4toh5 library).

Solution:
    Changed the uintn & intn's to unsigned and int's respectively.

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-08-14 17:09:56 -05:00
Albert Cheng
c47f724187 [svn-r4345] Purpose:
Improvement
Description:
    The stdout and stderr were both redirected to an output file. This
    works fine in tradition sequential Unix machines.  But in some
    parallel systems (like mpi-jobs in IBM SP), the stderr is merged
    with stdout alright but not in the exact order as expected.  This
    is not deterministic in parallel jobs.  So, the test output are
    all there but the ordering maynot be as expected.
Solution:
    Redirect stderr to separated file and append it to the stdout
    file after test-command is executed.  Then compare it with
    the expected output.  This eliminate the assumption that
    stdout and stderr must merged in "chronical orders".

    The .ddl file are updated by moving all stderr text to the end of the
    file.
Platforms tested:
    eirene.
2001-08-14 12:28:14 -05:00
Albert Cheng
bb1c2afd58 [svn-r4342] Purpose:
Improvement
Description:
    The stdout and stderr were both redirected to an output file. This
    works fine in tradition sequential Unix machines.  But in some
    parallel systems (like mpi-jobs in IBM SP), the stderr is merged
    with stdout alright but not in the exact order as expected.  This
    is not deterministic in parallel jobs.  So, the test output are
    all there but the ordering maynot be as expected.
Solution:
    Redirect stderr to separated file and append it to the stdout
    file after test-command is executed.  Then compare it with
    the expected output.  This eliminate the assumption that
    stdout and stderr must merged in "chronical orders".
Platforms tested:
    tested in v1.4.  Folded it into v1.5.
2001-08-14 11:35:43 -05:00
MuQun Yang
018a8be116 [svn-r4338]
Purpose:
   check-in the second time to update the handling of data transfer in h4toh5.
    This will make up for the cvs conflict checking a couple hours ago.
Description:
Solution:
Platforms tested:
    eirene
2001-08-13 15:56:33 -05:00
MuQun Yang
156200d908 [svn-r4334]
Purpose:
    1) fix the implementation of image according to image specfication
    2) fix two bugs of SDS implemention. the first one is
        to handle the unlimited SDS with the first dimensional size set to 0.
        the second one is to change the way how HDF5 dataset is written.
Description:
    1) mapping 24-bit image to 3D arrays instead of 2D compound datatype.
    2) previously forgot considering unlimited SDS with the size set to 0.
    3) H5P_set_buffer seems not working well for a extremely small size.
Solution:
    1) see above.
    2) add a special case to deal with this.
    3) don't use H5Pset_buffer.
Platforms tested:
     RedHat Zoot 6.2
2001-08-13 14:07:54 -05:00
MuQun Yang
9767e654cf [svn-r4333]
Purpose:
    change image test files to fulfill HDF5 image specification.
Description:
Solution:
Platforms tested:
    eirene
2001-08-13 13:54:10 -05:00
Quincey Koziol
80c02cc6f1 [svn-r4327] Purpose:
More code cleanups
Description:
    Wrap up the code cleanups for changing the dataset transfer property lists
    over to using the generic property list code.
Platforms tested:
    IRIX64 6.5 (modi4)
2001-08-10 21:47:13 -05:00
Quincey Koziol
d24ae52673 [svn-r4326] Purpose:
Code cleanups, mostly..
Description:
    Work on pacifying the SGI compiler to get the generic properties working
    correctly with --enable-parallel and --enable-fortran.  It's not quite
    fixed yet, but I need to head home and these patches help... :-/
Platforms tested:
    IRIX64 6.5 (modi4)
2001-08-10 17:30:01 -05:00
Bill Wendling
48842d60fa [svn-r4325]
Purpose:
    New Feature
Description:
    Adding the h5cc script thingy.
Platforms tested:
    Linux
2001-08-10 16:34:40 -05:00
Quincey Koziol
95862451f7 [svn-r4324] Purpose:
New Features!
Description:
    Start migrating the internal use of property lists in the library from the
    older implementation to the new generic property lists.

    Currently, only the dataset transfer property lists are migrated to the
    new architecture, all the rest of the property list types are still using
    the older architecture.

    Also, the backward compatibility features are not implemented yet, so
    applications which use dataset transfer properties may need to make the
    following changes:
        H5Pcreate(H5P_DATASET_XFER) -> H5Pcreate_list(H5P_DATASET_XFER_NEW)
            and
        H5Pclose(<a dataset transfer property list>) -> H5Pclose_list(id)

    This still may have some bugs in it, especially with Fortran, but I should
    be wrapping up those later today.

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-08-10 15:47:05 -05:00
Bill Wendling
dcfa4009e4 [svn-r4315]
Purpose:
    Feature FIx
Description:
    Fixed description of the --filedriver flag.
Platforms tested:
    Linux
2001-08-06 12:54:42 -05:00
Quincey Koziol
41529d180e [svn-r4312] Purpose:
Feature shift
Description:
    Take out the v1.2.x compatibility stubs and put in the hooks for v1.4.x
    compatibility when needed.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-08-06 11:01:44 -05:00
Bill Wendling
b5d11111b0 [svn-r4292]
Purpose:
    Bug Fix
Description:
    The way we were generating Dependencies and .depend files was broken.
    If the $srcdir or other macros began with a ".", then it would match
    anything and cause problems since it would then overwrite the
    beginning of the header file's path.
Solution:
    Wrote a Perl script which can handle this type of weirdness better.
    It's only used when the environment is a GNU one with a GCC
    compiler...
Platforms tested:
    Linux
2001-08-01 16:00:25 -05:00
Bill Wendling
ff2e3ab9e9 [svn-r4284]
Purpose:
    Feature Change
Description:
    Changed the --family flag to --filedriver to make it clearer what's
    going on.
Platforms tested:
    Linux
2001-07-31 12:20:53 -05:00
Bill Wendling
88729d4c14 [svn-r4282]
Purpose:
    Bug Fix/Feature Add
Description:
    Added new flag ("-f" and "--family") to allow user to specify which
    file driver to use to open the file. If they don't specify anything,
    then it defaults to the old behaviour of trying each driver in turn
    until one actually opens the file.

    If the driver the user specified doesn't succeed in opening the
    file, then we do NOT try other file drivers.
Platforms tested:
    Linux
2001-07-30 16:55:46 -05:00
Bill Wendling
e685336ab1 [svn-r4254]
Purpose:
    Reformatting
Description:
    Reformatted the code so that it's much clearer and conforms to the
    HDF5 coding standards. Changed the function headers to use the ANSI
    style instead of the KnR style. Kept the use of typedef's such as
    "unsigned char" being "BYTE" and so on since of of this code is
    copied from some other place and that's the style they use...I didn't
    want to break things.
Platforms tested:
    It compiles fine on Linux, but there aren't any tests for this
    package, so...
2001-07-24 12:51:22 -05:00
Bill Wendling
75ee2e46aa [svn-r4245]
Purpose:
    Fixing a boo-boo
Description:
    There was a problem with the generated Dependencies file. It listed
    the H5pubconf.h header file as being in the $(top_srcdir) directory
    when it's in the $(top_builddir) directory.
Solution:
    Regenerated it.
Platforms tested:
    Linux
2001-07-20 12:32:44 -05:00
Bill Wendling
df7214c646 [svn-r4239]
Purpose:
    Updated
Description:
    Regerated the Dependencies file.
Solution:
    Ran "make Dependencies" on a GNU machine.
2001-07-19 13:04:20 -05:00
Bill Wendling
6f6e930f30 [svn-r4238]
Purpose:
    Update
Description:
    Updated the Dependencies file.
Solution:
    Reran "make Dependencies" in the tools/h4toh5 directory.
2001-07-19 12:53:30 -05:00
MuQun Yang
239ca247d8 [svn-r4185]
Purpose:
    a bug in the comment
Description:
    The structure of HDF4 file is not correct in the orginal comment
Solution:
     Correct the wrong comment and add more explanation
Platforms tested:
     eirene
2001-07-11 11:11:58 -05:00
Quincey Koziol
990fadfbe5 [svn-r4181] Purpose:
Bug Fix, Code Cleanup, Code Optimization, etc.
Description:
    Fold in the hyperslab speedups, clean up compile warnings and change a
    few things from using 'unsigned' or 'hsize_t' to use 'size_t' instead.
Platforms tested:
    FreeBSD 4.3 (hawkwind), Solaris 2.7 (arabica), Irix64 6.5 (modi4)
2001-07-10 16:19:18 -05:00
Quincey Koziol
0c1c23245d [svn-r4180] Purpose:
Documentation
Description:
    Accommodate v1.2.x behavior when --enable-hdf5v1_2 is enabled.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-07-10 15:18:52 -05:00
Elena Pourmal
a46f951ea0 [svn-r4171]
Purpose:
    Bug fix (by Bob McGrath)
Description:
    On Solaris platforms palette was not written to the HDF5 file
Solution:
    '\0' character was written outside the GroupName array. Apparently                                           on Solaris it destroyed the condition value that determined if the palette                                   should be written to the file.
Platforms tested:
    Not tested yet.
2001-07-10 13:05:11 -05:00
Bill Wendling
21000f0c09 [svn-r4150]
Purpose:
    Checking in BOb's Changes
Description:
    Just checking in Bob McGrath's changes to the h5dumper's XML code.
2001-07-09 01:40:08 -05:00
Elena Pourmal
d9d71b06e4 [svn-r4107]
Purpose:
    Bug fix
Description:
    One of the function calls (H5Sget_simple_extent_dims) used parameter with
    the wrong type. That caused compilation errors on T3E.
Solution:
    Used NULL since that argument is optional and was never used.
Platforms tested:
    T3E(mcurie) and IRIX64 (modi4)
2001-07-04 12:32:48 -05:00
Pedro Vicente Nunes
098ed81ec8 [svn-r4083]
code warrior support
and some clean up
the macros file_seek and file_offset_t that were repeated over sevral files were put only in
H5private.h
H5private .h was updated for win32


vthe
Description:
Solution:
Platforms tested:
2001-06-29 10:27:15 -05:00
Quincey Koziol
d41b9fffdf [svn-r4012] Purpose:
Clean up compiler warnings.
Description:
    Just code neatening mostly, some casts, etc.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-06-18 15:22:10 -05:00
MuQun Yang
dbdeacb7ad [svn-r3989]
Purpose:
    New features for adding attribute options and modifying testing files
Description:
Solution:
Platforms tested:
     eirene,arabica
2001-06-11 16:21:59 -05:00
MuQun Yang
1a5197918c [svn-r3988]
Purpose:
    new features
Description:
    1. add an option to convert HDF4 file without HDF4 specified attributes such as
	HDF4_OBJECT_TYPE, HDF4_REF_NUM etc.
        it can be done by inputting "h4toh5 -na input.hdf"
        The default converter will still keep HDF4 specfied attributes.
    2. Add compression features (gzip) for image too. Now the compressed HDF4 image
       can be supported by using HDF5 gzip. Not sure whether tools can read it. Need to be       tested.
    3. Change SPACEPAD to NULLTERM for HDF4 dimensional name list. We can use variable length HDF5 string to represent these names, however currently H5dump and H5view cannot support variable length HDF5 string. converter will wait for other tools' update.

Solution:
Platforms tested:
     eirene(Red Hat 6.2) and arabica(solaris 2.7)
2001-06-11 16:20:10 -05:00
MuQun Yang
1b484c377c [svn-r3987]
Purpose:
   update h4toh5 converter utility test files
Description:
    better output of HDF4 dimensional name list
Solution:
Platforms tested:
    eirene,arabica
2001-06-11 16:03:13 -05:00
MuQun Yang
01398cee71 [svn-r3986]
Purpose:
    update h4toh5 testing files
Description:
    Now we are using fixed size for HDF5 dimensional name list and h5dump
    output is appended with 000/000/.......................
    It looks ugly and annoying.
Solution:
     Use NULLTERM for SDS dimensional list names
Platforms tested:
     RedHat 6.2(eirene) and solaris 2.7(arabica)
2001-06-11 16:00:58 -05:00
Quincey Koziol
21906d0b7c [svn-r3985] Purpose:
Code cleanups
Description:
    Fixed a small number of compiler warnings.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-06-11 14:54:19 -05:00
Quincey Koziol
c46ac986c5 [svn-r3984] Purpose:
Code cleanups
Description:
    Fixed a small number of warnings.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-06-11 14:53:50 -05:00
Elena Pourmal
7cb85190c8 [svn-r3921]
Purpose:
    Fooling around
Description:
    Added deleted gif.h file
2001-05-12 14:00:43 -05:00
Elena Pourmal
88b6fcfa5d [svn-r3920]
Purpose:
    Bug fix
Description:
    Rushabh added new directory tools/gifconv to CVS. He also modified
    MANIFEST, but  bin/chkmanifest complains this file.
Solution:
    I will try to delete gif.h and then to add it once more.
2001-05-12 13:59:29 -05:00
Rushabh Doshi
2eb5516b09 [svn-r3919]
Purpose:
    Adding new feature
Description:
    Added gif2h5 and h52gif conversion utilities
Solution:
    The utilites follow the framework built for the gif2hdf and hdf2gif
    utilities for hdf4. The main files modified were those that read the
    H5 file and those that write H5 file. In the future, if you wish to
    continue with the framework and extend it to .png or some other fileformat
    the main files to edit will be the gif reader and writer.
    One point to note with h52gif. You have to specify the exact location of
    the image and the palette that it links to. You can choose not to specify
    a palette (uniform grayscale chosen in this case) but you must specify
    image location. In the future, someone could edit the readhdf.c source
    to enable the reader to parse the hdf file and select all images with
    corresponding palettes.
Platforms tested:
    modi4 , eirene , hawkwind , arabica , Ren (NT 4.0) , Personal box (win2k)
2001-05-12 12:55:47 -05:00
MuQun Yang
2c8b1571d2 [svn-r3871]
Purpose:
    Add definations of two new functions
Description:
Solution:
Platforms tested:
    eirene
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2001-04-28 18:06:34 -05:00
MuQun Yang
1c4dd8b01b [svn-r3870]
Purpose:
 Add a constant(compression level for gzip)
Description:
    For compression issue
Solution:
Platforms tested:
    eirene
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2001-04-28 18:05:05 -05:00
MuQun Yang
cfc0f7c02b [svn-r3869]
Purpose:
    a bug fix
Description:
    User can define "Real Vdata" as user-defined attribute. By using VSisattr, we can check this out. In order to keep this piece of information, We use "Vdata attribute" in the converted HDF5 file to distingush this kind of Vdata from independent Vdata.
Solution:
    see above
Platforms tested:
    eirene(Linux)
2001-04-28 18:02:12 -05:00
MuQun Yang
7b6e646863 [svn-r3868]
Purpose:
     a bug fix
Description:
     When Vsisattr is true, this Vdata still needs to be converted as an independent
     real "Vdata", We will add object type of this vdata as "Vdata attribute".
Solution:
     erease the evaluation of Vsisattr call.
Platforms tested:
    Linux(eirene)
2001-04-28 17:57:16 -05:00
MuQun Yang
ee65ccc265 [svn-r3867]
Purpose:
     bug fix Adding more features
Description:
    Bugs: 1) hdf4 dimensional scale data can be none, but the dim name can still defined by users, so number of hdf4 dimensional names and number of object reference may be different
    Previously, this problem is not considered.

          2) SDcheckempty will return true when fill value is set to HDF4 SDS, and then fill value information is lost
          3) check whether SDS have fill value set although SDcheckempty return true.
             Use H5Psetfillvalue and H5Dcreate in HDF5 part, still needs to wait for the new development of HDF5 and also need to investigate whether this part of code has bugs.
    New features: compressed SDS will get compressed with gzip when it is converted. That will save some space.
    [describe the bug, or describe the new feature, etc]
Solution:
     See  above and design document
Platforms tested:
    eirene(linux)
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2001-04-28 17:52:49 -05:00
Bill Wendling
68887995c8 [svn-r3853] Purpose:
Adding Tests
Description:
    Added tests for the h5dump subsetting feature.
Platforms tested:
    Linux
2001-04-24 17:24:47 -05:00
Bill Wendling
3cd2537c60 [svn-r3841] Purpose:
Oops
Description:
    An "if" was capilalized for some reason.
Solution:
    Changed it from If to if.
Platforms tested:
    Linux
2001-04-24 13:45:03 -05:00
Bill Wendling
ce4408e074 [svn-r3840] Purpose:
small bug fix
Description:
    If specifying --stride, it was checking for the wrong short-form of
    the command-line parameters.
Solution:
    Changed the 'T' to 'S' which is the new short form for the stride
    option.
Platforms tested:
    Linux
2001-04-24 13:40:45 -05:00
Bill Wendling
67b5490df0 [svn-r3811] Purpose:
Update
Description:
    If the count for a subset isn't specified, then we default to the
    remainder of the dataset.
Solution:
    Check for the count to be specified. If not, then find the dimensions
    of the dataset and subtract from the the "start" parameter.
Platforms tested:
    Linux
2001-04-13 15:22:21 -05:00
Bill Wendling
c75ca861ec [svn-r3795] Purpose:
Update
Description:
    Updated the way the subsetting data is retrieved. It now does it one
    row of blocks at a time. It may still run out of memory, but this is
    at least a good first step.

    Also, the start parameter defaults to (0, 0, ...) if it isn't
    specified.
Platforms tested:
    Linux
2001-04-10 14:54:08 -05:00
Bill Wendling
e13b8e8971 [svn-r3782] Purpose:
Update
Description:
    Changed old style includes "with <>" to new style 'with ""' for
    dependencies gathering.
2001-04-05 16:37:17 -05:00
Bill Wendling
d57e19825b [svn-r3769] Purpose:
Update
Description:
    Replaced

            #include <hdf5_file.h>

    with

            #include "hdf5_file.h"

    so that gcc can pick up our files more easily without picking up
    system header files (which we don't care about being in the
    dependencies list).
Platforms tested:
    Linux
2001-04-03 12:48:52 -05:00
Bill Wendling
6c130407eb [svn-r3768] Purpose:
Update
Description:
    Replaced "#include <hdf5_file.h>" with the equivalent, but better
    #include "hdf5_file.h" so that gcc can pick up our header files more
    easily.
Platforms tested:
    Linux
2001-04-03 12:47:08 -05:00
MuQun Yang
067806e507 [svn-r3739]
Purpose:
    a bug fix
Description:
    when creating sds dimensional scale dataset, I accidently created two sds dimensional scale dataset with the same name, (say using name "dim1" for both rank 2 and rank 3).
    hdf4 library doesn't give me complaints, hdp dumpsds doesn't generate complaints. h4toh5 converter since assumed that dimensional scale name has to be unique, simply skip if finding the same dimensional name, so accidently the result from hdp dumpsds are the same as the result from h5dump until I implement library API and find this bug.
Solution:
    make unique sds dimensional scale name for this test file. Will also need to modify testfiles later.
    suggestions: somebody check hdf4 library to disallow the same dimensional scale nameOused for the same sds object.
Platforms tested:
    eirene, and this check in will not affect daily test.
2001-03-29 18:56:23 -05:00
Bill Wendling
fa399abe3d [svn-r3681] Purpose:
Update
Description:
    Applied fix to h5dumper which was applied to the 1.4 branch. Done
    just before creating subdirectories in the 1.4 branch.
Platforms tested:
    Linux
2001-03-21 17:53:34 -05:00
Bill Wendling
65ed9f9b8a [svn-r3680] Purpose:
Updated
Description:
    Updated test results for the h5dumper's XML option. The tool now
    conforms with the fixes implemented in the 1.4 branch.
Platforms tested:
    Linux
2001-03-21 17:52:11 -05:00
Bill Wendling
39142ffed0 [svn-r3648] Purpose:
Feature Add
Description:
    This is the first (alpha) version of h5tools which does subsetting
    according to the subsetting document. There's still some niceties
    which need to be worked out, but this is the ground work.
Platforms tested:
    Linux
2001-03-15 14:31:40 -05:00
Bill Wendling
bebae0a9e8 [svn-r3634] Purpose:
Bug Fix.
Description:
    Kent is correct about the malloc error. It's harmless if it's not
    needed anyway.
Solution:
    Removed the #ifdef's since all platforms should use this.
Platforms tested:
    Linux
2001-03-14 16:46:31 -05:00
MuQun Yang
a21f74ce6a [svn-r3633]
Purpose:
    fixing the format of dumper output for windows test
Description:
    New dumptest includes the feature that an error of the output will be put into stderr in linux
    On windows, that stderr will not be redirected into the output file and the comparsion between the expected file and the dumper output is not correct.
Solution:
     change fprintf(stderr .....) at h5tool_util.c into fprintf(stdout ......) so that it fits the comparison.

Platforms tested:
    windows 2000
2001-03-14 16:38:55 -05:00
MuQun Yang
693131fe40 [svn-r3632]
Purpose:
    a bug fix on windows(possible on other platforms)
Description:
    not allocating enough space for a string at dump_all for debug version
    a string tmp is defined at dump_all(....),
    The memory that is allocated to tmp is malloc(strlen(prefix)+strlen(name)+1);
    However, there is one testing case : strlen(prefix) is 0 and
    tmp is allocated in the following:
    strcat(tmp,"/");
    strcat(tmp,name);
    ....
    free(tmp);

    the program fails when freeing tmp for debug (dll) version on windows 2000


Solution:
     For windows platform:

    allocate memory     strlen(prefix)+strlen(name)+2
Platforms tested:
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2001-03-14 14:14:13 -05:00
MuQun Yang
3ad1acdd03 [svn-r3611]
Purpose:
    avoid a windows bug for string handling
Description:
Solution:
Platforms tested:
     windows 2000, linux
2001-03-12 15:26:18 -05:00
MuQun Yang
b793dd3de8 [svn-r3607]
Purpose:
     change macro RGB into HDF5_RGB since RGB is defined on windows platforms
Description:
Solution:
Platforms tested:
    eirene
2001-03-12 12:18:06 -05:00
MuQun Yang
cd29e12e02 [svn-r3601]
Purpose:
    a  bug fix
Description:
     uninitialize the start and edge value for test_ras8 and test_ras24 functions
Solution:
     initialize
Platforms tested:
    eirene,arabica
2001-03-09 19:09:55 -05:00
Bill Wendling
42d3d90f0c [svn-r3575] Purpose:
Update
Description:
    Due to code motion, some functions which were being called were moved
    to another module. Included only that header file.
Platforms tested:
    Linux
2001-03-08 15:22:44 -05:00
Bill Wendling
690a3fa068 [svn-r3574] Purpose:
Update
Description:
    Updated to reflect the new naming of APIs in the h5tools library.
    I.e., things which were once named "h5dump_*" now have the "h5tools_"
    prefix instead.
Platforms tested:
    Linux
2001-03-08 15:22:08 -05:00
Bill Wendling
32dba42ff8 [svn-r3573] Purpose:
Code Cleanup
Description:
    Moved some code out which wasn't specific to the h5tools into the
    h5tools_utils and h5tools_str modules. Also started on adding the
    subsetting feature to the dumping.
Platforms tested:
    Linux
2001-03-08 15:21:05 -05:00
Bill Wendling
1b60816eb1 [svn-r3572] Purpose:
Code Movement
Description:
    Moved some functions which worked only with the h5tools_str_t
    structure from the h5tools module to the h5tools_str module.
Platforms tested:
    Linux
2001-03-08 15:19:30 -05:00
Bill Wendling
37957dfe1d [svn-r3571] Purpose:
New Modules
Description:
    Separated the "generic" functions out of the h5tools module into
    their own separate module to make things a bit nicer to deal with.
Platforms tested:
    Linux
2001-03-08 15:18:42 -05:00
Bill Wendling
8e7f06a1fc [svn-r3570] Purpose:
Update
Description:
    Added entry for h5tools_utils.*
Platforms tested:
    Linux
2001-03-08 15:17:52 -05:00
Bill Wendling
a4cd98c011 [svn-r3569] Purpose:
Update
Description:
    Changed name of h5tools functions.
Solution:
    Changed

         h5dump_fixtype() -> h5tools_fixtype()

Platforms tested:
    Linux
2001-03-08 15:17:12 -05:00
Bill Wendling
84d46a8d50 [svn-r3535] Purpose:
Bug Fix
Description:
    We weren't doing cleans or installs in the lib/ subdirectory.
Solution:
    Added lib to the for loops.
Platforms tested:
    LInux
2001-03-02 13:05:23 -05:00
Bill Wendling
ed7a1d171c [svn-r3523] Purpose:
Bug Fix
Description:
    For some reason, it was trying to cd to the examples/ and pablo/
    directories to do a distclean. Only problem was, they aren't here.
Solution:
    Removed those from the `for' loop.
Platforms tested:
    Linux
2001-02-27 17:41:49 -05:00
Bill Wendling
2583f21941 [svn-r3517] Purpose:
More Subsetting
Description:
    Wanted to do a check-in of the current subsetting stuff. The
    command-line parsing was already in there. I now added the feature to
    the h5dump_t structure and it now outputs the new SUBSET DDL stuff in
    the correct format. It doesn't yet do the actual subsetting, but
    we're getting there...
Platforms tested:
    Linux
2001-02-26 18:58:08 -05:00
Bill Wendling
c55f97f569 [svn-r3514] Purpose:
Resubmit of Changes
Description:
    Previous changes to the h5dumper were lost. This patch includes
    better memory management of XML formatted strings along with the bug
    fixes for the XML code.
Solution:
    Merged the XML patch with the previous code.
Platforms tested:
    Linux
2001-02-24 17:49:37 -05:00
Bill Wendling
680bf2a154 [svn-r3513] Purpose:
Bug Fix
Description:
    assert.h was included twice now that H5private is in there.
Solution:
    remvoed one.
Platforms tested:
    Linux
2001-02-24 17:28:30 -05:00
Bill Wendling
9cb572cb73 [svn-r3512] Purpose:
Bug Fix
Description:
    Some platforms (gondolin) don't necessarily have the vsnprintf
    function.
Solution:
    Changed it to HDvsnprintf and added a header for H5private to include
    it...
Platforms tested:
    Linux
2001-02-24 17:25:15 -05:00
Bill Wendling
6977b5afc2 [svn-r3508] Purpose:
Bug Fix
Description:
    We were trying to build the talign test program before the library
    was actually built.
Solution:
    Moved talign test to the lib directory since it belongs with the
    library anyway.
Platforms tested:
    Linux
2001-02-23 17:23:01 -05:00
Robert E. McGrath
9dfe128921 [svn-r3506]
Purpose:
    Bug fix.
Description:
    Order of elements in groups is wrong.  (Need to find out why
    h5gen accepted this at all.)
    Note that test output had to be corrected in some cases.
Solution:
    Fixed xml_dump_group to do the right order to match the DTD
Platforms tested:
    Linux, solaris.
2001-02-23 17:07:15 -05:00
Bill Wendling
d6a4d2a3d6 [svn-r3497] Purpose:
Fix
Description:
    Left some more cruft in there.
Solution:
    Removed. I still need to check on the testing of `talign'...
Platforms tested:
    Linux
2001-02-22 17:24:34 -05:00
Bill Wendling
9f3c75e052 [svn-r3496] Purpose:
Fix
Description:
    Left in the separate subdirectories fro the small programms.
Solution:
    removed them and replaced with the misc/ subdirectory
Platforms tested:
    Linux
2001-02-22 17:23:04 -05:00
Bill Wendling
627a039fdb [svn-r3492] Purpose:
Code Movement
Description:
    Moved these files to subdirectories in the tools/ directory.
Platforms tested:
    Linux, Kelgia
2001-02-22 17:01:58 -05:00
Bill Wendling
55998df9ed [svn-r3491] Purpose:
Code Movement
Description:
    Changed so that it works for compiling files in a subdirectory.
Platforms tested:
    Linux, Kelgia
2001-02-22 16:56:54 -05:00
Bill Wendling
8d1b51e1ee [svn-r3490] Purpose:
Code Movement
Description:
    Moved tools code into own separate directories. This is the library
    code all of them share.
Platforms tested:
    Linux, Kelgia
2001-02-22 16:55:15 -05:00
Bill Wendling
2821175f3f [svn-r3489] Purpose:
Code Movement
Description:
    Moved tools code into their own separate subdirectories
Platforms tested:
    Linux, Kelgia
2001-02-22 16:53:56 -05:00
Bill Wendling
416a86e3ce [svn-r3488] Purpose:
Code Movement
Description:
    Moved tools code into their own special subdirectories.
Platforms tested:
    Linux, Kelgia
2001-02-22 16:53:30 -05:00
Bill Wendling
20061988ec [svn-r3487] Purpose:
Code Movement
Description:
    Moved the tools into their own separate directories (except for these
    small tools which are REALLY small, not tested, or documented,
    really...They just get put into the misc/ directory).
Platforms tested:
    Linux and Kelgia
2001-02-22 16:49:40 -05:00
Robert E. McGrath
015d638624 [svn-r3485]
Purpose:
    fix bug in XML output
Description:
    OBJ-XID, Parents, etc. were messed up in several cases.
Solution:
    Fixed.  Updated tests to have correct results in them
    Note:  tvldtype.h5.xml is a junk file,
Platforms tested:
    Solaris 2.7
2001-02-22 14:21:37 -05:00
Robert E. McGrath
e4e6daee0c [svn-r3484]
Purpose:
    fix bug in XML output
Description:
    OBJ-XID, Parents, etc. were messed up in several cases.
Solution:
    Fixed.  Updated tests to have correct results in them
Platforms tested:
    Solaris 2.7
2001-02-22 14:15:01 -05:00
Albert Cheng
53ed6e6794 [svn-r3475] Purpose:
Bug fix
Description:
    h4toh5test was being installed because it was put in the PUB_PROGS
    which is specifically for public programs to be installed.
Solution:
    Moved it away from the PUB_PROGS list to the PROGS list.
Platforms tested:
    eirene.
2001-02-20 18:13:11 -05:00
MuQun Yang
fd3c700f36 [svn-r3453]
Purpose:
   Fixing Makefile.in for compiling h4toh5test.c at the right option
   Without including hdf4 lib, h4toh5test will not be generated.
Description:
Solution:

Platforms tested:
     arabica
2001-02-19 14:08:12 -05:00
Bill Wendling
657d7c7596 [svn-r3451] Purpose:
Feature Add
Description:
    Added support for the h4toh5test program which needs to be
    conditionally compiled in only if HDF4 is specified.
Platforms tested:
    Linux
2001-02-19 12:21:26 -05:00
MuQun Yang
32ab36e12f [svn-r3446]
Purpose:
    remove old h4-h5 test files
Description:
Solution:
Platforms tested:
2001-02-19 10:51:33 -05:00
MuQun Yang
7c39544d32 [svn-r3445]
Purpose:
    remove h4-h5 converter test files
Description:
Solution:
Platforms tested:
2001-02-19 10:47:05 -05:00
MuQun Yang
a0f4dd17a7 [svn-r3444]
Purpose:
    remove old h4-h5 testfiles
Description:
Solution:
Platforms tested:
2001-02-19 10:42:22 -05:00
MuQun Yang
f7838baceb [svn-r3443]
Purpose:
    remove old h4-h5 converter test files
Description:
Solution:
Platforms tested:
2001-02-19 10:36:00 -05:00
MuQun Yang
6dc04c60a4 [svn-r3442]
Purpose:
    remove old h4-h5 converter test files
Description:
Solution:
Platforms tested:
2001-02-19 10:29:47 -05:00
Bill Wendling
de25a136c3 [svn-r3437] Purpose:
Feature Add
Description:
    This is the first phase of adding subsetting to the dumper. The
    command-line parsing should be pretty much set right now.

    NOTE: The revision before this one can be used to back port to the
    1.4 branch when the XML stuff is folded into that branch for
    release.
Platforms tested:
    Linux
2001-02-16 17:23:01 -05:00
Albert Cheng
3a6c7fe631 [svn-r3426] Description:
Some fixes were wiped out by Bob's commit.
    Recovered the changes.
2001-02-16 15:38:32 -05:00
MuQun Yang
4237169f3e [svn-r3420]
Purpose:
   add new expected converted hdf5 files from converter
Description:
Solution:
Platforms tested:
    eirene, arabica
CVOS: ----------------------------------------------------------------------
2001-02-15 22:48:17 -05:00
MuQun Yang
03e2ec673e [svn-r3419]
Purpose:
    adding new test hdf4files to be tested by h4toh5 converter
Description:
Solution:
    more typical test files are used
Platforms tested:
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    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:46:23 -05:00
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
Bill Wendling
f5dad4f23f [svn-r2981] Purpose:
Bug fix
Description:
	If TESTH5TOH4 or TESTH4TOH5 wasn't set, then it would mess up the
	testing process by adding a ``#'' to the for statement (since
	there was a line-continuation in the definition of the macro).
Solution:
	Placed the macro expansions all on one line so that there's no
	junk characters picked up by accident.
Platforms tested:
	OSF1 (Gondolin)
2000-11-20 15:21:30 -05:00
Bill Wendling
9735b6ed76 [svn-r2971] Purpose:
Bug fix
Description:
	With the changing of the spelling error in the h5ls usage
	statement, these testfiles puked.
Solution:
	Corrected them in there.
Platforms tested:
	Linux
2000-11-17 14:04:03 -05:00
Bill Wendling
82323f4c8f [svn-r2967] Purpose:
Spelling Fix
Description:
	Changed ``dispalyed'' to ``displayed'' in usage message.
2000-11-17 13:14:23 -05:00
Bill Wendling
16baf0465b [svn-r2966] Purpose:
Add Test
Description:
	Added test for variable length data types.
Platforms tested:
	Linux
2000-11-17 13:02:23 -05:00
Bill Wendling
d83c9494ad [svn-r2965] Purpose:
Usage Statement Reworking
Description:
	Changed usage statement to correspond to the Tools.html page.
2000-11-17 12:57:01 -05:00
Albert Cheng
9dbe3e5c75 [svn-r2961] Purpose:
Code cleaning
Description:
    Use the variable to rid the warnings of "variable set but not used".
Platforms tested:
    Linux and modi4 -64.  Just compile only.
2000-11-16 23:51:27 -05:00
Bill Wendling
815e70db63 [svn-r2956] Purpose:
Backing out fix
Description:
	The fix I inserted didn't work on all platforms. I'm backing it
	out.
2000-11-16 16:35:59 -05:00
Bill Wendling
0593d93314 [svn-r2950] Purpose:
Bug fix
Description:
	The output of floating point dumps wasn't necessarily standard.
	The h5ls utility does it in a better way.
Solution:
	Changed the output parameters from %g to %1.*g and added the
	appropriate FLT_DIG/DBL_DIG parameter for the `*' in the above.
Platforms tested:
	Linux
2000-11-16 12:49:26 -05:00
Bill Wendling
d197bf4f52 [svn-r2949] Purpose:
Added tvldtypes test to the dumper test generator.
Platforms tested:
	Linux
2000-11-16 12:46:39 -05:00
Bill Wendling
0a4d1506e0 [svn-r2948] Purpose:
Bug fix
Description:
	I was writing things out to the HDF file in big-endian format
	without doing any conversions on the data or anything like that.
	This was causing tests to fail on most machines
Solution:
	Removed the big-endian craziness...But, this kinda resulted in a
	bug in the HDF dumper which Albert and Robb suggested ways of
	fixing.
Platforms tested:
	Linux
2000-11-16 12:45:46 -05:00
Bill Wendling
418e8ef0ca [svn-r2941] Purpose:
Better Test Files
Description:
	These test files check more different types of datatypes for the
	variable length dumping.
Platforms tested:
	Linux
2000-11-15 16:51:29 -05:00
Albert Cheng
e89c46e6b9 [svn-r2938] Purpose:
pathc
Description:
    TFLOPS coredumped on h5ls because when h5ls calls ioctl(TIOCGWINSZ),
    the ioctl() routine coredumped inside.
Solution:
    It is likely that TFLOPS does not support window-size in the
    compute nodes.  Still, it should not coredump.  Bypass it for
    TFLOPS for now.
Platforms tested:
    TFLOPS & modi4 (-64)
2000-11-15 16:01:47 -05:00
Quincey Koziol
825e9ff8ff [svn-r2922] Purpose:
Bug fix
Description:
    [Most] SGIs failed on dumping VL data during the daily tests they
    seem to be initializing variables differently, exposing a bug in dumping
    datasets with scalar dataspaces.

    Also, clean up code to get rid of compiler warnings.
Solution:
    Initilialize variable correctly.
Platforms tested:
    SGI IRIX 6.5 (paz)
2000-11-15 12:12:03 -05:00
Quincey Koziol
f1410eb099 [svn-r2908] Purpose:
Bug fix.
Description:
    VL datatype dumping was not working correctly on most machines because
    the "native" version of the variable-length type wasn't being generated
    for the printing process.

    Re-enabled VL dumping test
Solution:
    Generate "native" version of the VL datatype to read in for printing,
    also some code cleanup in the VL dumping algorithm.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind) & Solaris 2.6 (baldric)
2000-11-14 18:48:59 -05:00
Bill Wendling
36acd5381e [svn-r2896] Purpose:
Formatting
2000-11-14 15:13:28 -05:00
Bill Wendling
9703fa02b7 [svn-r2895] Purpose:
Small purify warning fixes
Description:
	Removes some purify warning fixes and memory leakage.
Platforms tested:
	Solaris
2000-11-14 15:12:55 -05:00
Bill Wendling
2145039107 [svn-r2888] The VL dumping isn't ready for prime time just yet. Can't get the H5 file
to be platform independent. Commenting this out so that the nightly tests
don't bomb...
2000-11-13 16:31:42 -05:00
Bill Wendling
7b5c102536 [svn-r2878] Purpose:
Feature
Description:
	Variable length data dumping for simple (i.e., either SCALAR or
	1-Dim array variable length datatypes) should work. Added to the
	tests...
Platforms tested:
	Linux
2000-11-13 12:17:04 -05:00
Bill Wendling
e8745849af [svn-r2876] Purpose:
Test files
Description:
	Test files for the h5dumping of variable length datasets.
Platforms tested:
	Linux
2000-11-13 12:13:21 -05:00
Quincey Koziol
6c603f3e77 [svn-r2875] Purpose:
Code cleanup
Description:
    Eliminated some warnings on O2K platform.
Platforms tested:
    SGI O2K (modi4)
2000-11-13 12:03:59 -05:00
Quincey Koziol
04223a18f4 [svn-r2866] Purpose:
Code cleanup
Description:
    Found more "Have_foo" usage and converted them to "H5_HAVE_foo"
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-11-11 10:58:12 -05:00
Quincey Koziol
ab5bf9f979 [svn-r2851] Purpose:
Updated for new array datatypes.
Description:
    I missed these tools earlier when I wasn't compiling with HDF4...
Solution:
    Updated them (correctly, I hope) to use the new array datatype instead of
    compound datatype array fields.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-11-09 18:01:29 -05:00
Quincey Koziol
2ce142b6ee [svn-r2846] Purpose:
New Feature
Description:
    Updated DDL files for new array output from h5dump.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-11-09 16:49:01 -05:00
Quincey Koziol
3499de1b53 [svn-r2845] Purpose:
New Feature
Description:
    Added dumping array datatypes to h5dump and the tool library.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-11-09 16:48:33 -05:00
Bill Wendling
796b4daf83 [svn-r2842] Purpose:
Recoding of VL dumping.
Description:
	I'm using hyperslabs to select the variable length data. I don't
	have any tests which I've checked in just yet. I'll create those
	later.
Platforms tested:
	Linux
2000-11-09 13:59:41 -05:00
MuQun Yang
a219b97a88 [svn-r2839]
Purpose:
     check in beta release h4toh5 converter
Description:
     1. add copy right and other comments to all .h and .c files
     2. fix bugs on sds unlimited dimension, hdf5 dimensional scale attribute and vdata translating
         from h4 to h5.

Solution:
     2.
        1) for sds with unlimited dimension to be converted into extensible hdf5 dataset,
        on hdf5 side, has to set a default chunk size even though the corresponding hdf4 file is not
	chunked.
        2) in this version, if sds object doesn't have dimensional scale data, we will not show
           the default hdf4 dimensional name ("fakedim0", etc.) in the new hdf5 dimensional scale
	   name attribute.
        3) fix a bug transferring vdata of which the field includes a character array. Make it correctly transfer into the corresponding hdf5 compound data type.


Platforms tested:

      eirene,arabica,baldric,hawkwind,paz,gondolin on new set of hdf4 test files.
2000-11-08 18:14:41 -05:00
MuQun Yang
b62d0a1366 [svn-r2837]
Purpose:
     Adding more expected files for testing h4toh5 converter
     These test files include hdf5 files that are expected converted from hdf4 files for various vdata
     and vgroup cases.
Description:
Solution:
Platforms tested:
     eirene,arabica,hawkwind,paz
2000-11-08 18:01:16 -05:00
MuQun Yang
9486965c4a [svn-r2836]
Purpose:
     Add testing files for h4toh5 converter
     Two more files for testing native float data type sds objects
Description:
Solution:
Platforms tested:
      arabica,eirene,hawkwind,paz
2000-11-08 17:57:35 -05:00
MuQun Yang
c9ec2cdc4d [svn-r2835]
Purpose:
     Adding expected hdf5 files for h4toh5 converter
     Expected files for different testing hdf4 files for sds objects
Description:
Solution:
Platforms tested:
     eirene,arabica,gondolin,paz
2000-11-08 17:53:09 -05:00
MuQun Yang
7fe0f3bb25 [svn-r2833]
Purpose:
    Adding expected testing files for h4toh5 converter
    expected files converted from image object
Description:
Solution:
Platforms tested:
      eirene,arabica,paz,hawkwind,gondolin
2000-11-08 17:37:21 -05:00
MuQun Yang
3846f6a785 [svn-r2831]
Purpose:
    update main test files for h4toh5 converter
Description:
Solution:
Platforms tested:
     eirene,arabica,hawkwind,paz,gondolin
2000-11-08 17:34:12 -05:00
MuQun Yang
50333fe515 [svn-r2829]
Purpose:
    Adding expected files for h4toh5 converter
    two test files for annotation
Description:
Solution:
Platforms tested:
    arabica,eirene,paz,gondolin,hawkwind
2000-11-08 17:32:54 -05:00
MuQun Yang
3baf0d41a7 [svn-r2828]
Purpose:
     Adding testing files for h4toh5 converter
     hdf4 test files for various tests on vgroup(including, hardlink,loop,nameclashing etc.)
Description:
Solution:
Platforms tested:
     arabica,eirene,paz,gondolin,hawkwind
2000-11-08 17:30:05 -05:00
MuQun Yang
69ada20b2a [svn-r2827]
Purpose:
     Adding testing files for h4toh5 converter
     testing files for independent vdatas
Description:
Platforms tested:
    eirene,hawkwind,arabica,paz
2000-11-08 17:26:50 -05:00
MuQun Yang
a1980a656a [svn-r2826]
Purpose:
    Adding testfiles for h4toh5 converter
    more testing files for sds objects in various datatypes
Description:
    see above
Solution:
Platforms tested:
     eirene,arabica,gondolin,paz,hawkwind
2000-11-08 17:24:36 -05:00
MuQun Yang
27dd362814 [svn-r2825]
Purpose:
    Adding testing files for h4toh5 converter
    these files are parts of files that test different datatype sds objects.
Description:
    see above
Solution:
Platforms tested:
     eirene,arabica,gondolin,paz,hawkwind
2000-11-08 17:16:57 -05:00
MuQun Yang
1e7480ad63 [svn-r2824]
Purpose:
     Add testing files for h4toh5 converter
     test files for testing dimensional scale dataset and unlimited dimension case
Description:
     see above
Solution:
Platforms tested:
     eirene,arabica,hawkwind,paz,gondolin
2000-11-08 17:09:31 -05:00
MuQun Yang
f1fb40c1a1 [svn-r2823]
Purpose:
    add several files to test h4toh5 converter on hdf image with different datatype
Description:
    see above
Solution:
Platforms tested:
    eirene,hawkwind,arabica
2000-11-08 17:02:58 -05:00
MuQun Yang
900701f5ae [svn-r2822]
Purpose:
     Add two test files for testing h4toh5 converter to convert image objects associated with attribute and image.
Description:
    see above
Solution:
Platforms tested:
    arabica,eirene,hawkwind
2000-11-08 16:59:02 -05:00
MuQun Yang
73b643a697 [svn-r2821]
Purpose:
     add a hdf4 file to test converter for converter object annotation into hdf5 attribute
Description:
     see above
Solution:
Platforms tested:
     eirene,hawkwind,arabica
2000-11-08 16:54:14 -05:00
MuQun Yang
771c8b333c [svn-r2820]
Purpose:
    adding an hdf4 testing file for annotation
Description:
    see above
Solution:
Platforms tested:
     eirene,hawkwind,arabica
2000-11-08 16:51:26 -05:00
MuQun Yang
7ae3c459ad [svn-r2819]
Purpose:
    add more hdf4 test files for converter
Description:
    in this script, run CONVERT test files
Solution:
    Add CONVERT h4file h5file in this script
Platforms tested:
     eirene,hawkwind,arabica
2000-11-08 16:42:28 -05:00
Albert Cheng
0556db98e2 [svn-r2794] Purpose:
"bug fix"
Description:
    the h5ls tests sometimes failed because the tool sometimes prints
    the tool name in the help message as "lt-h5ls" while the
    expected result has it as "h5ls".  This was the tools pulled its
    name from argv[0].
Solution:
    Hardcode the progname as "h5ls" and blocked out the code that
    pulls the program name from argv[0].  The better solution is
    to find a way to create the real binary with the orginal tool
    name.
Platforms tested:
    linux
2000-11-03 00:12:47 -05:00
Albert Cheng
48b4b45481 [svn-r2790] Purpose:
new feature
Description:
h5tools.c:
    Created h5tools_init() and h5tools_close() for the initialization
    of the h5tools library and closing of it.  With this, the rawdatastream
    and other internal structures can be initialized properly.
h5tools.h:
    added prototypes for h5tools_init and h5tools_close.
h5dump.c:
h5ls.c:
    Added the calls for h5tools_init() and h5tools_close().
Platforms tested:
    IRIX64 -64 parallel and Linux
2000-11-01 23:59:51 -05:00
Robb Matzke
189ed5eb75 [svn-r2785] ./hdf5/tools/h5ls.c
* 2000-10-31 Robb Matzke  <matzke@llnl.gov> (main)
	Backed out last change -- h5ls is a serial application and is
	never run with mpirun.
2000-10-31 15:51:58 -05:00
Robb Matzke
350fa2af78 [svn-r2781] ./hdf5/tools/h5ls.c
* 2000-10-31 Robb Matzke  <matzke@llnl.gov> (main)
	Added calls to MPI_Init() and MPI_Finalize() for parallel
	versions in order to prevent errors about unrecognized
	command-line options.
2000-10-31 14:40:59 -05:00
Robb Matzke
e6f4a8d4fa [svn-r2779] ./hdf5/tools/testfiles/tnestcomp-1.ls
* 2000-10-31 Robb Matzke  <matzke@llnl.gov>
	Expected h5ls output.
2000-10-31 13:10:21 -05:00
Robb Matzke
334d130322 [svn-r2778] ./hdf5/tools/testfiles/tcomp-1.ls
* 2000-10-31 Robb Matzke  <matzke@llnl.gov>
	Expected h5ls output.
2000-10-31 13:10:19 -05:00
Robb Matzke
f5d8780b66 [svn-r2777] ./hdf5/tools/testfiles/tall-2.ls
* 2000-10-31 Robb Matzke  <matzke@llnl.gov>
	Expected h5ls output.
2000-10-31 13:10:18 -05:00
Robb Matzke
acf6b83365 [svn-r2776] ./hdf5/tools/h5ls.c
* 2000-10-31 Robb Matzke  <matzke@llnl.gov> (dump_dataset_values)
	The `float' and `double'
	values are displayed with the full precision instead of just the
	default `%g'.
2000-10-31 13:10:17 -05:00
Bill Wendling
972b9252b8 [svn-r2771] Purpose:
Reformatting
Platforms tested:
	Linux
2000-10-31 11:32:21 -05:00
Robb Matzke
718b67a143 [svn-r2770]
Purpose:
	Testing
Description:
	The h5ls test script only looked at exit status.
Solution:
	Created expected output files and compare actual output
	with expected output.
Platforms tested:
	i686-pc-linux
2000-10-31 11:29:57 -05:00
Robb Matzke
9a6bb96913 [svn-r2769] ./hdf5/tools/testh5ls.sh
* 2000-10-31 Robb Matzke  <matzke@llnl.gov> (verbose)
	Compares output to expected
	files. This should work just fine because we're not using the `-v'
	option which prints datatypes in a machine-dependent way.
2000-10-31 11:18:49 -05:00
Robb Matzke
18e823ff42 [svn-r2768] ./hdf5/tools/h5tools.h
* 2000-10-31 Robb Matzke  <matzke@llnl.gov>
	Reindented.
2000-10-31 11:18:47 -05:00
Robb Matzke
3c2dfa4bab [svn-r2767] ./hdf5/tools/h5tools.c
* 2000-10-31 Robb Matzke  <matzke@llnl.gov> (h5dump_sprint)
	The whitespace added for
	indentation after the line-feed kludge is performed only if a
	line-feed was actually inserted.  This fixes funny-looking h5ls
	output that had `    %s' sequences appearing in nested compound
	datatypes.
	Also added a prominent warning in the code to indicate that when a
	line-feed is inserted into the string that column number
	calculations will be incorrect and object indices will be missing.
2000-10-31 11:18:45 -05:00
Bill Wendling
bf78260a06 [svn-r2738] Purpose:
Bug Fix
Description:
	People need to type in the full-path to the
	attribute/dataset/etc. and weren't being told to do so by the
	"usage" statement.
Solution:
	Added an example and changed <names> to <path> to be more
	explicit...
2000-10-25 14:25:55 -05:00
Bill Wendling
47c0884e1f [svn-r2737] Purpose:
Feature
Description:
	Allow dumping of variable length records. This is a first-time
	stab at this. It doesn't break any tests on my Linux box and it
	does output the variable length data, but it might look ugly (it
	doesn't handle new-lines as of yet)...I'm open to suggestions on
	what should be done next, what new features to add/remove...
Platforms tested:
	Linux
2000-10-25 14:07:05 -05:00
Albert Cheng
136fbe5335 [svn-r2733] Purpose:
New tests
Description:
    Added a new test file (tsaf.h5) for h5dump and h5ls.  The test file was
    created by lib SAF team.  This file used to cause previous version
    of hdf5 tools to core dump.
    tsaf.ddl is the expected output from h5dump.
Platforms tested:
    IRIX64 -64, linux
2000-10-24 17:07:09 -05:00
Albert Cheng
2f3e8498cb [svn-r2732] Purpose:
New tests
Description:
    Added a new test file (tsaf.h5) for h5dump and h5ls.  The test file was
    created by lib SAF team.  This file used to cause previous version
    of hdf5 tools to core dump.
Platforms tested:
    IRIX64 -64, linux
2000-10-24 17:06:39 -05:00
Albert Cheng
810d2979cc [svn-r2724] Purpose:
new feature
Description:
    h5ls was not tested
Solution:
    Added a test script, testh5ls.sh, to give h5ls some tests.
    Since the output from h5ls is sometime machine dependent (e.g.,
    Datatypes), can not compare them with expected output.  For now,
    run it against various hdf5 binary files.  If it exits with 0,
    consider it passes.
Platforms tested:
    IRIX64, eirene, arabica.
2000-10-24 13:31:49 -05:00
Albert Cheng
7b7a34b33d [svn-r2723] Purpose:
tidy it up
Description:
    Change the variable names so that it looks more generic.  Plan to
    make it a generic script test template.
Platforms tested:
    IRIX64-64, linux, solaris 2.7
2000-10-24 13:28:54 -05:00
Quincey Koziol
6aa0dd1620 [svn-r2722] Purpose:
Feature symmetry
Description:
    A while ago I needed to get the 'type' of data being accessed during writes
    to the VFL driver, so I put in code to get the information down there.
    Albert asked for the same information during reads, so I've added that in.
Tested:
    FreeBSD 4.1.1 (hawkwind)
2000-10-24 13:18:09 -05:00
MuQun Yang
3cea3093c8 [svn-r2691]
Purpose:
    1. fix multiple defination warnings at sgi platform
    2. adding chunking information from hdf4 to hdf5 property list.
Description:
    1. Orginally global varibles were defined at one header file and this
       header file were included by other .c file and .h file so multiple warnings are
       generated.
    2. Chunking information was not included in the previous version.
Solution:
    1. use "extern" to define global variables at h4toh5util.h file and define global variables
       at h4toh5main.c
    2. retrieve the chunking info from sdgetchunkinfo and GRgetchunkinfo and store these information
	into hdf5 property list.
Platforms tested:
      eirene,arabica,paz,gondolin
2000-10-17 22:48:10 -05:00
Albert Cheng
3609fc24e7 [svn-r2682] Purpose:
Bug fix
Description:
    gmake check had been failing because of errors in the Makefile.
Solution:
    Fixed it so that libtools.a got build first.
Platforms tested:
    Eirene (Linux)
2000-10-13 00:09:30 -05:00
Albert Cheng
fcfecf9ff2 [svn-r2680] Purpose:
Bug fix (ID 419)
Description:
    Converted strings class types (in dataset and attributes) to
    HDF4 type of DFNT_INT8.  Should have been DFNT_CHAR type.
Solution:
h5toh4.c:
    Changed the HDF4 type from DFNT_INT8 to DFNT_CHAR type.
    Converted all hdf5 strings (be it NULLTERM, NULLPAD, SPACEPAD)
    all to fixed width space padded HDF4 DFNT_CHAR.
testh5toh4:
    Added the testing of $HDF_NOCLEANUP before cleaning away the result files.
testfiles/Expected/tattr.hdf:
testfiles/Expected/tstr.hdf:
testfiles/Expected/tstr2.hdf:
    Updated with the corrected DFNT_CHAR type.
Platforms tested:
    Solaris 2.7, Linux, Irix 6.5.
2000-10-12 21:32:25 -05:00
MuQun Yang
0c70d84368 [svn-r2678]
Purpose:
    fixing output format of character array converted from hdf4 vdata.
Description:
    Now one dimensional chactacter array can be outputed as one H5 string instead of string of array before.
Solution:
   modify gen_h5comtype() so that when we detect the datatype is hdf5 string, we will merge hdf4 fieldorder into H5T string size and output the whole character array into  hdf5 string(with string size = size of the array length).
Platforms tested:
    eirene(LINUX), arabica(sun 5.6)
2000-10-12 18:33:22 -05:00
MuQun Yang
13bd74e122 [svn-r2676]
Purpose:
   Update the test file vg.h5
Description:
Solution:
Platforms tested:

eirene(LINUX),arabica,baldric(SUN 5.6),paz(IRIX6.5),gondolin(DEC),opus(HP-UX11)
2000-10-12 17:54:31 -05:00
MuQun Yang
bddc59c0ea [svn-r2675]
Purpose:
    fix "zero memory" routine  and change dimensional scale name size to MAX_DIM_NAME
Description:
    change bzero into h4toh5_ZeroMemory
    change dimensional scale name size(orginally MAX_NC_NAME) to MAX_DIM_NAME at converter.
Solution:
    see description
Platforms tested:
arabica,baldric,gondolin(DEC),opus(HP 11),eirene(Linux),paz(IRIX6.5)
2000-10-12 17:52:28 -05:00
MuQun Yang
8abdfea352 [svn-r2674]
Purpose:
    1. fix size of dimensional name list so that the size of dimensional name in dumper output
will not change because of different versions of hdf library(h4toh5util.h and h4toh5sds.c).
    2. fix bzero routine for windows platform(h4toh5util.h,h4toh5util.c,h4toh5anno.c,h4toh5main.c,
	h4toh5sds.c)
Description:
    1. change the MAX_DIM_NAME into 276(MAX_NC_NAME +dimension group name) and hopefully we will
    not expand the size of MAX_NC_NAME(currently 256) for a long time.
    2. create a new routine(h4toh5_ZeroMemory) to zero out memory. Use ZeroMemory in windows and
	bzero at UNIX.
Solution:
    see Description.
Platforms tested:
    LINUX(eirene),WINDOWS 2000, sun 5.6(baldric and arabica),HP-UX11(opus),DEC(gondolin),IRIX 6.5(paz).
2000-10-12 17:47:38 -05:00
Quincey Koziol
123072a922 [svn-r2653] Purpose:
No change.
Description:
    Must've added some debuging printf's and then took them out in a way which
    triggered CVS.
Platforms tested:
    Solaris 2.6 (baldric) & FreeBSD 4.1.1 (hawkwind)
2000-10-10 02:44:33 -05:00
Bill Wendling
452ee91027 [svn-r2643] Purpose:
Adding Testing
Description:
	Alignment when putting elements in a compound datatype can be
	off.
Solution:
	This was a bug which I'd fixed. Here's a program to exercise the
	bug.
Platforms tested:
	Linux
2000-10-09 15:41:03 -05:00
Bill Wendling
ff7a1a267d [svn-r2637] Purpose:
Format changes
2000-10-06 15:30:13 -05:00
Quincey Koziol
06d7d3b5ad [svn-r2636] Purpose:
Bug Fix
Description:
    Test was not detecting hdp tool from HDF 4.1r4 correctly.
Solution:
    Modified test to detect HDF4.1r[3-9] correctly.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-10-05 13:03:26 -05:00
Bill Wendling
ea7f4421f9 [svn-r2634] Purpose:
Bug fix
Description:
	In the h5dump_fixtype function, when users created a COMPOUND
	datatype, the alignment would be off somewhat.
Solution:
	The alignment was being set after insertion. I changed this code:

	for (i = 0, offset = 0; i < nmembs; i++) {
	    H5Tinsert_array(m_type, name[i], offset, ndims[i], dims + i * 4,
			    NULL, memb[i]);

	    for (j = 0, nelmts = 1; j < ndims[i]; j++)
		    nelmts *= dims[i * 4 + j];

            offset = ALIGN(offset, H5Tget_size(memb[i])) +
	    			nelmts * H5Tget_size(memb[i]);
	}

	to:

	for (i = 0, offset = 0; i < nmembs; i++) {
            if (offset)
                offset = ALIGN(offset, H5Tget_size(memb[i]));

	    H5Tinsert_array(m_type, name[i], offset, ndims[i], dims + i * 4,
			    NULL, memb[i]);

	    for (j = 0, nelmts = 1; j < ndims[i]; j++)
		    nelmts *= dims[i * 4 + j];

	    offset += nelmts * H5Tget_size(memb[i]);
	}

	The alignment is now calculated before the insertion.
Platforms tested:
	Solaris, Linux
2000-10-05 11:56:30 -05:00
Bill Wendling
c59d21041d [svn-r2632] Purpose:
Bug
Description:
	The testh5toh4 was removing all .h5 files from the testfiles
	directory, however, with the addition of testh4toh5, we need some
	.h5 files in there.
Solution:
	Changed the scripts so that an output directory is created for
	all of the processed files. This is removed after the test is
	finished.
Platforms tested:
	Linux
2000-10-04 11:57:04 -05:00
Albert Cheng
9413c52951 [svn-r2627] Purpose:
Bug fix
Description:
    Attempted to close rawdatastream even if it has not been
    used to open a new file.  Many systems tolerated the NULL
    value but not FreeBSD.
Solution:
    Check for the NULL value too.
Platforms tested:
    hawkwind (freeBSD) and modi4 parallel.
2000-10-02 13:06:20 -05:00
Albert Cheng
375e1d4d77 [svn-r2626] Purpose:
New Feature
Description:
    Add -o option to h5dumper. It displays the raw data of datasets to a
    separate output file.
    Add a feature to h5tools library that it uses the FILE *rawdatastream
    as the stream for the display of datasets raw data.
Solution:
    Define an "extern FILE *rawdatastream" in h5tools.h
    and declare it in h5tools.c.  This way, it would work
    even if an application does not explicitely declare it.
    Tried to initialized it to stdout as
	FILE *rawdatastream = stdout;
    but Linux gcc rejected it though all other platforms+compilers
    accepted it fine.  For now, put in a kludge to set it right
    before it is used.  Need a safer way to initialize it.
Platforms tested:
    arabica, eirene, modi4 -64.
2000-09-30 12:27:18 -05:00
Albert Cheng
5e8a177dd8 [svn-r2625] Purpose:
Bug fix and feature
Description:
    It could not find a working h5dump to process the hdf5 files.
    This could be because h5dump is not installed in $PATH or
    a disfunctional one is found. (E.g. arabica:/usr/sdt/bin/h5dump
    does not work.)
    Setting it to ./h5dump or $PWD/h5dump does not work because
    when h5dump is used, it has "cd testfiles", a different place.
Solution:
    Set H5DUMP with the current absolute path (used `pwd` instead
    of $PWD which is sometimes not set for whatever reason.)
    Also add a feature to allow H5DUMP to be set to a different
    value by hand.  For example, if the h5dump just built is not
    working correctly, one can do "H5DUMP=/usr/local/bin/h5dump make check"
    to bypass the broken h5dump.
Platforms tested:
    arabica
2000-09-30 11:16:47 -05:00
Albert Cheng
9bde1f17f8 [svn-r2623] Purpose:
Reformat the source
Description:
    The tabstop seems to defined different from 8-stops.  The
    source files looked very confusing.  Just reformate the
    files.  Not change to source code at all.
Platforms tested:
    modi4 -64.
2000-09-29 22:31:08 -05:00
MuQun Yang
ef190ad4fc [svn-r2619]
Purpose:
    update testh4toh5
Description:
    change h5dump path at testh4toh5
Solution:
Platforms tested:
    arabica, baldric, eirene
2000-09-29 15:38:39 -05:00
MuQun Yang
b2016500e5 [svn-r2616]
Purpose:
    add h4toh5 converter source codes under tools directory.
Description:
    this is the expected hdf5 result for h4toh5 converter.
Solution:
    [details about the changes, algorithm, etc...]
    [Please as detail as you can since your own explanation is
    better than others guessing it from the code.]
Platforms tested:
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2000-09-28 15:53:04 -05:00
MuQun Yang
5a1ad31626 [svn-r2615]
Purpose:
    add h4toh5 converter source codes under tools directory.
Description:
    this is the test file for h4toh5 converter.
Solution:
    [details about the changes, algorithm, etc...]
    [Please as detail as you can since your own explanation is
    better than others guessing it from the code.]
Platforms tested:
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2000-09-28 15:52:26 -05:00
MuQun Yang
9918e0e06e [svn-r2614]
Purpose:
    add h4toh5 converter source codes under tools directory.
Description:
    [describe the bug, or describe the new feature, etc]
Solution:
    [details about the changes, algorithm, etc...]
    [Please as detail as you can since your own explanation is
    better than others guessing it from the code.]
Platforms tested:
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2000-09-28 15:51:45 -05:00
MuQun Yang
da81e18888 [svn-r2613]
Purpose:
     add h4toh5 converter tool
Description:
     add flag h4toh5 and testh4toh5 in the Makefile.
Solution:
    [details about the changes, algorithm, etc...]
    [Please as detail as you can since your own explanation is
    better than others guessing it from the code.]
Platforms tested:
    test on eirene and arabica.
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2000-09-28 15:46:31 -05:00
Quincey Koziol
22867dca0e [svn-r2579] Purpose:
Clean up small compiler warnings and add missing function prototypes.
Platforms tested:
    FreeBSD 4.1
2000-09-19 16:08:15 -05:00
Robb Matzke
f2caef690b [svn-r2573] Purpose:
Fix Irix pmake bugs
Description:
	Build fails on Irix when builddir != srcdir
Solution:
	* acconfig.h
	* src/H5config.h.in			[REGENERATED]
		Added definition for HAVE_STREAM

	* config/conclude.in
	* config/depend1.in
	* config/depend2.in
	* config/depend3.in
	* config/depend4.in
		The `Dependencies' file is located in the source
		tree. This fixes bugs for Irix pmake when compiling
		outside the source tree.  Hopefully it still preserves
		Albert's changes which allow concurrent compilations
		to not stomp on each other's Dependencies files.


	* examples/Dependencies			[REGENERATED]
	* src/Dependencies			[REGENERATED]
	* test/Dependencies			[REGENERATED]
	* tools/Dependencies			[REGENERATED]
		Regenerated for testing purposes.
Platforms:
	i686-pc-linux
	mips-sgi-irix6.5
	sparc-sun-solaris2.6
2000-09-19 12:04:46 -05:00
Thomas Radke
b374a9c504 [svn-r2563] Purpose:
Added the Stream Virtual File Driver to the list of drivers
     used for trying to open a file via h5dump_fopen().

Description:
     The Stream VFD was added at bottom of the driver list for h5dump_fopen().
     If no driver succeeded to open a file given by its filename
     the Stream VFD would try to do so by parsing the filename as an
     'hostname:port' argument, open a socket to that address and read
     read the file.

     This feature can be used to h5ls/h5dump streamed files.

Platforms:
     All platforms (also between heterogenous).
2000-09-15 07:05:41 -05:00
Bill Wendling
1a50cbd737 [svn-r2549] Added usage message if the user doesn't specify a filename (i.e., no
command line arguments are given).
2000-09-14 12:26:37 -05:00
Bill Wendling
52857497ee [svn-r2467] Changed type so that compiler warnings about implicit conversion were
removed.
2000-08-04 17:17:23 -05:00
Bill Wendling
3750200354 [svn-r2462] Fixed some small compiler warnings. 2000-08-04 15:47:22 -05:00
Bill Wendling
a01ff43d8d [svn-r2461] Made some of the functions prototypes so that the compiler wouldn't
complain.
2000-08-04 15:41:57 -05:00
Bill Wendling
facbe5ba38 [svn-r2460] Fixed some comparisons between signed and unsigned values. Made some of
the functions prototypes so that the compiler wouldn't complain about
them.
2000-08-04 15:41:26 -05:00
Albert Cheng
d69ff2516a [svn-r2419] Setup PUB_PROGS so that all tools but h5dumptst will be installed.
h5dumptst generates the test suits files.  It is not a user tool.
2000-06-27 14:02:20 -05:00
Albert Cheng
3c69d8be86 [svn-r2417] Include sys/stat.h in case it is not included in some platforms
like Cray T90.  Tested on linux.
2000-06-27 12:57:00 -05:00
Robb Matzke
96f9f1859b [svn-r2412] Fixed a variety of problems with the new H5ToolsFopen() function.
1. The `driver' table is initialized only once, making it faster and
     leaking less memory.
  2. The returned driver name is set to the empty string on failure.
  3. Added an argument so the function cannot overwrite the end of the
     drivername return value.
  4. Avoids core dump when assigning driver name to return value if the
     file could not be opened by any driver.
  5. Changed name of function to h5dump_fopen() to follow the naming
     scheme for this source file.
  6. Reindented according to hdf5 code standard.
  7. Added `const' qualifiers to read-only formals.
  8. Removed duplicate forward declaration.

Reindented some parts of these source files that had very odd indentation
(some lines had no indentation while others had 3x what they should).

Fixed calls to H5ToolsFopen() function.
2000-06-23 12:52:21 -05:00
Patrick Lu
6e7c3212d3 [svn-r2359] added the comments back to the part of the code that is setting up the file
drivers array.
2000-06-07 12:39:57 -05:00
Patrick Lu
4d16bcfecb [svn-r2341] took the code out of h5ls to open files using different drivers and created a function in the tools
library for it(H5ToolsFopen-takes a filename and a char ptr if you want the name of the driver)

added the function to h5tools.c, a header to h5tools.h and changed h5ls.c and h5dump.c to use the new
functions
2000-06-06 13:07:20 -05:00
Patrick Lu
0264342a3e [svn-r2308] added a funtion to create a bitfields test file. just used the code from the dataset
test file
2000-05-31 11:22:38 -05:00
Patrick Lu
cee9fa8a0e [svn-r2307] test file for the bitfields test. i used the bitfield parts of the dataset test file 2000-05-31 11:21:36 -05:00
Patrick Lu
8750cf4c3a [svn-r2306] ddl for the bitfields test file 2000-05-31 11:20:56 -05:00
Patrick Lu
7f5c264ce4 [svn-r2305] took out the line that said the bitfields are not supported in the dumper.
now it will dump bitfields using the the tools lib like h5ls does.
2000-05-31 11:08:10 -05:00
Patrick Lu
2d7cee1e9f [svn-r2304] *** empty log message *** 2000-05-30 11:54:44 -05:00
Patrick Lu
a0e559aee5 [svn-r2294] fixed the output of the options list so that the xml options text is aligned 2000-05-26 13:58:27 -05:00
Patrick Lu
e27ec06855 [svn-r2291] update the ddl to match the output the dumper is generating now for the
compound types.  (the indentation for the curly brace at the end of the
compound type is aligned with the top brace)
2000-05-25 12:13:20 -05:00
Patrick Lu
69ca8832e6 [svn-r2290] fixed the indenting error related to compound types. 2000-05-25 12:08:45 -05:00
Patrick Lu
f782d80d00 [svn-r2280] more complicated test file for nested compounds. copied from Elena's test file 2000-05-19 10:52:59 -05:00
Patrick Lu
2b4672286c [svn-r2279] copied Elena's code for a more complicated testfile for the nested compound types 2000-05-19 10:52:10 -05:00
Patrick Lu
853923360d [svn-r2278] changed the nested compound test. copied Elena's code from her test file for nested comp types.
more complicated test case
2000-05-19 10:50:46 -05:00
Robb Matzke
bc520e88b4 [svn-r2262] * 2000-05-18
** src/H5Tconv.c
** src/H5Tpkg.h
** src/H5Tpublic.h
	The H5T_conv_struct_opt() function had a design flaw -- it
	didn't keep information about the stride to use to step
	through the temporary/background-value buffer and thus nested
	invocations would clobber each other's temp buffers.  This was
	fixed by splitting the `stride' argument into `buf_stride' and
	`bkg_stride' arguments for all the conversion functions. THIS
	IS AN API CHANGE, but users will get a compiler warning when
	they pass their conversion function pointer to H5Tregister().

** src/H5T.c
** src/H5Tprivate.h
	Added a bkg_stride argument to the H5T_convert() definition in
	order to fix a bug related to the optimized compound datatype
	conversion function.

** src/H5T.c
** src/H5A.c
** src/H5D.c
** src/H5Ofill.c
** src/H5P.c
	Added bkg_stride=0 argument to the H5T_convert() calls.

** test/dtypes.c
	Added a test for the H5T_conv_struct_opt() bug fixed above.

** src/H5FL.c
	The H5FL_term() function should return non-zero even when it
	couldn't free all the free lists do to their being used by
	some other package.  When that other package terminates it
	will return non-zero, causing H5FL_term() to be called
	again. This fixes some of the `infinite loop closing library'
	messages.

** tools/pdb2hdf
	Uses print_version() instead of doing that itself.

** src/H5Ppublic.h
	Renamed H5Pget_gc_reference() declaration to make it match the
	definition.

** src/H5FDlog.c
	Added API tracing macros.

	Removed `const' qualifier from a `char*' member of a struct
	which was allocated on the heap.

** src/H5TB.c
	Added curly braces to a couple deeply-nested `if' statements
	to make them clearer and to shut up the increadibly stupid and
	just plain incorrect gcc warning about ambiguous `else'.

** test/titerate.c
	Removed incomplete initialization in favor of memset() for one
	auto variable to stop compiler warnings.

** tools/Depencencies
	Regenerated to remove references to h5dumputil.c
2000-05-18 11:40:20 -05:00
Patrick Lu
1f6bb057e0 [svn-r2256] same changes i did for the release version. (fixed bug in dangermouse... added
an extra conditional)
2000-05-16 11:57:46 -05:00
Albert Cheng
0662396e13 [svn-r2243] h5dump.c: Removed some Carriage-return's
h5tools.c h5tools.h:
    Modified print_version() to use const char * argument instead.
2000-05-11 17:18:44 -05:00
Albert Cheng
e02e441734 [svn-r2242] Removed h5dumputil.c. Its functions have been migrated to h5tools.c. 2000-05-11 17:15:12 -05:00
Patrick Lu
6f5d6505a1 [svn-r2232] removed the conditional compile statements that we were going to use
for the merged tools lib since these files do not require the tools lib
2000-05-09 13:14:33 -05:00
Patrick Lu
23f2575276 [svn-r2229] added semicolons after the opaque info 2000-05-09 12:01:24 -05:00
Patrick Lu
f474a09365 [svn-r2228] added a semicolon after the opaque info is printed 2000-05-09 12:00:38 -05:00
Patrick Lu
dca5c02b31 [svn-r2218] forgot the header to the ddl. just tells what hte command to generate the file was 2000-05-05 11:27:40 -05:00
Patrick Lu
019f267759 [svn-r2216] the ddl file for the topaque.h5 file 2000-05-04 12:09:36 -05:00
Patrick Lu
6473bd2a11 [svn-r2215] the new opaque file. has a 2d array. the first array is from 0-99 and the
is from 99-0.
2000-05-04 12:07:20 -05:00
Patrick Lu
295fbf3b82 [svn-r2214] added support for the opaque type.
prints out the data section in hexidecimal format.
in the h5dumptst.c i added a function to create an opaque test file.
2000-05-04 12:05:09 -05:00
Patrick Lu
ae5c998516 [svn-r2211] took the development branch code and moved it into the release. had to add some
conditional compile statements in the code to compile for the release.
defined a VERSION12 and VERSION13 macro.  all changes were surrounded by these statements
2000-05-03 10:48:20 -05:00
Quincey Koziol
75574e92e1 [svn-r2189] Fixed some compiler warnings 2000-04-22 15:45:29 -05:00
Robb Matzke
7a52d6ce9b [svn-r2180] ./src/tools/h5tools.c
Added hyphen to version printf format.

	./src/tools/h5ls.c
		Calls print_version() instead of doing it by hand.
2000-04-21 14:28:09 -05:00
Patrick Lu
8a006fd0ca [svn-r2167] i removed unneeded code from the tool lib.
from h5tools.h just got rid of a prototype for copy_atmoic_char which was never used

in the h5tools.c i removed the copy_atomic_char, all the display_*_data, where the * is numeric, string
or compound, the print_data, h5dump_attr. also removed a block of codfe that was surrounded by #if 0
2000-04-20 11:53:57 -05:00
Quincey Koziol
7438609ee2 [svn-r2162] Various small fixes to address SGI compiler warnings. 2000-04-19 18:11:06 -05:00
Patrick Lu
395326672c [svn-r2156] changed a comment that is no longer relevant and moved some code around in the dump_simple_prefix
funtion.  all i did was take some code that was common to both the if and then conditions out.
2000-04-19 13:14:36 -05:00
Patrick Lu
173260ac41 [svn-r2155] fixed the error in the h5ls output. it is now printing like it did before the tools lib merge.
prints the index numbers.  moved the lines that were doing indenting into the conditionals.
2000-04-19 13:08:11 -05:00
Raymond Lu
f087c55d10 [svn-r2139] Change the global static variable 'status' to 'd_status' in this file. Same name appears as an external variable in SRB library, causing conflict. 2000-04-13 10:19:12 -05:00
Robb Matzke
d9b36b8a7f [svn-r2089] ** tools/h5ls.c
Prints the subrelease name also.

** tools/h5tools.c
	Fixed indentation problems in the first half of the file.

	Changed conditional compilation style from `/*...*/' to use
	#if 0/#endif in the first half of this file.

	Removed some extra parentheses to make expressions more readable.
2000-04-07 10:27:48 -05:00
Patrick Lu
64abaedc8b [svn-r2054] update the files since i hanged the hdf 5 versions of them.
the h5toh4 tests were not passing.
2000-03-23 12:13:34 -05:00
Patrick Lu
1ee399e491 [svn-r2052] the new ddls for the new versions of the testfiles just created(tall.h5, tcompounnd.h5, tnestedcomp.h5)
the data is not as simple as before. rows are not repeated and rows are not just 1 number repeated
2000-03-23 10:38:14 -05:00
Patrick Lu
1bb9912f80 [svn-r2051] update the test files so that their data is a little more vaired.
the elements in the rows are different values and rows are not repeated.
2000-03-23 10:31:21 -05:00
Patrick Lu
a997660b18 [svn-r2050] changed the data for the tall.h5, tcompound.h5 and tnestedcomp.h5 test files.
the data is not as simple as it was before. all elements in a row are different
values now and rows are no longer repeated.
2000-03-23 10:27:34 -05:00
Patrick Lu
35b8c2baf0 [svn-r2046] added a test for the tnestedcomp.h5 test. 2000-03-21 12:59:28 -05:00
Patrick Lu
50500e3672 [svn-r2045] fixed a type that had the endian to be little. I created the file on my NT machine but
the testfile on baldirc.
2000-03-21 12:58:18 -05:00
Patrick Lu
f8fc02abce [svn-r2043] testfile for the nested compound types 2000-03-21 12:48:08 -05:00
Patrick Lu
861af95729 [svn-r2042] ddl for the testfile tnestedcomp.h5 2000-03-21 12:47:40 -05:00
Patrick Lu
5536ff167e [svn-r2041] added a new test file creation function. test_nsetcomp. creates a file
that has nested compound types in it.
2000-03-21 12:44:01 -05:00