mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r942] PURPOSE:
New Feature SOLUTION: h5toh4 is an H5 utility which converts HDF5 files into HDF4 files. It converts only those H5 objects which have have mappings into H4 objects. Some H5 objects that may be converted into H4 objects are: 1) H5 group objects may be converted into H4 Vgroup objects. 2) H5 dataset objects of integer or floating point datatype may be converted into H4 SDS objects. 3) H5 dataset objects of compound datatype and rank 1 may be converted into H4 Vdata objects. Field members of the compound datatype are constrained to be single dimensional. Platforms tested: Solaris2.5, HP10.20
This commit is contained in:
parent
8ef8c8b290
commit
c43b9183cc
@ -20,11 +20,11 @@ LIB=libh5tools.a
|
||||
PROGS=h5debug h5import h5ls h5repart h5dump @H5TOH4@
|
||||
|
||||
# Source and object files for the library.
|
||||
LIB_SRC=h5tools.c
|
||||
LIB_SRC=h5tools.c h5findshd.c
|
||||
LIB_OBJ=$(LIB_SRC:.c=.o)
|
||||
|
||||
# Source and object files for programs...
|
||||
PROG_SRC=h5debug.c h5import.c h5ls.c h5repart.c h5dump.c h5dumputil.c
|
||||
PROG_SRC=h5debug.c h5import.c h5ls.c h5repart.c h5dump.c h5dumputil.c h5toh4.c
|
||||
PROG_OBJ=$(PROG_SRC:.c=.o)
|
||||
PRIVATE_HDR=h5tools.h
|
||||
|
||||
@ -54,4 +54,7 @@ h5repart: h5repart.o
|
||||
h5dump: h5dump.o h5dumputil.o
|
||||
$(CC) $(CFLAGS) -o $@ h5dump.o h5dumputil.o $(LDFLAGS) $(LIBS)
|
||||
|
||||
h5toh4: h5toh4.o
|
||||
$(CC) $(CFLAGS) -o $@ h5toh4.o $(LDFLAGS) $(LIBS)
|
||||
|
||||
@CONCLUDE@
|
||||
|
1407
tools/h5toh4.c
Normal file
1407
tools/h5toh4.c
Normal file
File diff suppressed because it is too large
Load Diff
39
tools/h5toh4.h
Normal file
39
tools/h5toh4.h
Normal file
@ -0,0 +1,39 @@
|
||||
#ifndef _H5TOH4_H
|
||||
#define _H5TOH4_H
|
||||
|
||||
#include <hdf5.h>
|
||||
#include <mfhdf.h>
|
||||
|
||||
/*
|
||||
* Copyright © 1998 NCSA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Programmer: Paul Harten <pharten@ncsa.uiuc.edu>
|
||||
* Friday, October 16th, 1998
|
||||
*
|
||||
* Purpose: Convert H5 files to H4 files.
|
||||
*/
|
||||
|
||||
|
||||
typedef struct op_data_t {
|
||||
/*
|
||||
* information being carried between iterations.
|
||||
*
|
||||
*/
|
||||
|
||||
int32 hfile_id;
|
||||
int32 vgroup_id;
|
||||
int32 sd_id;
|
||||
int32 sds_id;
|
||||
int32 vdata_id;
|
||||
int32 obj_idx;
|
||||
|
||||
} op_data_t;
|
||||
|
||||
#ifdef H5TOH4_DEBUG
|
||||
#define DEBUG_PRINT(s1,s2,s3,n1) ( fprintf(stderr,s1,s2,s3,n1) )
|
||||
#else
|
||||
#define DEBUG_PRINT(s1,s2,s3,n1) ( )
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user