mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
c8d2f1e17a
---------------------- ./src/H5A.c ./src/H5Apublic.h ./test/tattr.c Switched the order of the second and third argument of H5Aget_name() to make it consistent with other functions that take buffers and buffer sizes. ./src/H5G.c ./src/H5Gpublic.h ./src/H5Gprivate.h The H5Gget_comment() function returns the size of the comment including the null terminator. If the object has no comment then zero is returned. If an error occurs then a negative value is returned. ./MANIFEST ./tools/Makefile.in ./tools/h5tools.h [NEW] ./tools/h5dump.c [NEW] Created a library for printing values of datasets in a way that looks nice. It's not done yet, but I needed it for debugging the contents of files from Jim Reus. ./tools/h5ls.c Added the `-d' and `--dump' options which cause the contents of a dataset to be printed. Added `-w N' and `--width=N' options to control how wide the raw data output should be. If you want single-column output then say `-w1'. Printing dataset values can now handle datasets of any integer or floating point atomic type. As a special case, integers which are one byte wide are treated a character strings for now. Sample output: $ h5ls --dump --width=60 banana.hdf ARCHIVE 0:0:0:744 Dataset {52/Inf} Data: (0) "U struct complex { double R; double I; };\012V" (43) " double;\012" U 0:0:0:2500 Dataset {256/512} Data: printing of compound data types is not implemented yet V 0:0:0:3928 Dataset {256/512} Data: (0) 0, 0.015625, 0.03125, 0.046875, 0.0625, (5) 0.078125, 0.09375, 0.109375, 0.125, 0.140625, (10) 0.15625, 0.171875, 0.1875, 0.203125, 0.21875, (15) 0.234375, 0.25, 0.265625, 0.28125, 0.296875, ...
40 lines
979 B
Makefile
40 lines
979 B
Makefile
# HDF5 Library Makefile(.in)
|
|
#
|
|
# Copyright (C) 1997 National Center for Supercomputing Applications.
|
|
# All rights reserved.
|
|
#
|
|
#
|
|
@COMMENCE@
|
|
|
|
# Add include directory to the C preprocessor flags.
|
|
CPPFLAGS=-I../src -I. @CPPFLAGS@
|
|
|
|
# These are our main targets:
|
|
PROGS=h5debug h5import h5ls h5repart
|
|
LIB=libh5tools.a
|
|
LIBS=../src/libhdf5.a libh5tools.a @LIBS@
|
|
|
|
# Source and object files for the library.
|
|
LIB_SRC=h5dump.c
|
|
LIB_OBJ=$(LIB_SRC:.c=.o)
|
|
|
|
# Source and object files for programs...
|
|
PROG_SRC=h5debug.c h5import.c h5ls.c h5repart.c
|
|
PROG_OBJ=$(PROG_SRC:.c=.o)
|
|
PRIVATE_HDR=h5tools.h
|
|
|
|
# How to build the programs...
|
|
h5debug: h5debug.o $(LIB) ../src/libhdf5.a
|
|
$(CC) $(CFLAGS) -o $@ h5debug.o $(LIBS)
|
|
|
|
h5import: h5import.o $(LIB) ../src/libhdf5.a
|
|
$(CC) $(CFLAGS) -o $@ h5import.o $(LIBS)
|
|
|
|
h5ls: h5ls.o $(LIB) ../src/libhdf5.a
|
|
$(CC) $(CFLAGS) -o $@ h5ls.o $(LIBS)
|
|
|
|
h5repart: h5repart.o $(LIB) ../src/libhdf5.a
|
|
$(CC) $(CFLAGS) -o $@ h5repart.o $(LIBS)
|
|
|
|
@CONCLUDE@
|