summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
Commit message (Collapse)AuthorAgeFilesLines
...
* [svn-r13134] Pedro Vicente Nunes2007-01-101-96/+172
| | | | | | | | | | New version of the function h5tools_dump_simple_subset, to display subsetting. The new algorithm is: Introduced an outer loop for cases where dimensionality is greater than 2D. In each iteration a 2D block is displayed by rows in a inner loop. The remainning slower dimensions above the first 2 are incremented one at a time in the outer loop Note: when blocks are introduced, the display is not correct. This is a bug that requires an improvement of the algorithm.
* [svn-r13064] Pedro Vicente Nunes2006-12-141-51/+85
| | | | | | | | | | | | | | | | | | | Fix several bugs 1) the parsing of subsetting was using atoi to convert the parameter to an int, which caused problems for numbers greater that int. Substitute with atof 2) the printing of indices in the subsetting case was not being done. Solution: calculate the element position at the start of the subsetting using the algorythm Given an index I(z,y,x) its position from the beginning of an array of sizes A(size_z, size_y,size_x) is given by Position of I(z,y,x) = index_z * size_y * size_x + index_y * size_x + index_x And pass that position to the function that dumps data, h5tools_dump_simple_data. 3) several index counters were declared as int, use hsize_t instead 4) modified the test generation program so that it includes test cases for subsetting of 1d, 2d, 3d, and 4d arrays and add these tests to the shell script
* [svn-r12784] Pedro Vicente Nunes2006-10-191-11/+0
| | | | | | | | | | | | | | | | | Fixes for bugs 676, 228 676: both h5repack and h5diff use H5Dread. In the case of a "big" dataset, use read/write by hyperslabs the same way h5dump uses. An arbitrary value of 1GB was defined for "big", i.e, if the dataset is greater than 1GB, then read/write by hyperslabs 228: use the file type in read/write by default. A new switch -n was introduced if the user wants to use a native type, which was the previous use by default. Added a new test for h5repack that repacks a 1GB dataset Tested: heping (serial, parallel), sol, copper
* [svn-r12736] Description:Quincey Koziol2006-10-091-1/+1
| | | | | | | | | | | | | | | | | | | Add "use the latest format" support for dataspace object header encode/ decode routines and clean up format a bit for the latest format (new to 1.8.x releases) Remove storing 'perm' parameter for array datatypes in memory and the file, and add test to make certain that if any user applications are attempting to store them, we get some reports back. (Should be unlikely, since the RefMan says that the parameter is not implemented and is unsupported). Carry those changes into the tests, etc. Clean up a bunch more compiler warnings. Tested on: FreeBSD/32 4.11 (sleipnir) w/threadsafe Linux/32 2.4 (heping) w/FORTRAN & C++ Linux/64 2.4 (mir) w/enable-1.6-compat
* [svn-r12634] Purpose:Albert Cheng2006-08-281-10/+4
| | | | | | | | | | | | Code cleanup. Description: Removed argc and argv from the function arguments of h5tools_get_fapl() and h5tools_fopen(). They were used to call MPI_Init() which was no longer needed. Tested: heping (serial and parallel).
* [svn-r12534] Purpose:Albert Cheng2006-08-041-42/+24
| | | | | | | | | | | | | | | | | | | | | | | | Bug fixes. Description: There were MPI_init and MPI_finalize calls in the code of h5tools_fopen in parallel mode. But if a non-MPI tool is invoke to open a non-existing file, it tries to open the non-existing file with different VFD and eventaully came to try with the MPIO or the MPIPOSIX vfd, then it would try to do MPI_Init which would fail in the MPI environment if the a.out was not launched by MPI properly. Solution: MPI_Init and MPI_Finalize in general should be called by the MPI application, not called by a library subroutine as in the manner that was done here. Removed the MPI_init and MPI_Finalize calls. Used MPI_Initialized to verify if this has been launched as an MPI application in the proper manner before attempting to use the MPIO or the MPIPOSIX VFD to open the file. Tested: In tg-ncsa parallel, where it had failed explicitly and also in Heping, using both serial and parallel mode.
* [svn-r12528] Added User-Defined links to the library.James Laird2006-08-021-81/+81
| | | | | | | | | | | | | | Users can create external links using H5L_create_external(). These links point to an object in another HDF5 file. Users can alter the behavior of external links or create new kinds of links by registering callbacks using the H5L interface. Added tests, tools support, etc. Also a number of other, minor changes have been made (some restructuring of the H5L interface, for instance). Additional documentation and examples are forthcoming.
* [svn-r12518] h5dump binary output:Pedro Vicente Nunes2006-07-311-1/+0
| | | | | | | 1. changed the -F flag option names to "BE and "LE" for big and little endian 2. added a more verbose usage message for these options 3. add a new test 4. add a make clean instruction to *.bin
* [svn-r12513] Pedro Vicente Nunes2006-07-281-0/+4
| | | | | new feature h5dump binary output. use little and big endian type conversions
* [svn-r12504] Pedro Vicente Nunes2006-07-271-145/+163
| | | | | | | | | | | | bug fix calling h5tools_get_fapl running the mpio driver caused H5FD_pl_copy to fail silently in some conditions. a MPI call was made before MPI_Init. solution: corrected the MPI call to be made after MPI_Init and added error return conditions to H5FD_pl_copy and h5tools_get_fapl tested on copper parallel, mir, shanti
* [svn-r12474] Quincey Koziol2006-07-151-25/+25
| | | | | | | | Clean up some compiler warnings. Tested on: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r12444] Purpose:Pedro Vicente Nunes2006-06-281-1/+3
| | | | | | | | | | | | | | | | | | | | new feature Description: added support for h5dump to dump binary data using the file type format added one test to the test script that tests this Solution: Platforms tested: mir shanti copper Misc. update:
* [svn-r12440] Purpose:Quincey Koziol2006-06-271-4/+4
| | | | | | | | | | | Code cleanup Description: Trim trailing whitespace in Makefile.am and C/C++ source files to make diffing changes easier. Platforms tested: None necessary, whitespace only change
* [svn-r12437] Purpose:Pedro Vicente Nunes2006-06-261-10/+467
| | | | | | | | | | | | | | | | | | | | | | new feature. h5dump output of binary data Description: a new switch -b FILE_NAME that dumps the contents of memory data to file FILE_NAME in binary form new program binread.c that reads the contents of this file and outputs it to stdout added a test for the h5dump shell script that does a run of -b the binread.c program reads the data used in this run, usage is ./binread FILE_NAME Solution: Platforms tested: linux solaris AIX Misc. update:
* [svn-r11886] Purpose:Quincey Koziol2006-01-231-18/+11
| | | | | | | | | | | | | Code cleanup Description: Check in some of the code cleanups from working on the external link support. (This doesn't include any of the external link features) Platforms tested: FreeBSD 4.11 (sleipnir) Mac OSX.4 (amazon) Linux 2.4
* [svn-r11584] Purpose:Pedro Vicente Nunes2005-10-191-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | bug fix Description: an assertion after the search for objects was saying that the number of objects in file should be > 0 removed it, since there can be a case where the number of objects is 0. in this case this was found by a case where zlib was not present and the output file was not written any objects to note: this was only detected on the windows batch files, that do not have a conditional condition to not run tests when a filter is not present Solution: Platforms tested: linux Misc. update:
* [svn-r11297] Purpose:Quincey Koziol2005-08-251-1/+4
| | | | | | | | | | | | Code cleanup & speedup Description: Refactor h5dump & related code to be considerably cleaner & faster for files with large #'s of objects. Platforms tested: FreeBS 4.11 (sleipnir) Linux 2.4
* [svn-r11245] Purpose:Quincey Koziol2005-08-131-25/+25
| | | | | | | | | | | | | | | | | | | | Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r10738] Purpose:Pedro Vicente Nunes2005-05-091-1/+12
| | | | | | | | | | | | | | | | | | | bug fix 366 Description: the printing of the array indices was done relatively to the stripmine data (data read by hyperslabs when its memory requiremnts are too large) this was causing an incorrect numbering of the array indices (the next read would initialize the indices to zero) Solution: added a field to the print context that keeps track of the stripmine position and pass to the rendering function the total element position Platforms tested: Linux Misc. update:
* [svn-r9961] Pedro Vicente Nunes2005-02-081-1/+41
| | | | | | | | | | | | | | | | | | | | | | | Purpose: bug fix, new test file Description: h5dump was not properly displaying array indices > 3D Solution: added the same algorythm and data structure that h5diff uses to calculate the array index from a element number position Platforms tested: linux solaris Misc. update:
* [svn-r9727] Purpose:Quincey Koziol2004-12-291-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug Fix/Code Cleanup/Doc Cleanup/Optimization/Branch Sync :-) Description: Generally speaking, this is the "signed->unsigned" change to selections. However, in the process of merging code back, things got stickier and stickier until I ended up doing a big "sync the two branches up" operation. So... I brought back all the "infrastructure" fixes from the development branch to the release branch (which I think were actually making some improvement in performance) as well as fixed several bugs which had been fixed in one branch, but not the other. I've also tagged the repository before making this checkin with the label "before_signed_unsigned_changes". Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel & fphdf5 FreeBSD 4.10 (sleipnir) w/threadsafe FreeBSD 4.10 (sleipnir) w/backward compatibility Solaris 2.7 (arabica) w/"purify options" Solaris 2.8 (sol) w/FORTRAN & C++ AIX 5.x (copper) w/parallel & FORTRAN IRIX64 6.5 (modi4) w/FORTRAN Linux 2.4 (heping) w/FORTRAN & C++ Misc. update:
* [svn-r9531] Purpose: Bug fix(#213)Raymond Lu2004-11-161-0/+3
| | | | | | | | | | | | | Description: H5Pset_fapl_family sets family member size only for creating new file. The file doesn't keep this size information. When the file is re-opened, the size of first member file is used as the member size. Solution: Assume user knows the original member size and sets it through H5Pset_fapl_family. That will be the member size. User can pass in value 0 as member size if he doesn't know the original member size. Library will choose the size of current first member size as the member file size. Platforms tested: h5committest and fuss.
* [svn-r9395] Purpose:Quincey Koziol2004-10-101-5/+12
| | | | | | | | | | | Bug fix Description: Correct a couple of array bounds issues exposed by the PGI compiler Platforms tested: Linux 2.4 (verbena) w/PGI compilers Too minor too requie h5committest
* [svn-r9382] *** empty log message ***Quincey Koziol2004-10-081-10/+11
|
* [svn-r9370] Purpose:Quincey Koziol2004-10-061-11/+3
| | | | | | | | | | | | | | | Refactor code Description: Refactor common code for determining the native type for using in the tools into separate routine. Also, reduce diffs between the two branches and bring back some fixes from the development branch to the release branch. Platforms tested: FreeBSD 4.10 (sleipnir) too minor to require h5committest
* [svn-r9364] Raymond Lu2004-10-051-2/+9
| | | | | | | | | | | | Purpose: change feature Description: Back up support bitfield and time datatypes in H5Tget_native_type.Leave it to future support. Let it return "not supported" error message for now. Platforms tested: h5committest and fuss. Misc. update: RELEASE.txt
* [svn-r8840] Purpose:Pedro Vicente Nunes2004-07-081-3/+8
| | | | | | | | | | | | | | | | bug fix Description: when printing array indices , the calculation of the current column was not done correctly Solution: Platforms tested: linux AIX solaris Misc. update:
* [svn-r8773] Purpose:Pedro Vicente Nunes2004-06-301-4/+21
| | | | | | | | | | | | | | | | | bug fix Description: the indentation was not made properly for nested objects when printing array indices Solution: added the indentation to h5tools_simple_prefix function Platforms tested: linux AIX solaris Misc. update:
* [svn-r8622] Purpose:Pedro Vicente Nunes2004-06-071-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | h5dump new version Description: added the changes already made for 1.6 support for dumping of 1) filters 2) storage layout 3) fill value 4) comments 5) superblock 6) file contents 7) array indices Solution: Platforms tested: linux solaris AIX Misc. update:
* [svn-r8563] *** empty log message ***Raymond Lu2004-05-211-2/+6
|
* [svn-r8383] Purpose:Quincey Koziol2004-04-181-2/+4
| | | | | | | | | | | | | Code cleanup Description: Clean up lots of warnings based on those reported from the SGI compilers as well as gcc. Platforms tested: SGI O3900, IRIX64 6.5 (Cheryl's SGI machine) FreeBSD 4.9 (sleipnir) w/ & w/o parallel h5committest
* [svn-r8151] Purpose:Quincey Koziol2004-02-041-151/+165
| | | | | | | | | | | | Bug fix Description: Fix h5tools routines to not try to call MPI_Init() unless an MPI-based VFD is actually used. Platforms tested: FreeBSD 4.9 (sleipnir) w/parallel Linux 2.4 (verbena) w/parallel
* [svn-r8143] Purpose:Quincey Koziol2004-02-021-4/+36
| | | | | | | | | | | | | | New Feature. (Contributed by Robb) Description: Allow h5ls to specify a VFL with the '--vfl=' command line flag. Add MPI-I/O & MPI-POSIX VFL drivers to list of drivers available for h5ls and h5dump. Platforms tested: FreeBSD 4.9 (sleipnir) w/parallel h5committested
* [svn-r7401] Purpose:Quincey Koziol2003-08-251-215/+2
| | | | | | | | | | | | | | | | | | Code cleanup Description: Remove various "fixtype" routines which duplicate (and actually pre-date) the functionality in H5Tget_native_type in favor of having the tools call H5Tget_native_type(). This provides the same functionality (actually better functionality, since the old "fixtype" routines didn't handle alignment of compound fields correctly) and reduces the amount of code to maintain. Add additional tests to dump out a "complex" compound datatype which exercises more code in the library for aligning compound fields correctly. Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
* [svn-r7109] Purpose:Quincey Koziol2003-06-261-1/+0
| | | | | | | | | | | Code cleanup Description: Clean up varios compiler warnings flagged by SGI compiler and gcc 3.3 Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
* [svn-r7006] Purpose:Quincey Koziol2003-06-091-5/+5
| | | | | | | | | | | | | | | | | | Bug fix/new feature Description: Teach h5dump/h5ls to display variable-length datatypes correctly. Change "raw byte" output of array elements from "0xde8141b1a818" to "de:81:41:b1:a8:18" so that it's easier for users to read. Platforms tested: FreeBSD 4.8 (sleipnir) h5committest Misc. update: Patch provided by Robb Matzke (matzke@llnl.gov)
* [svn-r6544] Purpose:Bill Wendling2003-03-311-4/+14
| | | | | | | | | | | | Update Description: Update copyright statement Platforms tested: Linux (Comment change only) Misc. update:
* [svn-r6398] Purpose:Quincey Koziol2003-02-121-1/+1
| | | | | | | | | | Code cleanup Description: Clean up some compiler warnings Platforms tested: FreeBSD 4.7 (sleipnir)
* [svn-r6099] Raymond Lu2002-11-181-11/+22
| | | | | | | | | | | Purpose: bug fix. Description: h5dump cannot dump data and datatype for VL string. Platforms tested: eirene, arabica Misc. update: MANIFEST, RELEASE.txt
* [svn-r4783] Bill Wendling2002-01-051-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Purpose: Small Fix Description: Changed how the list of drivers were listed from: { "driver1", "driver2", /* ... */ "drivern", #ifdef FOO "driverm" #endif }; to { "driver1" ,"driver2" /* ... */ ,"drivern" #ifdef FOO ,"driverm" #endif }; since it's a nicer way of doing the same thing without the annoying warning of an extraneous , if FOO isn't defined. Platforms tested: Dangermouse, Modi4, Kelgia
* [svn-r4643] Purpose:Quincey Koziol2001-11-271-4/+8
| | | | | | | | | | | | | | | | | | | | | | 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)
* [svn-r4455] Bill Wendling2001-09-181-7/+7
| | | | | | | | | Purpose: Warning Removal Description: Remove some spurious warnings from the compilation. Platforms tested: Linux
* [svn-r4326] Purpose:Quincey Koziol2001-08-101-1/+1
| | | | | | | | | | 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)
* [svn-r4312] Purpose:Quincey Koziol2001-08-061-22/+0
| | | | | | | | | 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)
* [svn-r4282] Bill Wendling2001-07-301-35/+125
| | | | | | | | | | | | | | | 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
* [svn-r4180] Purpose:Quincey Koziol2001-07-101-55/+83
| | | | | | | | Documentation Description: Accommodate v1.2.x behavior when --enable-hdf5v1_2 is enabled. Platforms tested: FreeBSD 4.3 (hawkwind)
* [svn-r4012] Purpose:Quincey Koziol2001-06-181-53/+53
| | | | | | | | Clean up compiler warnings. Description: Just code neatening mostly, some casts, etc. Platforms tested: FreeBSD 4.3 (hawkwind)
* [svn-r3795] Purpose:Bill Wendling2001-04-101-179/+200
| | | | | | | | | | | | | 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
* [svn-r3648] Purpose:Bill Wendling2001-03-151-19/+34
| | | | | | | | | | 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
* [svn-r3573] Purpose:Bill Wendling2001-03-081-1568/+318
| | | | | | | | | | 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