summaryrefslogtreecommitdiffstats
path: root/tools/h5toh4.h
diff options
context:
space:
mode:
authorPaul Harten <pharten@ncsa.uiuc.edu>1998-11-21 20:14:09 (GMT)
committerPaul Harten <pharten@ncsa.uiuc.edu>1998-11-21 20:14:09 (GMT)
commitc43b9183ccf64b8a8dae444029863ee61397901d (patch)
tree1eb9bcb1256eb079b91e2b0e0a3b6a7c571ae22b /tools/h5toh4.h
parent8ef8c8b29094eb72ed0a90dc2915012f5f6d9e9f (diff)
downloadhdf5-c43b9183ccf64b8a8dae444029863ee61397901d.zip
hdf5-c43b9183ccf64b8a8dae444029863ee61397901d.tar.gz
hdf5-c43b9183ccf64b8a8dae444029863ee61397901d.tar.bz2
[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
Diffstat (limited to 'tools/h5toh4.h')
-rw-r--r--tools/h5toh4.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/tools/h5toh4.h b/tools/h5toh4.h
new file mode 100644
index 0000000..140fef0
--- /dev/null
+++ b/tools/h5toh4.h
@@ -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