summaryrefslogtreecommitdiffstats
path: root/doc/html/Tutor/examples
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/Tutor/examples')
-rw-r--r--doc/html/Tutor/examples/Makefile.am38
-rw-r--r--doc/html/Tutor/examples/Makefile.in530
-rw-r--r--doc/html/Tutor/examples/attrexample.f9087
-rw-r--r--doc/html/Tutor/examples/chunk.f90310
-rw-r--r--doc/html/Tutor/examples/compound.f90215
-rw-r--r--doc/html/Tutor/examples/dsetexample.f9070
-rw-r--r--doc/html/Tutor/examples/fileexample.f9034
-rw-r--r--doc/html/Tutor/examples/groupexample.f9049
-rw-r--r--doc/html/Tutor/examples/grpdsetexample.f90136
-rw-r--r--doc/html/Tutor/examples/grpit.f90194
-rw-r--r--doc/html/Tutor/examples/grpsexample.f9068
-rw-r--r--doc/html/Tutor/examples/h5_compound.c153
-rw-r--r--doc/html/Tutor/examples/h5_copy.c148
-rw-r--r--doc/html/Tutor/examples/h5_crtatt.c46
-rw-r--r--doc/html/Tutor/examples/h5_crtdat.c34
-rw-r--r--doc/html/Tutor/examples/h5_crtfile.c19
-rw-r--r--doc/html/Tutor/examples/h5_crtgrp.c24
-rw-r--r--doc/html/Tutor/examples/h5_crtgrpar.c32
-rw-r--r--doc/html/Tutor/examples/h5_crtgrpd.c74
-rw-r--r--doc/html/Tutor/examples/h5_extend.c141
-rw-r--r--doc/html/Tutor/examples/h5_hyperslab.c192
-rw-r--r--doc/html/Tutor/examples/h5_iterate.c111
-rw-r--r--doc/html/Tutor/examples/h5_mount.c119
-rw-r--r--doc/html/Tutor/examples/h5_rdwt.c37
-rw-r--r--doc/html/Tutor/examples/h5_read.c136
-rw-r--r--doc/html/Tutor/examples/h5_ref2objr.c93
-rw-r--r--doc/html/Tutor/examples/h5_ref2objw.c120
-rw-r--r--doc/html/Tutor/examples/h5_ref2regr.c119
-rw-r--r--doc/html/Tutor/examples/h5_ref2regw.c112
-rw-r--r--doc/html/Tutor/examples/h5_reference.c146
-rw-r--r--doc/html/Tutor/examples/hyperslab.f90199
-rw-r--r--doc/html/Tutor/examples/java/Compound.java540
-rw-r--r--doc/html/Tutor/examples/java/Copy.java541
-rw-r--r--doc/html/Tutor/examples/java/CreateAttribute.java302
-rw-r--r--doc/html/Tutor/examples/java/CreateDataset.java210
-rw-r--r--doc/html/Tutor/examples/java/CreateFile.java83
-rw-r--r--doc/html/Tutor/examples/java/CreateFileInput.java118
-rw-r--r--doc/html/Tutor/examples/java/CreateGroup.java139
-rw-r--r--doc/html/Tutor/examples/java/CreateGroupAR.java152
-rw-r--r--doc/html/Tutor/examples/java/CreateGroupDataset.java340
-rw-r--r--doc/html/Tutor/examples/java/DatasetRdWt.java213
-rw-r--r--doc/html/Tutor/examples/java/Dependencies0
-rw-r--r--doc/html/Tutor/examples/java/HyperSlab.java590
-rw-r--r--doc/html/Tutor/examples/java/Makefile92
-rw-r--r--doc/html/Tutor/examples/java/Makefile.in91
-rw-r--r--doc/html/Tutor/examples/java/README21
-rw-r--r--doc/html/Tutor/examples/java/readme.html192
-rw-r--r--doc/html/Tutor/examples/java/runCompound.sh17
-rw-r--r--doc/html/Tutor/examples/java/runCompound.sh.in17
-rw-r--r--doc/html/Tutor/examples/java/runCopy.sh17
-rw-r--r--doc/html/Tutor/examples/java/runCopy.sh.in17
-rw-r--r--doc/html/Tutor/examples/java/runCreateAttribute.sh17
-rw-r--r--doc/html/Tutor/examples/java/runCreateAttribute.sh.in17
-rw-r--r--doc/html/Tutor/examples/java/runCreateDataset.sh17
-rw-r--r--doc/html/Tutor/examples/java/runCreateDataset.sh.in17
-rw-r--r--doc/html/Tutor/examples/java/runCreateFile.sh17
-rw-r--r--doc/html/Tutor/examples/java/runCreateFile.sh.in17
-rw-r--r--doc/html/Tutor/examples/java/runCreateFileInput.sh17
-rw-r--r--doc/html/Tutor/examples/java/runCreateFileInput.sh.in17
-rw-r--r--doc/html/Tutor/examples/java/runCreateGroup.sh17
-rw-r--r--doc/html/Tutor/examples/java/runCreateGroup.sh.in17
-rw-r--r--doc/html/Tutor/examples/java/runCreateGroupAR.sh17
-rw-r--r--doc/html/Tutor/examples/java/runCreateGroupAR.sh.in17
-rw-r--r--doc/html/Tutor/examples/java/runCreateGroupDataset.sh17
-rw-r--r--doc/html/Tutor/examples/java/runCreateGroupDataset.sh.in17
-rw-r--r--doc/html/Tutor/examples/java/runDatasetRdWt.sh17
-rw-r--r--doc/html/Tutor/examples/java/runDatasetRdWt.sh.in17
-rw-r--r--doc/html/Tutor/examples/java/runHyperSlab.sh17
-rw-r--r--doc/html/Tutor/examples/java/runHyperSlab.sh.in17
-rw-r--r--doc/html/Tutor/examples/mountexample.f90187
-rw-r--r--doc/html/Tutor/examples/refobjexample.f90142
-rw-r--r--doc/html/Tutor/examples/refregexample.f90162
-rw-r--r--doc/html/Tutor/examples/rwdsetexample.f9078
-rw-r--r--doc/html/Tutor/examples/selectele.f90282
74 files changed, 0 insertions, 8635 deletions
diff --git a/doc/html/Tutor/examples/Makefile.am b/doc/html/Tutor/examples/Makefile.am
deleted file mode 100644
index d28abfc..0000000
--- a/doc/html/Tutor/examples/Makefile.am
+++ /dev/null
@@ -1,38 +0,0 @@
-# HDF5 Library Doc Makefile(.in)
-#
-# Copyright (C) 1997, 2002
-# National Center for Supercomputing Applications.
-# All rights reserved.
-#
-##
-## Makefile.am
-## Run automake to generate a Makefile.in from this file.
-#
-
-include $(top_srcdir)/config/commence-doc.am
-
-localdocdir = $(docdir)/hdf5/Tutor/examples
-
-# Public doc files (to be installed)...
-localdoc_DATA=h5_compound.c h5_copy.c h5_crtatt.c h5_crtdat.c h5_crtfile.c \
- h5_crtgrp.c h5_crtgrpar.c h5_crtgrpd.c h5_extend.c h5_hyperslab.c \
- h5_iterate.c h5_mount.c h5_rdwt.c h5_read.c h5_ref2objr.c \
- h5_ref2objw.c h5_ref2regr.c h5_ref2regw.c h5_reference.c
-
-nobase_localdoc_DATA=java/Compound.java java/Copy.java java/CreateAttribute.java \
- java/CreateDataset.java java/CreateFile.java \
- java/CreateFileInput.java java/CreateGroup.java \
- java/CreateGroupAR.java java/CreateGroupDataset.java \
- java/DatasetRdWt.java java/HyperSlab.java java/Makefile \
- java/Makefile.in java/README java/readme.html \
- java/runCompound.sh java/runCompound.sh.in java/runCopy.sh \
- java/runCopy.sh.in java/runCreateAttribute.sh \
- java/runCreateAttribute.sh.in java/runCreateDataset.sh \
- java/runCreateDataset.sh.in java/runCreateFile.sh \
- java/runCreateFile.sh.in java/runCreateFileInput.sh \
- java/runCreateFileInput.sh.in java/runCreateGroup.sh \
- java/runCreateGroup.sh.in java/runCreateGroupAR.sh \
- java/runCreateGroupAR.sh.in java/runCreateGroupDataset.sh \
- java/runCreateGroupDataset.sh.in java/runDatasetRdWt.sh \
- java/runDatasetRdWt.sh.in java/runHyperSlab.sh \
- java/runHyperSlab.sh.in
diff --git a/doc/html/Tutor/examples/Makefile.in b/doc/html/Tutor/examples/Makefile.in
deleted file mode 100644
index 98ec3a0..0000000
--- a/doc/html/Tutor/examples/Makefile.in
+++ /dev/null
@@ -1,530 +0,0 @@
-# Makefile.in generated by automake 1.9.5 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# HDF5 Library Doc Makefile(.in)
-#
-# Copyright (C) 1997, 2002
-# National Center for Supercomputing Applications.
-# All rights reserved.
-#
-#
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ../../../..
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-INSTALL = @INSTALL@
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
- $(top_srcdir)/config/commence-doc.am \
- $(top_srcdir)/config/commence.am
-subdir = doc/html/Tutor/examples
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.in
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/src/H5config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
-am__installdirs = "$(DESTDIR)$(localdocdir)" \
- "$(DESTDIR)$(localdocdir)"
-localdocDATA_INSTALL = $(INSTALL_DATA)
-nobase_localdocDATA_INSTALL = $(install_sh_DATA)
-DATA = $(localdoc_DATA) $(nobase_localdoc_DATA)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-# Set the paths for AFS installs of autotools for Linux machines
-# Ideally, these tools should never be needed during the build.
-ACLOCAL = /afs/ncsa/projects/hdf/packages/automake_1.9.5/Linux_2.4/bin/aclocal -I /afs/ncsa/projects/hdf/packages/libtool_1.5.14/Linux_2.4/share/aclocal
-ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
-AMTAR = @AMTAR@
-AM_MAKEFLAGS = @AM_MAKEFLAGS@
-AR = @AR@
-AUTOCONF = /afs/ncsa/projects/hdf/packages/autoconf_2.59/Linux_2.4/bin/autoconf
-AUTOHEADER = /afs/ncsa/projects/hdf/packages/autoconf_2.59/Linux_2.4/bin/autoheader
-AUTOMAKE = /afs/ncsa/projects/hdf/packages/automake_1.9.5/Linux_2.4/bin/automake
-AWK = @AWK@
-BUILD_CXX_CONDITIONAL_FALSE = @BUILD_CXX_CONDITIONAL_FALSE@
-BUILD_CXX_CONDITIONAL_TRUE = @BUILD_CXX_CONDITIONAL_TRUE@
-BUILD_FORTRAN_CONDITIONAL_FALSE = @BUILD_FORTRAN_CONDITIONAL_FALSE@
-BUILD_FORTRAN_CONDITIONAL_TRUE = @BUILD_FORTRAN_CONDITIONAL_TRUE@
-BUILD_HDF5_HL_CONDITIONAL_FALSE = @BUILD_HDF5_HL_CONDITIONAL_FALSE@
-BUILD_HDF5_HL_CONDITIONAL_TRUE = @BUILD_HDF5_HL_CONDITIONAL_TRUE@
-BUILD_PABLO_CONDITIONAL_FALSE = @BUILD_PABLO_CONDITIONAL_FALSE@
-BUILD_PABLO_CONDITIONAL_TRUE = @BUILD_PABLO_CONDITIONAL_TRUE@
-BUILD_PARALLEL_CONDITIONAL_FALSE = @BUILD_PARALLEL_CONDITIONAL_FALSE@
-BUILD_PARALLEL_CONDITIONAL_TRUE = @BUILD_PARALLEL_CONDITIONAL_TRUE@
-BUILD_PDB2HDF = @BUILD_PDB2HDF@
-BUILD_PDB2HDF_CONDITIONAL_FALSE = @BUILD_PDB2HDF_CONDITIONAL_FALSE@
-BUILD_PDB2HDF_CONDITIONAL_TRUE = @BUILD_PDB2HDF_CONDITIONAL_TRUE@
-BYTESEX = @BYTESEX@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_VERSION = @CC_VERSION@
-CFLAGS = @CFLAGS@
-CONFIG_DATE = @CONFIG_DATE@
-CONFIG_MODE = @CONFIG_MODE@
-CONFIG_USER = @CONFIG_USER@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUG_PKG = @DEBUG_PKG@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DYNAMIC_DIRS = @DYNAMIC_DIRS@
-ECHO = @ECHO@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-F77 = @F77@
-
-# Make sure that these variables are exported to the Makefiles
-F9XMODEXT = @F9XMODEXT@
-F9XMODFLAG = @F9XMODFLAG@
-F9XSUFFIXFLAG = @F9XSUFFIXFLAG@
-FC = @FC@
-FCFLAGS = @FCFLAGS@
-FCLIBS = @FCLIBS@
-FFLAGS = @FFLAGS@
-FILTERS = @FILTERS@
-FSEARCH_DIRS = @FSEARCH_DIRS@
-H5_VERSION = @H5_VERSION@
-HADDR_T = @HADDR_T@
-HDF5_INTERFACES = @HDF5_INTERFACES@
-HID_T = @HID_T@
-HL = @HL@
-HL_FOR = @HL_FOR@
-HSIZET = @HSIZET@
-HSIZE_T = @HSIZE_T@
-HSSIZE_T = @HSSIZE_T@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INSTRUMENT_LIBRARY = @INSTRUMENT_LIBRARY@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-LT_STATIC_EXEC = @LT_STATIC_EXEC@
-MAINT = @MAINT@
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
-MAKEINFO = @MAKEINFO@
-MPE = @MPE@
-OBJECT_NAMELEN_DEFAULT_F = @OBJECT_NAMELEN_DEFAULT_F@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PARALLEL = @PARALLEL@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-PTHREAD = @PTHREAD@
-RANLIB = @RANLIB@
-ROOT = @ROOT@
-RUNPARALLEL = @RUNPARALLEL@
-RUNSERIAL = @RUNSERIAL@
-R_INTEGER = @R_INTEGER@
-R_LARGE = @R_LARGE@
-SEARCH = @SEARCH@
-SETX = @SETX@
-SET_MAKE = @SET_MAKE@
-
-# Hardcode SHELL to be /bin/sh. Most machines have this shell, and
-# on at least one machine configure fails to detect its existence (janus).
-# Also, when HDF5 is configured on one machine but run on another,
-# configure's automatic SHELL detection may not work on the build machine.
-SHELL = /bin/sh
-SIZE_T = @SIZE_T@
-STATIC_SHARED = @STATIC_SHARED@
-STRIP = @STRIP@
-TESTPARALLEL = @TESTPARALLEL@
-TRACE_API = @TRACE_API@
-USE_FILTER_DEFLATE = @USE_FILTER_DEFLATE@
-USE_FILTER_FLETCHER32 = @USE_FILTER_FLETCHER32@
-USE_FILTER_NBIT = @USE_FILTER_NBIT@
-USE_FILTER_SCALEOFFSET = @USE_FILTER_SCALEOFFSET@
-USE_FILTER_SHUFFLE = @USE_FILTER_SHUFFLE@
-USE_FILTER_SZIP = @USE_FILTER_SZIP@
-VERSION = @VERSION@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_F77 = @ac_ct_F77@
-ac_ct_FC = @ac_ct_FC@
-ac_ct_RANLIB = @ac_ct_RANLIB@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-datadir = @datadir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-
-# Install directories that automake doesn't know about
-includedir = $(exec_prefix)/include
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-
-# Shell commands used in Makefiles
-RM = rm -f
-CP = cp
-
-# Some machines need a command to run executables; this is that command
-# so that our tests will run.
-# We use RUNTESTS instead of RUNSERIAL directly because it may be that
-# some tests need to be run with a different command. Older versions
-# of the makefiles used the command
-# $(LIBTOOL) --mode=execute
-# in some directories, for instance.
-RUNTESTS = $(RUNSERIAL)
-
-# Libraries to link to while building
-LIBHDF5 = $(top_builddir)/src/libhdf5.la
-LIBH5TEST = $(top_builddir)/test/libh5test.la
-LIBH5F = $(top_builddir)/fortran/src/libhdf5_fortran.la
-LIBH5FTEST = $(top_builddir)/fortran/test/libh5test_fortran.la
-LIBH5CPP = $(top_builddir)/c++/src/libhdf5_cpp.la
-LIBH5TOOLS = $(top_builddir)/tools/lib/libh5tools.la
-LIBH5_HL = $(top_builddir)/hl/src/libhdf5_hl.la
-LIBH5F_HL = $(top_builddir)/hl/fortran/src/libhdf5hl_fortran.la
-LIBH5CPP_HL = $(top_builddir)/hl/c++/src/libhdf5_hl_cpp.la
-docdir = $(exec_prefix)/doc
-
-# Scripts used to build examples
-H5CC = $(bindir)/h5cc
-H5CC_PP = $(bindir)/h5pcc
-H5FC = $(bindir)/h5fc
-H5FC_PP = $(bindir)/h5pfc
-
-# .chkexe and .chksh files are used to mark tests that have run successfully.
-MOSTLYCLEANFILES = *.chkexe *.chksh
-localdocdir = $(docdir)/hdf5/Tutor/examples
-
-# Public doc files (to be installed)...
-localdoc_DATA = h5_compound.c h5_copy.c h5_crtatt.c h5_crtdat.c h5_crtfile.c \
- h5_crtgrp.c h5_crtgrpar.c h5_crtgrpd.c h5_extend.c h5_hyperslab.c \
- h5_iterate.c h5_mount.c h5_rdwt.c h5_read.c h5_ref2objr.c \
- h5_ref2objw.c h5_ref2regr.c h5_ref2regw.c h5_reference.c
-
-nobase_localdoc_DATA = java/Compound.java java/Copy.java java/CreateAttribute.java \
- java/CreateDataset.java java/CreateFile.java \
- java/CreateFileInput.java java/CreateGroup.java \
- java/CreateGroupAR.java java/CreateGroupDataset.java \
- java/DatasetRdWt.java java/HyperSlab.java java/Makefile \
- java/Makefile.in java/README java/readme.html \
- java/runCompound.sh java/runCompound.sh.in java/runCopy.sh \
- java/runCopy.sh.in java/runCreateAttribute.sh \
- java/runCreateAttribute.sh.in java/runCreateDataset.sh \
- java/runCreateDataset.sh.in java/runCreateFile.sh \
- java/runCreateFile.sh.in java/runCreateFileInput.sh \
- java/runCreateFileInput.sh.in java/runCreateGroup.sh \
- java/runCreateGroup.sh.in java/runCreateGroupAR.sh \
- java/runCreateGroupAR.sh.in java/runCreateGroupDataset.sh \
- java/runCreateGroupDataset.sh.in java/runDatasetRdWt.sh \
- java/runDatasetRdWt.sh.in java/runHyperSlab.sh \
- java/runHyperSlab.sh.in
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/commence-doc.am $(top_srcdir)/config/commence.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/html/Tutor/examples/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --foreign doc/html/Tutor/examples/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-distclean-libtool:
- -rm -f libtool
-uninstall-info-am:
-install-localdocDATA: $(localdoc_DATA)
- @$(NORMAL_INSTALL)
- test -z "$(localdocdir)" || $(mkdir_p) "$(DESTDIR)$(localdocdir)"
- @list='$(localdoc_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
- echo " $(localdocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(localdocdir)/$$f'"; \
- $(localdocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(localdocdir)/$$f"; \
- done
-
-uninstall-localdocDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(localdoc_DATA)'; for p in $$list; do \
- f=$(am__strip_dir) \
- echo " rm -f '$(DESTDIR)$(localdocdir)/$$f'"; \
- rm -f "$(DESTDIR)$(localdocdir)/$$f"; \
- done
-install-nobase_localdocDATA: $(nobase_localdoc_DATA)
- @$(NORMAL_INSTALL)
- test -z "$(localdocdir)" || $(mkdir_p) "$(DESTDIR)$(localdocdir)"
- @$(am__vpath_adj_setup) \
- list='$(nobase_localdoc_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- $(am__vpath_adj) \
- echo " $(nobase_localdocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(localdocdir)/$$f'"; \
- $(nobase_localdocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(localdocdir)/$$f"; \
- done
-
-uninstall-nobase_localdocDATA:
- @$(NORMAL_UNINSTALL)
- @$(am__vpath_adj_setup) \
- list='$(nobase_localdoc_DATA)'; for p in $$list; do \
- $(am__vpath_adj) \
- echo " rm -f '$(DESTDIR)$(localdocdir)/$$f'"; \
- rm -f "$(DESTDIR)$(localdocdir)/$$f"; \
- done
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-distdir: $(DISTFILES)
- $(mkdir_p) $(distdir)/../../../../config
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
- esac; \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test "$$dir" != "$$file" && test "$$dir" != "."; then \
- dir="/$$dir"; \
- $(mkdir_p) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
- if test -d $$d/$$file; then \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(DATA)
-installdirs:
- for dir in "$(DESTDIR)$(localdocdir)" "$(DESTDIR)$(localdocdir)"; do \
- test -z "$$dir" || $(mkdir_p) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
- -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-libtool
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am: install-localdocDATA install-nobase_localdocDATA
-
-install-exec-am:
-
-install-info: install-info-am
-
-install-man:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-info-am uninstall-localdocDATA \
- uninstall-nobase_localdocDATA
-
-.PHONY: all all-am check check-am clean clean-generic clean-libtool \
- distclean distclean-generic distclean-libtool distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-exec install-exec-am \
- install-info install-info-am install-localdocDATA install-man \
- install-nobase_localdocDATA install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic \
- mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
- uninstall-info-am uninstall-localdocDATA \
- uninstall-nobase_localdocDATA
-
-
-# Ignore most rules
-lib progs check test _test check-p check-s:
- @echo "Nothing to be done"
-
-tests dep depend:
- @@SETX@; for d in X $(SUBDIRS); do \
- if test $$d != X; then \
- (cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
- fi;
- done
-
-# In docs directory, install-doc is the same as install
-install-doc install-all:
- $(MAKE) $(AM_MAKEFLAGS) install
-uninstall-doc uninstall-all:
- $(MAKE) $(AM_MAKEFLAGS) uninstall
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/doc/html/Tutor/examples/attrexample.f90 b/doc/html/Tutor/examples/attrexample.f90
deleted file mode 100644
index 9198eb8..0000000
--- a/doc/html/Tutor/examples/attrexample.f90
+++ /dev/null
@@ -1,87 +0,0 @@
-! This example shows how to create and write a dataset attribute.
-! It opens the existing file 'dset.h5', obtains the identifier of
-! the dataset "/dset", defines attribute's dataspace,
-! creates dataset attribute, writes the attribute, and then closes
-! the attribute's dataspace, attribute, dataset, and file.
-
- PROGRAM ATTREXAMPLE
-
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=8), PARAMETER :: filename = "dsetf.h5" ! File name
- CHARACTER(LEN=4), PARAMETER :: dsetname = "dset" ! Dataset name
- CHARACTER(LEN=4), PARAMETER :: aname = "attr" ! Attribute name
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: dset_id ! Dataset identifier
- INTEGER(HID_T) :: attr_id ! Attribute identifier
- INTEGER(HID_T) :: aspace_id ! Attribute Dataspace identifier
-
- INTEGER(HSIZE_T), DIMENSION(1) :: adims = (/2/) ! Attribute dimension
- INTEGER, DIMENSION(2) :: attr_data = (/100,200/)! Attribute data
- INTEGER :: arank = 1 ! Attribure rank
-
- INTEGER :: error ! Error flag
-
-
- !
- ! Initialize FORTRAN predefined datatypes.
- !
- CALL h5open_f(error)
-
- !
- ! Open an existing file.
- !
- CALL h5fopen_f (filename, H5F_ACC_RDWR_F, file_id, error)
-
- !
- ! Open an existing dataset.
- !
- CALL h5dopen_f(file_id, dsetname, dset_id, error)
-
- !
- ! Create the data space for the attribute.
- !
- CALL h5screate_simple_f(arank, adims, aspace_id, error)
-
- !
- ! Create dataset attribute.
- !
- CALL h5acreate_f(dset_id, aname, H5T_NATIVE_INTEGER,aspace_id, &
- attr_id, error)
-
- !
- ! Write the attribute data.
- !
- CALL h5awrite_f(attr_id, H5T_NATIVE_INTEGER, attr_data, error)
-
- !
- ! Close the attribute.
- !
- CALL h5aclose_f(attr_id, error)
-
- !
- ! Terminate access to the data space.
- !
- CALL h5sclose_f(aspace_id, error)
-
- !
- ! End access to the dataset and release resources used by it.
- !
- CALL h5dclose_f(dset_id, error)
-
- !
- ! Close the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- ! Close FORTRAN predefined datatypes.
- !
- CALL h5close_f(error)
-
- END PROGRAM ATTREXAMPLE
-
diff --git a/doc/html/Tutor/examples/chunk.f90 b/doc/html/Tutor/examples/chunk.f90
deleted file mode 100644
index 2810b5c..0000000
--- a/doc/html/Tutor/examples/chunk.f90
+++ /dev/null
@@ -1,310 +0,0 @@
-!
-!This example shows how to work with extendible datasets.
-!It creates a 3 x 3 extendible dataset, write to that dataset,
-!extend the dataset to 10x3, and write to the dataset again
-!
-
-
-
-
- PROGRAM CHUNKEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- !
- !the dataset is stored in file "extf.h5"
- !
- CHARACTER(LEN=7), PARAMETER :: filename = "extf.h5"
-
- !
- !dataset name is "ExtendibleArray"
- !
- CHARACTER(LEN=15), PARAMETER :: dsetname = "ExtendibleArray"
-
- !
- !dataset rank is 2
- !
- INTEGER :: RANK = 2
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: dset_id ! Dataset identifier
- INTEGER(HID_T) :: dataspace ! Dataspace identifier
- INTEGER(HID_T) :: filespace ! Dataspace identifier
- INTEGER(HID_T) :: memspace ! memspace identifier
- INTEGER(HID_T) :: cparms !dataset creatation property identifier
-
- !
- !dataset dimensions at creation time
- !
- INTEGER(HSIZE_T), DIMENSION(2) :: dims = (/3,3/)
-
- !
- !data1 dimensions
- !
- INTEGER(HSIZE_T), DIMENSION(2) :: dims1 = (/3,3/)
-
- !
- !data2 dimensions
- !
- INTEGER(HSIZE_T), DIMENSION(2) :: dims2 = (/7,1/)
-
- !
- !Maximum dimensions
- !
- INTEGER(HSIZE_T), DIMENSION(2) :: maxdims
-
- !
- !data1 dimensions
- !
- INTEGER, DIMENSION(3,3) :: data1
-
- !
- !data2 dimensions
- !
- INTEGER, DIMENSION(7,1) :: data2
-
- !
- !Size of the hyperslab in the file
- !
- INTEGER(HSIZE_T), DIMENSION(2) :: size
-
- !
- !hyperslab offset in the file
- !
- INTEGER(HSIZE_T), DIMENSION(2) :: offset
-
- !
- !general purpose integer
- !
- INTEGER :: i, j, k
-
- !
- !flag to check operation success
- !
- INTEGER :: error, error_n
-
- !
- !Variables used in reading data back
- !
- INTEGER(HSIZE_T), DIMENSION(2) :: chunk_dims = (/5,2/)
- INTEGER(HSIZE_T), DIMENSION(2) :: chunk_dimsr
- INTEGER(HSIZE_T), DIMENSION(2) :: dimsr, maxdimsr
- INTEGER, DIMENSION(10,3) :: data_out
- INTEGER :: rankr, rank_chunk
-
- !
- !data initialization
- !
- do i = 1, 3
- do j = 1, 3
- data1(i,j) = 1
- end do
- end do
-
- do j = 1, 7
- data2(j,1) = 2
- end do
-
-
- !
- !Initialize FORTRAN predifined datatypes
- !
- CALL h5open_f(error)
-
- !
- !Create a new file using default properties.
- !
- CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
-
-
- !
- !Create the data space with unlimited dimensions.
- !
- maxdims = (/H5S_UNLIMITED_f, H5S_UNLIMITED_f/)
-
- CALL h5screate_simple_f(RANK, dims, dataspace, error, maxdims)
-
- !
- !Modify dataset creation properties, i.e. enable chunking
- !
- CALL h5pcreate_f(H5P_DATASET_CREATE_F, cparms, error)
-
- CALL h5pset_chunk_f(cparms, RANK, chunk_dims, error)
-
- !
- !Create a new dataset within the file using cparms creation properties.
- !
- !CALL h5dcreate_f(file_id, dsetname, H5T_NATIVE_INT_F, dataspace, &
- CALL h5dcreate_f(file_id, dsetname, H5T_NATIVE_INTEGER, dataspace, &
- dset_id, error, cparms)
-
- !
- !Extend the dataset. This call assures that dataset is 3 x 3.
- !
- size(1) = 3
- size(2) = 3
- CALL h5dextend_f(dset_id, size, error)
-
-
- !
- !Select a hyperslab.
- !
- CALL h5dget_space_f(dset_id, filespace, error)
- offset(1) = 0;
- offset(2) = 0;
- CALL h5sselect_hyperslab_f(filespace, H5S_SELECT_SET_F, &
- offset, dims1, error)
-
- !
- !Write the data to the hyperslab.
- !
- !CALL H5Dwrite_f(dset_id, H5T_NATIVE_INT_F, data1, error, &
- CALL H5Dwrite_f(dset_id, H5T_NATIVE_INTEGER, data1, error, &
- filespace, dataspace)
-
- !
- !Extend the dataset. Dataset becomes 10 x 3.
- !
- dims(1) = dims1(1) + dims2(1);
- size(1) = dims(1);
- size(2) = dims(2);
- CALL h5dextend_f(dset_id, size, error)
-
- !
- !Select a hyperslab.
- !
- CALL h5dget_space_f(dset_id, filespace, error)
- offset(1) = 3;
- offset(2) = 0;
- CALL h5sselect_hyperslab_f(filespace, H5S_SELECT_SET_F, &
- offset, dims2, error)
-
- !
- !create memory dataspace.
- !
- CALL h5screate_simple_f(RANK, dims2, memspace, error)
-
- !
- !Write the data to the hyperslab.
- !
- !CALL H5Dwrite_f(dset_id, H5T_NATIVE_INT_F, data2, error, &
- CALL H5Dwrite_f(dset_id, H5T_NATIVE_INTEGER, data2, error, &
- mem_space_id=memspace, file_space_id=filespace)
-
- !
- !Close the dataspace for the dataset.
- !
- CALL h5sclose_f(dataspace, error)
- CALL h5sclose_f(filespace, error)
-
- !
- !Close the memoryspace.
- !
- CALL h5sclose_f(memspace, error)
-
- !
- !Close the dataset.
- !
- CALL h5dclose_f(dset_id, error)
-
- !
- !Close the property list.
- !
- CALL h5pclose_f(cparms, error)
-
- !
- !Close the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- !read the data back
- !
- !Open the file.
- !
- CALL h5fopen_f (filename, H5F_ACC_RDONLY_F, file_id, error)
-
- !
- !Open the dataset.
- !
- CALL h5dopen_f(file_id, dsetname, dset_id, error)
-
- !
- !Get dataset's dataspace handle.
- !
- CALL h5dget_space_f(dset_id, dataspace, error)
-
- !
- !Get dataspace's rank.
- !
- CALL h5sget_simple_extent_ndims_f(dataspace, rankr, error)
-
-
- !
- !Get dataspace's dimensinons.
- !
- CALL h5sget_simple_extent_dims_f(dataspace, dimsr, maxdimsr, error)
-
-
- !
- !Get creation property list.
- !
- CALL h5dget_create_plist_f(dset_id, cparms, error)
-
- !
- !Get chunk dimensions.
- !
- CALL h5pget_chunk_f(cparms, 2, chunk_dimsr, error)
-
- !
- !create memory dataspace.
- !
- CALL h5screate_simple_f(rankr, dimsr, memspace, error)
-
- !
- !Read data
- !
- !CALL H5Dread_f(dset_id, H5T_NATIVE_INT_F, data_out, error, &
- CALL H5Dread_f(dset_id, H5T_NATIVE_INTEGER, data_out, error, &
- memspace, dataspace)
-
- !
- !Print data
- !
- do i = 1, dimsr(1)
- print *, (data_out(i,j), j = 1,dimsr(2))
- end do
-
- !
- !Close the dataspace for the dataset.
- !
- CALL h5sclose_f(dataspace, error)
-
- !
- !Close the memoryspace.
- !
- CALL h5sclose_f(memspace, error)
-
- !
- !Close the dataset.
- !
- CALL h5dclose_f(dset_id, error)
-
- !
- !Close the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- !Close the property list.
- !
- CALL h5pclose_f(cparms, error)
-
- !
- ! Close FORTRAN predefined datatypes.
- !
- CALL h5close_f(error)
-
- END PROGRAM CHUNKEXAMPLE
diff --git a/doc/html/Tutor/examples/compound.f90 b/doc/html/Tutor/examples/compound.f90
deleted file mode 100644
index a2bd6b0..0000000
--- a/doc/html/Tutor/examples/compound.f90
+++ /dev/null
@@ -1,215 +0,0 @@
-!
-! This program creates a dataset that is one dimensional array of
-! structures {
-! character*2
-! integer
-! double precision
-! real
-! }
-! Data is written and read back by fields.
-!
-
- PROGRAM COMPOUNDEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=11), PARAMETER :: filename = "compound.h5" ! File name
- CHARACTER(LEN=8), PARAMETER :: dsetname = "Compound" ! Dataset name
- INTEGER, PARAMETER :: dimsize = 6 ! Size of the dataset
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: dset_id ! Dataset identifier
- INTEGER(HID_T) :: dspace_id ! Dataspace identifier
- INTEGER(HID_T) :: dtype_id ! Compound datatype identifier
- INTEGER(HID_T) :: dt1_id ! Memory datatype identifier (for character field)
- INTEGER(HID_T) :: dt2_id ! Memory datatype identifier (for integer field)
- INTEGER(HID_T) :: dt3_id ! Memory datatype identifier (for double precision field)
- INTEGER(HID_T) :: dt4_id ! Memory datatype identifier (for real field)
- INTEGER(HID_T) :: dt5_id ! Memory datatype identifier
- INTEGER(HID_T) :: plist_id ! Dataset trasfer property
- INTEGER(SIZE_T) :: typesize
-
-
- INTEGER(HSIZE_T), DIMENSION(1) :: dims = (/dimsize/) ! Dataset dimensions
- INTEGER :: rank = 1 ! Dataset rank
-
- INTEGER :: error ! Error flag
- INTEGER(SIZE_T) :: type_size ! Size of the datatype
- INTEGER(SIZE_T) :: type_sizec ! Size of the character datatype
- INTEGER(SIZE_T) :: type_sizei ! Size of the integer datatype
- INTEGER(SIZE_T) :: type_sized ! Size of the double precision datatype
- INTEGER(SIZE_T) :: type_sizer ! Size of the real datatype
- INTEGER(SIZE_T) :: offset ! Member's offset
- CHARACTER*2, DIMENSION(dimsize) :: char_member
- CHARACTER*2, DIMENSION(dimsize) :: char_member_out ! Buffer to read data out
- INTEGER, DIMENSION(dimsize) :: int_member
- DOUBLE PRECISION, DIMENSION(dimsize) :: double_member
- REAL, DIMENSION(dimsize) :: real_member
- INTEGER :: i
- !
- ! Initialize data buffer.
- !
- do i = 1, dimsize
- char_member(i)(1:1) = char(65+i)
- char_member(i)(2:2) = char(65+i)
- char_member_out(i)(1:1) = char(65)
- char_member_out(i)(2:2) = char(65)
- int_member(i) = i
- double_member(i) = 2.* i
- real_member(i) = 3. * i
- enddo
-
- !
- ! Initialize FORTRAN interface.
- !
- CALL h5open_f(error)
- !
- ! Set dataset transfer property to preserve partially initialized fields
- ! during write/read to/from dataset with compound datatype.
- !
- CALL h5pcreate_f(H5P_DATASET_XFER_F, plist_id, error)
- CALL h5pset_preserve_f(plist_id, 1, error)
-
- !
- ! Create a new file using default properties.
- !
- CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
-
- !
- ! Create the dataspace.
- !
- CALL h5screate_simple_f(rank, dims, dspace_id, error)
- !
- ! Create compound datatype.
- !
- ! First calculate total size by calculating sizes of each member
- !
- CALL h5tcopy_f(H5T_NATIVE_CHARACTER, dt5_id, error)
- typesize = 2
- CALL h5tset_size_f(dt5_id, typesize, error)
- CALL h5tget_size_f(dt5_id, type_sizec, error)
- CALL h5tget_size_f(H5T_NATIVE_INTEGER, type_sizei, error)
- CALL h5tget_size_f(H5T_NATIVE_DOUBLE, type_sized, error)
- CALL h5tget_size_f(H5T_NATIVE_REAL, type_sizer, error)
- type_size = type_sizec + type_sizei + type_sized + type_sizer
- CALL h5tcreate_f(H5T_COMPOUND_F, type_size, dtype_id, error)
- !
- ! Insert memebers
- !
- ! CHARACTER*2 memeber
- !
- offset = 0
- CALL h5tinsert_f(dtype_id, "char_field", offset, dt5_id, error)
- !
- ! INTEGER member
- !
- offset = offset + type_sizec ! Offset of the second memeber is 2
- CALL h5tinsert_f(dtype_id, "integer_field", offset, H5T_NATIVE_INTEGER, error)
- !
- ! DOUBLE PRECISION member
- !
- offset = offset + type_sizei ! Offset of the third memeber is 6
- CALL h5tinsert_f(dtype_id, "double_field", offset, H5T_NATIVE_DOUBLE, error)
- !
- ! REAL member
- !
- offset = offset + type_sized ! Offset of the last member is 14
- CALL h5tinsert_f(dtype_id, "real_field", offset, H5T_NATIVE_REAL, error)
-
- !
- ! Create the dataset with compound datatype.
- !
- CALL h5dcreate_f(file_id, dsetname, dtype_id, dspace_id, &
- dset_id, error)
- !
- ! Create memory types. We have to create a compound datatype
- ! for each member we want to write.
- !
- CALL h5tcreate_f(H5T_COMPOUND_F, type_sizec, dt1_id, error)
- offset = 0
- CALL h5tinsert_f(dt1_id, "char_field", offset, dt5_id, error)
- !
- CALL h5tcreate_f(H5T_COMPOUND_F, type_sizei, dt2_id, error)
- offset = 0
- CALL h5tinsert_f(dt2_id, "integer_field", offset, H5T_NATIVE_INTEGER, error)
- !
- CALL h5tcreate_f(H5T_COMPOUND_F, type_sized, dt3_id, error)
- offset = 0
- CALL h5tinsert_f(dt3_id, "double_field", offset, H5T_NATIVE_DOUBLE, error)
- !
- CALL h5tcreate_f(H5T_COMPOUND_F, type_sizer, dt4_id, error)
- offset = 0
- CALL h5tinsert_f(dt4_id, "real_field", offset, H5T_NATIVE_REAL, error)
- !
- ! Write data by fields in the datatype. Fields order is not important.
- !
- CALL h5dwrite_f(dset_id, dt4_id, real_member, error, xfer_prp = plist_id)
- CALL h5dwrite_f(dset_id, dt1_id, char_member, error, xfer_prp = plist_id)
- CALL h5dwrite_f(dset_id, dt3_id, double_member, error, xfer_prp = plist_id)
- CALL h5dwrite_f(dset_id, dt2_id, int_member, error, xfer_prp = plist_id)
-
- !
- ! End access to the dataset and release resources used by it.
- !
- CALL h5dclose_f(dset_id, error)
-
- !
- ! Terminate access to the data space.
- !
- CALL h5sclose_f(dspace_id, error)
- !
- ! Terminate access to the datatype
- !
- CALL h5tclose_f(dtype_id, error)
- CALL h5tclose_f(dt1_id, error)
- CALL h5tclose_f(dt2_id, error)
- CALL h5tclose_f(dt3_id, error)
- CALL h5tclose_f(dt4_id, error)
- CALL h5tclose_f(dt5_id, error)
-
- !
- ! Close the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- ! Open the file.
- !
- CALL h5fopen_f (filename, H5F_ACC_RDWR_F, file_id, error)
- !
- ! Open the dataset.
- !
- CALL h5dopen_f(file_id, dsetname, dset_id, error)
- !
- ! Create memeory datatyoe to read character member of the compound datatype.
- !
- CALL h5tcopy_f(H5T_NATIVE_CHARACTER, dt2_id, error)
- typesize = 2
- CALL h5tset_size_f(dt2_id, typesize, error)
- CALL h5tget_size_f(dt2_id, type_size, error)
- CALL h5tcreate_f(H5T_COMPOUND_F, type_size, dt1_id, error)
- offset = 0
- CALL h5tinsert_f(dt1_id, "char_field", offset, dt2_id, error)
- !
- ! Read part of the datatset and display it.
- !
- CALL h5dread_f(dset_id, dt1_id, char_member_out, error)
- write(*,*) (char_member_out(i), i=1, dimsize)
-
- !
- ! Close all open objects.
- !
- CALL h5dclose_f(dset_id, error)
- CALL h5tclose_f(dt1_id, error)
- CALL h5tclose_f(dt2_id, error)
- CALL h5fclose_f(file_id, error)
- !
- ! Close FORTRAN interface.
- !
- CALL h5close_f(error)
-
- END PROGRAM COMPOUNDEXAMPLE
-
-
diff --git a/doc/html/Tutor/examples/dsetexample.f90 b/doc/html/Tutor/examples/dsetexample.f90
deleted file mode 100644
index 9b69a3f..0000000
--- a/doc/html/Tutor/examples/dsetexample.f90
+++ /dev/null
@@ -1,70 +0,0 @@
-!
-! The following example shows how to create an empty dataset.
-! It creates a file called 'dsetf.h5', defines the
-! dataset dataspace, creates a dataset which is a 4x6 integer array,
-! and then closes the dataspace, the dataset, and the file.
-!
-
- PROGRAM DSETEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=8), PARAMETER :: filename = "dsetf.h5" ! File name
- CHARACTER(LEN=4), PARAMETER :: dsetname = "dset" ! Dataset name
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: dset_id ! Dataset identifier
- INTEGER(HID_T) :: dspace_id ! Dataspace identifier
-
-
- INTEGER(HSIZE_T), DIMENSION(2) :: dims = (/4,6/) ! Dataset dimensions
- INTEGER :: rank = 2 ! Dataset rank
-
- INTEGER :: error ! Error flag
-
- !
- ! Initialize FORTRAN predefined datatypes.
- !
- CALL h5open_f(error)
-
- !
- ! Create a new file using default properties.
- !
- CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
-
- !
- ! Create the dataspace.
- !
- CALL h5screate_simple_f(rank, dims, dspace_id, error)
-
- !
- ! Create the dataset with default properties.
- !
- CALL h5dcreate_f(file_id, dsetname, H5T_NATIVE_INTEGER, dspace_id, &
- dset_id, error)
-
- !
- ! End access to the dataset and release resources used by it.
- !
- CALL h5dclose_f(dset_id, error)
-
- !
- ! Terminate access to the data space.
- !
- CALL h5sclose_f(dspace_id, error)
-
- !
- ! Close the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- ! Close FORTRAN predefined datatypes.
- !
- CALL h5close_f(error)
-
- END PROGRAM DSETEXAMPLE
-
-
diff --git a/doc/html/Tutor/examples/fileexample.f90 b/doc/html/Tutor/examples/fileexample.f90
deleted file mode 100644
index e11dcaa..0000000
--- a/doc/html/Tutor/examples/fileexample.f90
+++ /dev/null
@@ -1,34 +0,0 @@
-!
-! The following example demonstrates how to create and close an HDF5 file.
-! It creates a file called 'file.h5', and then closes the file.
-!
-
- PROGRAM FILEEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=8), PARAMETER :: filename = "filef.h5" ! File name
- INTEGER(HID_T) :: file_id ! File identifier
-
- INTEGER :: error ! Error flag
-
-!
-! Initialize FORTRAN interface.
-!
- CALL h5open_f (error)
- !
- ! Create a new file using default properties.
- !
- CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
-
- !
- ! Terminate access to the file.
- !
- CALL h5fclose_f(file_id, error)
-!
-! Close FORTRAN interface.
-!
- CALL h5close_f(error)
- END PROGRAM FILEEXAMPLE
diff --git a/doc/html/Tutor/examples/groupexample.f90 b/doc/html/Tutor/examples/groupexample.f90
deleted file mode 100644
index d98d7cd..0000000
--- a/doc/html/Tutor/examples/groupexample.f90
+++ /dev/null
@@ -1,49 +0,0 @@
-!
-! The following example shows how to create and close a group.
-! It creates a file called 'group.h5', creates a group
-! called MyGroup in the root group, and then closes the group and file.
-!
-
-
- PROGRAM GROUPEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=9), PARAMETER :: filename = "groupf.h5" ! File name
- CHARACTER(LEN=7), PARAMETER :: groupname = "MyGroup" ! Group name
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: group_id ! Group identifier
-
- INTEGER :: error ! Error flag
-!
-! Initialize FORTRAN interface.
-!
- CALL h5open_f(error)
- !
- ! Create a new file using default properties.
- !
- CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
-
- !
- ! Create a group named "/MyGroup" in the file.
- !
- CALL h5gcreate_f(file_id, groupname, group_id, error)
-
- !
- ! Close the group.
- !
- CALL h5gclose_f(group_id, error)
-
- !
- ! Terminate access to the file.
- !
- CALL h5fclose_f(file_id, error)
-!
-! Close FORTRAN interface.
-!
- CALL h5close_f(error)
-
- END PROGRAM GROUPEXAMPLE
diff --git a/doc/html/Tutor/examples/grpdsetexample.f90 b/doc/html/Tutor/examples/grpdsetexample.f90
deleted file mode 100644
index ceb2fe9..0000000
--- a/doc/html/Tutor/examples/grpdsetexample.f90
+++ /dev/null
@@ -1,136 +0,0 @@
-!
-! This example shows how to create a dataset in a particular group.
-! It opens the file created in the previous example and creates two datasets.
-! Absolute and relative dataset names are used.
-!
-
-
- PROGRAM GRPDSETEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=10), PARAMETER :: filename = "groupsf.h5" ! File name
- CHARACTER(LEN=15), PARAMETER :: groupname = "MyGroup/Group_A" ! Group name
- CHARACTER(LEN=13), PARAMETER :: dsetname1 = "MyGroup/dset1" ! Dataset name
- CHARACTER(LEN=5), PARAMETER :: dsetname2 = "dset2" ! dataset name
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: group_id ! Group identifier
- INTEGER(HID_T) :: dataset_id ! Dataset identifier
- INTEGER(HID_T) :: dataspace_id ! Data space identifier
-
- INTEGER :: i, j
- INTEGER :: error ! Error flag
-
- INTEGER, DIMENSION(3,3) :: dset1_data ! Data arrays
- INTEGER, DIMENSION(2,10) :: dset2_data !
-
- INTEGER(HSIZE_T), DIMENSION(2) :: dims1 = (/3,3/) ! Datasets dimensions
- INTEGER(HSIZE_T), DIMENSION(2) :: dims2 = (/2,10/)!
-
- INTEGER :: rank = 2 ! Datasets rank
-
- !
- !Initialize dset1_data array
- !
- do i = 1, 3
- do j = 1, 3
- dset1_data(i,j) = j;
- end do
- end do
-
-
- !
- !Initialize dset2_data array
- !
- do i = 1, 2
- do j = 1, 10
- dset2_data(i,j) = j;
- end do
- end do
-
- !
- ! Initialize FORTRAN predefined datatypes.
- !
- CALL h5open_f(error)
-
- !
- ! Open an existing file.
- !
- CALL h5fopen_f (filename, H5F_ACC_RDWR_F, file_id, error)
-
- !
- ! Create the data space for the first dataset.
- !
- CALL h5screate_simple_f(rank, dims1, dataspace_id, error)
-
- !
- ! Create a dataset in group "MyGroup" with default properties.
- !
- CALL h5dcreate_f(file_id, dsetname1, H5T_NATIVE_INTEGER, dataspace_id, &
- dataset_id, error)
-
- !
- ! Write the first dataset.
- !
- CALL h5dwrite_f(dataset_id, H5T_NATIVE_INTEGER, dset1_data, error)
-
- !
- ! Close the dataspace for the first dataset.
- !
- CALL h5sclose_f(dataspace_id, error)
-
- !
- ! Close the first dataset.
- !
- CALL h5dclose_f(dataset_id, error)
-
- !
- ! Open an existing group in the specified file.
- !
- CALL h5gopen_f(file_id, groupname, group_id, error)
-
- !
- !Create the data space for the second dataset.
- !
- CALL h5screate_simple_f(rank, dims2, dataspace_id, error)
-
- !
- ! Create the second dataset in group "Group_A" with default properties.
- !
- CALL h5dcreate_f(group_id, dsetname2, H5T_NATIVE_INTEGER, dataspace_id, &
- dataset_id, error)
-
- !
- ! Write the second dataset.
- !
- CALL h5dwrite_f(dataset_id, H5T_NATIVE_INTEGER, dset2_data, error)
-
- !
- ! Close the dataspace for the second dataset.
- !
- CALL h5sclose_f(dataspace_id, error)
-
- !
- ! Close the second dataset.
- !
- CALL h5dclose_f(dataset_id, error)
-
- !
- ! Close the group.
- !
- CALL h5gclose_f(group_id, error)
-
- !
- ! Close the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- ! Close FORTRAN predefined datatypes.
- !
- CALL h5close_f(error)
-
- END PROGRAM GRPDSETEXAMPLE
diff --git a/doc/html/Tutor/examples/grpit.f90 b/doc/html/Tutor/examples/grpit.f90
deleted file mode 100644
index 3aff2ad..0000000
--- a/doc/html/Tutor/examples/grpit.f90
+++ /dev/null
@@ -1,194 +0,0 @@
-!
-! In this example we iterate through the members of the groups.
-!
-
-
- PROGRAM GRPITEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=11), PARAMETER :: filename = "iteratef.h5" ! File name
- CHARACTER(LEN=7), PARAMETER :: groupname1 = "MyGroup" ! Group name
- CHARACTER(LEN=15), PARAMETER :: groupname2 = "Group_A" ! Group name
- CHARACTER(LEN=13), PARAMETER :: dsetname1 = "dset1" ! Dataset name
- CHARACTER(LEN=5), PARAMETER :: dsetname2 = "dset2" !
-
- CHARACTER(LEN=20) :: name_buffer ! Buffer to hold object's name
- INTEGER :: type ! Type of the object
- INTEGER :: nmembers ! Number of group members
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: dataset1_id ! Dataset1 identifier
- INTEGER(HID_T) :: dataset2_id ! Dataset2 identifier
- INTEGER(HID_T) :: dataspace1_id ! Data space identifier
- INTEGER(HID_T) :: dataspace2_id ! Data space identifier
- INTEGER(HID_T) :: group1_id, group2_id ! Group identifiers
-
- INTEGER :: i, j
-
- INTEGER :: error ! Error flag
-
- INTEGER, DIMENSION(3,3) :: dset1_data ! Arrays to hold data
- INTEGER, DIMENSION(2,10) :: dset2_data !
-
- INTEGER(HSIZE_T), DIMENSION(2) :: dims1 = (/3,3/) ! Dataset dimensions
- INTEGER(HSIZE_T), DIMENSION(2) :: dims2 = (/2,10/)!
- INTEGER :: rank = 2 ! Datasets rank
-
- !
- ! Initialize dset1_data array.
- !
- do i = 1, 3
- do j = 1, 3
- dset1_data(i,j) = j;
- end do
- end do
-
-
- !
- ! Initialize dset2_data array.
- !
- do i = 1, 2
- do j = 1, 10
- dset2_data(i,j) = j;
- end do
- end do
-
- !
- ! Initialize FORTRAN interface.
- !
- CALL h5open_f(error)
-
- !
- ! Create a new file using default properties.
- !
- CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
-
- !
- ! Create group "MyGroup" in the root group using absolute name.
- !
- CALL h5gcreate_f(file_id, groupname1, group1_id, error)
-
- !
- ! Create group "Group_A" in group "MyGroup" using relative name.
- !
- CALL h5gcreate_f(group1_id, groupname2, group2_id, error)
-
- !
- ! Create the data space for the first dataset.
- !
- CALL h5screate_simple_f(rank, dims1, dataspace1_id, error)
-
- !
- ! Create a dataset in group "MyGroup" with default properties.
- !
- CALL h5dcreate_f(group1_id, dsetname1, H5T_NATIVE_INTEGER, dataspace1_id, &
- dataset1_id, error)
-
- !
- ! Write the first dataset.
- !
- CALL h5dwrite_f(dataset1_id, H5T_NATIVE_INTEGER, dset1_data, error)
-
- !
- ! Create the data space for the second dataset.
- !
- CALL h5screate_simple_f(rank, dims2, dataspace2_id, error)
-
- !
- ! Create the second dataset in group "Group_A" with default properties
- !
- CALL h5dcreate_f(group2_id, dsetname2, H5T_NATIVE_INTEGER, dataspace2_id, &
- dataset2_id, error)
-
- !
- ! Write the second dataset
- !
- CALL h5dwrite_f(dataset2_id, H5T_NATIVE_INTEGER, dset2_data, error)
-
- !
- ! Get number of members in the root group.
- !
- CALL h5gn_members_f(file_id, "/", nmembers, error)
- write(*,*) "Number of root group member is " , nmembers
-
- !
- ! Print each group member's name and type.
- !
- do i = 0, nmembers - 1
- CALL h5gget_obj_info_idx_f(file_id, "/", i, name_buffer, type, &
- error)
- write(*,*) name_buffer, type
- end do
-
- !
- ! Get number of members in MyGroup.
- !
- CALL h5gn_members_f(file_id, "MyGroup", nmembers, error)
- write(*,*) "Number of group MyGroup member is ", nmembers
-
- !
- ! Print each group member's name and type in "MyGroup" group.
- !
- do i = 0, nmembers - 1
- CALL h5gget_obj_info_idx_f(file_id, groupname1, i, name_buffer, type, &
- error)
- write(*,*) name_buffer, type
- end do
-
-
- !
- ! Get number of members in MyGroup/Group_A.
- !
- CALL h5gn_members_f(file_id, "MyGroup/Group_A", nmembers, error)
- write(*,*) "Number of group MyGroup/Group_A member is ", nmembers
-
- !
- ! Print each group member's name and type in "MyGroup/Group_A" group.
- !
- do i = 0, nmembers - 1
- CALL h5gget_obj_info_idx_f(file_id,"MyGroup/Group_A" , i, name_buffer, type, &
- error)
- write(*,*) name_buffer, type
- end do
-
- !
- ! Close the dataspace for the first dataset.
- !
- CALL h5sclose_f(dataspace1_id, error)
-
- !
- ! Close the first dataset.
- !
- CALL h5dclose_f(dataset1_id, error)
-
- !
- ! Close the dataspace for the second dataset.
- !
- CALL h5sclose_f(dataspace2_id, error)
-
- !
- ! Close the second dataset.
- !
- CALL h5dclose_f(dataset2_id, error)
-
- !
- ! Close the groups.
- !
- CALL h5gclose_f(group1_id, error)
-
- CALL h5gclose_f(group2_id, error)
-
- !
- ! Close the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- ! Close FORTRAN interface.
- !
- CALL h5close_f(error)
-
- END PROGRAM GRPITEXAMPLE
diff --git a/doc/html/Tutor/examples/grpsexample.f90 b/doc/html/Tutor/examples/grpsexample.f90
deleted file mode 100644
index 4b53bf0..0000000
--- a/doc/html/Tutor/examples/grpsexample.f90
+++ /dev/null
@@ -1,68 +0,0 @@
-!
-! The following example code shows how to create groups
-! using absolute and relative names. It creates three groups:
-! the first two groups are created using the file identifier and
-! the group absolute names, and the third group is created using
-! a group identifier and the name relative to the specified group.
-!
-
-
- PROGRAM GRPSEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=10), PARAMETER :: filename = "groupsf.h5" ! File name
- CHARACTER(LEN=8), PARAMETER :: groupname1 = "/MyGroup" ! Group name
- CHARACTER(LEN=16), PARAMETER :: groupname2 = "/MyGroup/Group_A"
- ! Group name
- CHARACTER(LEN=7), PARAMETER :: groupname3 = "Group_B" ! Group name
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: group1_id, group2_id, group3_id ! Group identifiers
-
- INTEGER :: error ! Error flag
- !
- ! Initialize FORTRAN interface.
- !
- CALL h5open_f(error)
-
- !
- ! Create a new file using default properties.
- !
- CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
-
- !
- ! Create group "MyGroup" in the root group using absolute name.
- !
- CALL h5gcreate_f(file_id, groupname1, group1_id, error)
-
- !
- ! Create group "Group_A" in group "MyGroup" using absolute name.
- !
- CALL h5gcreate_f(file_id, groupname2, group2_id, error)
-
- !
- ! Create group "Group_B" in group "MyGroup" using relative name.
- !
- CALL h5gcreate_f(group1_id, groupname3, group3_id, error)
-
- !
- ! Close the groups.
- !
- CALL h5gclose_f(group1_id, error)
- CALL h5gclose_f(group2_id, error)
- CALL h5gclose_f(group3_id, error)
-
- !
- ! Terminate access to the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- ! Close FORTRAN interface.
- !
- CALL h5close_f(error)
-
- END PROGRAM GRPSEXAMPLE
diff --git a/doc/html/Tutor/examples/h5_compound.c b/doc/html/Tutor/examples/h5_compound.c
deleted file mode 100644
index 4bb4ad1..0000000
--- a/doc/html/Tutor/examples/h5_compound.c
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * This example shows how to create a compound data type,
- * write an array which has the compound data type to the file,
- * and read back fields' subsets.
- */
-
-#include "hdf5.h"
-
-#define FILE "SDScompound.h5"
-#define DATASETNAME "ArrayOfStructures"
-#define LENGTH 10
-#define RANK 1
-
-int
-main(void)
-{
-
- /* First structure and dataset*/
- typedef struct s1_t {
- int a;
- float b;
- double c;
- } s1_t;
- s1_t s1[LENGTH];
- hid_t s1_tid; /* File datatype identifier */
-
- /* Second structure (subset of s1_t) and dataset*/
- typedef struct s2_t {
- double c;
- int a;
- } s2_t;
- s2_t s2[LENGTH];
- hid_t s2_tid; /* Memory datatype handle */
-
- /* Third "structure" ( will be used to read float field of s1) */
- hid_t s3_tid; /* Memory datatype handle */
- float s3[LENGTH];
-
- int i;
- hid_t file, dataset, space; /* Handles */
- herr_t status;
- hsize_t dim[] = {LENGTH}; /* Dataspace dimensions */
-
-
- /*
- * Initialize the data
- */
- for (i = 0; i< LENGTH; i++) {
- s1[i].a = i;
- s1[i].b = i*i;
- s1[i].c = 1./(i+1);
- }
-
- /*
- * Create the data space.
- */
- space = H5Screate_simple(RANK, dim, NULL);
-
- /*
- * Create the file.
- */
- file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /*
- * Create the memory data type.
- */
- s1_tid = H5Tcreate (H5T_COMPOUND, sizeof(s1_t));
- H5Tinsert(s1_tid, "a_name", HOFFSET(s1_t, a), H5T_NATIVE_INT);
- H5Tinsert(s1_tid, "c_name", HOFFSET(s1_t, c), H5T_NATIVE_DOUBLE);
- H5Tinsert(s1_tid, "b_name", HOFFSET(s1_t, b), H5T_NATIVE_FLOAT);
-
- /*
- * Create the dataset.
- */
- dataset = H5Dcreate(file, DATASETNAME, s1_tid, space, H5P_DEFAULT);
-
- /*
- * Wtite data to the dataset;
- */
- status = H5Dwrite(dataset, s1_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, s1);
-
- /*
- * Release resources
- */
- H5Tclose(s1_tid);
- H5Sclose(space);
- H5Dclose(dataset);
- H5Fclose(file);
-
- /*
- * Open the file and the dataset.
- */
- file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
-
- dataset = H5Dopen(file, DATASETNAME);
-
- /*
- * Create a data type for s2
- */
- s2_tid = H5Tcreate(H5T_COMPOUND, sizeof(s2_t));
-
- H5Tinsert(s2_tid, "c_name", HOFFSET(s2_t, c), H5T_NATIVE_DOUBLE);
- H5Tinsert(s2_tid, "a_name", HOFFSET(s2_t, a), H5T_NATIVE_INT);
-
- /*
- * Read two fields c and a from s1 dataset. Fields in the file
- * are found by their names "c_name" and "a_name".
- */
- status = H5Dread(dataset, s2_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, s2);
-
- /*
- * Display the fields
- */
- printf("\n");
- printf("Field c : \n");
- for( i = 0; i < LENGTH; i++) printf("%.4f ", s2[i].c);
- printf("\n");
-
- printf("\n");
- printf("Field a : \n");
- for( i = 0; i < LENGTH; i++) printf("%d ", s2[i].a);
- printf("\n");
-
- /*
- * Create a data type for s3.
- */
- s3_tid = H5Tcreate(H5T_COMPOUND, sizeof(float));
-
- status = H5Tinsert(s3_tid, "b_name", 0, H5T_NATIVE_FLOAT);
-
- /*
- * Read field b from s1 dataset. Field in the file is found by its name.
- */
- status = H5Dread(dataset, s3_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, s3);
-
- /*
- * Display the field
- */
- printf("\n");
- printf("Field b : \n");
- for( i = 0; i < LENGTH; i++) printf("%.4f ", s3[i]);
- printf("\n");
-
- /*
- * Release resources
- */
- H5Tclose(s2_tid);
- H5Tclose(s3_tid);
- H5Dclose(dataset);
- H5Fclose(file);
-
- return 0;
-}
diff --git a/doc/html/Tutor/examples/h5_copy.c b/doc/html/Tutor/examples/h5_copy.c
deleted file mode 100644
index 357596b..0000000
--- a/doc/html/Tutor/examples/h5_copy.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/***********************************************************************/
-/* */
-/* PROGRAM: h5_copy.c */
-/* PURPOSE: Shows how to use the H5SCOPY function. */
-/* DESCRIPTION: */
-/* This program creates two files, copy1.h5, and copy2.h5. */
-/* In copy1.h5, it creates a 3x4 dataset called 'Copy1', */
-/* and write 0's to this dataset. */
-/* In copy2.h5, it create a 3x4 dataset called 'Copy2', */
-/* and write 1's to this dataset. */
-/* It closes both files, reopens both files, selects two */
-/* points in copy1.h5 and writes values to them. Then it */
-/* does an H5Scopy from the first file to the second, and */
-/* writes the values to copy2.h5. It then closes the */
-/* files, reopens them, and prints the contents of the */
-/* two datasets. */
-/* */
-/***********************************************************************/
-
-#include "hdf5.h"
-#define FILE1 "copy1.h5"
-#define FILE2 "copy2.h5"
-
-#define RANK 2
-#define DIM1 3
-#define DIM2 4
-#define NUMP 2
-
-int main (void)
-{
- hid_t file1, file2, dataset1, dataset2;
- hid_t mid1, mid2, fid1, fid2;
- hsize_t fdim[] = {DIM1, DIM2};
- hsize_t mdim[] = {DIM1, DIM2};
- hsize_t start[2], stride[2], count[2], block[2];
- int buf1[DIM1][DIM2];
- int buf2[DIM1][DIM2];
- int bufnew[DIM1][DIM2];
- int val[] = {53, 59};
- hsize_t marray[] = {2};
- hsize_t coord[NUMP][RANK];
- herr_t ret;
- uint i, j;
-
-/***********************************************************************/
-/* */
-/* Create two files containing identical datasets. Write 0's to one */
-/* and 1's to the other. */
-/* */
-/***********************************************************************/
-
- for ( i = 0; i < DIM1; i++ )
- for ( j = 0; j < DIM2; j++ )
- buf1[i][j] = 0;
-
- for ( i = 0; i < DIM1; i++ )
- for ( j = 0; j < DIM2; j++ )
- buf2[i][j] = 1;
-
- file1 = H5Fcreate(FILE1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
- file2 = H5Fcreate(FILE2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- fid1 = H5Screate_simple (RANK, fdim, NULL);
- fid2 = H5Screate_simple (RANK, fdim, NULL);
-
- dataset1 = H5Dcreate (file1, "Copy1", H5T_NATIVE_INT, fid1, H5P_DEFAULT);
- dataset2 = H5Dcreate (file2, "Copy2", H5T_NATIVE_INT, fid2, H5P_DEFAULT);
-
- ret = H5Dwrite(dataset1, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf1);
- ret = H5Dwrite(dataset2, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf2);
-
- ret = H5Dclose (dataset1);
- ret = H5Dclose (dataset2);
-
- ret = H5Sclose (fid1);
- ret = H5Sclose (fid2);
-
- ret = H5Fclose (file1);
- ret = H5Fclose (file2);
-
-/***********************************************************************/
-/* */
-/* Open the two files. Select two points in one file, write values to */
-/* those point locations, then do H5Scopy and write the values to the */
-/* other file. Close files. */
-/* */
-/***********************************************************************/
-
- file1 = H5Fopen (FILE1, H5F_ACC_RDWR, H5P_DEFAULT);
- file2 = H5Fopen (FILE2, H5F_ACC_RDWR, H5P_DEFAULT);
- dataset1 = H5Dopen (file1, "Copy1");
- dataset2 = H5Dopen (file2, "Copy2");
- fid1 = H5Dget_space (dataset1);
- mid1 = H5Screate_simple(1, marray, NULL);
- coord[0][0] = 0; coord[0][1] = 3;
- coord[1][0] = 0; coord[1][1] = 1;
-
- ret = H5Sselect_elements (fid1, H5S_SELECT_SET, NUMP, (const hsize_t **)coord);
-
- ret = H5Dwrite (dataset1, H5T_NATIVE_INT, mid1, fid1, H5P_DEFAULT, val);
-
- fid2 = H5Scopy (fid1);
-
- ret = H5Dwrite (dataset2, H5T_NATIVE_INT, mid1, fid2, H5P_DEFAULT, val);
-
- ret = H5Dclose (dataset1);
- ret = H5Dclose (dataset2);
- ret = H5Sclose (fid1);
- ret = H5Sclose (fid2);
- ret = H5Fclose (file1);
- ret = H5Fclose (file2);
- ret = H5Sclose (mid1);
-
-/***********************************************************************/
-/* */
-/* Open both files and print the contents of the datasets. */
-/* */
-/***********************************************************************/
-
- file1 = H5Fopen (FILE1, H5F_ACC_RDWR, H5P_DEFAULT);
- file2 = H5Fopen (FILE2, H5F_ACC_RDWR, H5P_DEFAULT);
- dataset1 = H5Dopen (file1, "Copy1");
- dataset2 = H5Dopen (file2, "Copy2");
-
- ret = H5Dread (dataset1, H5T_NATIVE_INT, H5S_ALL, H5S_ALL,
- H5P_DEFAULT, bufnew);
-
- printf ("\nDataset 'Copy1' in file 'copy1.h5' contains: \n");
- for (i=0;i<DIM1; i++) {
- for (j=0;j<DIM2;j++) printf ("%3d ", bufnew[i][j]);
- printf("\n");
- }
-
- printf ("\nDataset 'Copy2' in file 'copy2.h5' contains: \n");
-
- ret = H5Dread (dataset2, H5T_NATIVE_INT, H5S_ALL, H5S_ALL,
- H5P_DEFAULT, bufnew);
-
- for (i=0;i<DIM1; i++) {
- for (j=0;j<DIM2;j++) printf ("%3d ", bufnew[i][j]);
- printf("\n");
- }
- ret = H5Dclose (dataset1);
- ret = H5Dclose (dataset2);
- ret = H5Fclose (file1);
- ret = H5Fclose (file2);
-
-}
diff --git a/doc/html/Tutor/examples/h5_crtatt.c b/doc/html/Tutor/examples/h5_crtatt.c
deleted file mode 100644
index a2b887c..0000000
--- a/doc/html/Tutor/examples/h5_crtatt.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Creating a dataset attribute.
- */
-
-#include <hdf5.h>
-#define FILE "dset.h5"
-
-main() {
-
- hid_t file_id, dataset_id, attribute_id, dataspace_id; /* identifiers */
- hsize_t dims;
- int attr_data[2];
- herr_t status;
-
- /* Initialize the attribute data. */
- attr_data[0] = 100;
- attr_data[1] = 200;
-
- /* Open an existing file. */
- file_id = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
-
- /* Open an existing dataset. */
- dataset_id = H5Dopen(file_id, "/dset");
-
- /* Create the data space for the attribute. */
- dims = 2;
- dataspace_id = H5Screate_simple(1, &dims, NULL);
-
- /* Create a dataset attribute. */
- attribute_id = H5Acreate(dataset_id, "attr", H5T_STD_I32BE, dataspace_id, H5P_DEFAULT);
-
- /* Write the attribute data. */
- status = H5Awrite(attribute_id, H5T_NATIVE_INT, attr_data);
-
- /* Close the attribute. */
- status = H5Aclose(attribute_id);
-
- /* Close the dataspace. */
- status = H5Sclose(dataspace_id);
-
- /* Close to the dataset. */
- status = H5Dclose(dataset_id);
-
- /* Close the file. */
- status = H5Fclose(file_id);
-}
diff --git a/doc/html/Tutor/examples/h5_crtdat.c b/doc/html/Tutor/examples/h5_crtdat.c
deleted file mode 100644
index d704cf1..0000000
--- a/doc/html/Tutor/examples/h5_crtdat.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Creating and closing a dataset.
- */
-
-#include <hdf5.h>
-#define FILE "dset.h5"
-
-main() {
-
- hid_t file_id, dataset_id, dataspace_id; /* identifiers */
- hsize_t dims[2];
- herr_t status;
-
- /* Create a new file using default properties. */
- file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /* Create the data space for the dataset. */
- dims[0] = 4;
- dims[1] = 6;
- dataspace_id = H5Screate_simple(2, dims, NULL);
-
- /* Create the dataset. */
- dataset_id = H5Dcreate(file_id, "/dset", H5T_STD_I32BE, dataspace_id, H5P_DEFAULT);
-
- /* End access to the dataset and release resources used by it. */
- status = H5Dclose(dataset_id);
-
- /* Terminate access to the data space. */
- status = H5Sclose(dataspace_id);
-
- /* Close the file. */
- status = H5Fclose(file_id);
-}
-
diff --git a/doc/html/Tutor/examples/h5_crtfile.c b/doc/html/Tutor/examples/h5_crtfile.c
deleted file mode 100644
index 680cde8..0000000
--- a/doc/html/Tutor/examples/h5_crtfile.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Creating and closing a file.
- */
-
-#include <hdf5.h>
-#define FILE "file.h5"
-
-main() {
-
- hid_t file_id; /* file identifier */
- herr_t status;
-
- /* Create a new file using default properties. */
- file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /* Terminate access to the file. */
- status = H5Fclose(file_id);
-}
-
diff --git a/doc/html/Tutor/examples/h5_crtgrp.c b/doc/html/Tutor/examples/h5_crtgrp.c
deleted file mode 100644
index a6aad93..0000000
--- a/doc/html/Tutor/examples/h5_crtgrp.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Creating and closing a group.
- */
-
-#include <hdf5.h>
-#define FILE "group.h5"
-
-main() {
-
- hid_t file_id, group_id; /* identifiers */
- herr_t status;
-
- /* Create a new file using default properties. */
- file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /* Create a group named "/MyGroup" in the file. */
- group_id = H5Gcreate(file_id, "/MyGroup", 0);
-
- /* Close the group. */
- status = H5Gclose(group_id);
-
- /* Terminate access to the file. */
- status = H5Fclose(file_id);
-}
diff --git a/doc/html/Tutor/examples/h5_crtgrpar.c b/doc/html/Tutor/examples/h5_crtgrpar.c
deleted file mode 100644
index 6dcc003..0000000
--- a/doc/html/Tutor/examples/h5_crtgrpar.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Creating groups using absolute and relative names.
- */
-
-#include <hdf5.h>
-#define FILE "groups.h5"
-
-main() {
-
- hid_t file_id, group1_id, group2_id, group3_id; /* identifiers */
- herr_t status;
-
- /* Create a new file using default properties. */
- file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /* Create group "MyGroup" in the root group using absolute name. */
- group1_id = H5Gcreate(file_id, "/MyGroup", 0);
-
- /* Create group "Group_A" in group "MyGroup" using absolute name. */
- group2_id = H5Gcreate(file_id, "/MyGroup/Group_A", 0);
-
- /* Create group "Group_B" in group "MyGroup" using relative name. */
- group3_id = H5Gcreate(group1_id, "Group_B", 0);
-
- /* Close groups. */
- status = H5Gclose(group1_id);
- status = H5Gclose(group2_id);
- status = H5Gclose(group3_id);
-
- /* Close the file. */
- status = H5Fclose(file_id);
-}
diff --git a/doc/html/Tutor/examples/h5_crtgrpd.c b/doc/html/Tutor/examples/h5_crtgrpd.c
deleted file mode 100644
index e497764..0000000
--- a/doc/html/Tutor/examples/h5_crtgrpd.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Create two datasets within groups.
- */
-
-#include <hdf5.h>
-#define FILE "groups.h5"
-
-main() {
-
- hid_t file_id, group_id, dataset_id, dataspace_id; /* identifiers */
- hsize_t dims[2];
- herr_t status;
- int i, j, dset1_data[3][3], dset2_data[2][10];
-
- /* Initialize the first dataset. */
- for (i = 0; i < 3; i++)
- for (j = 0; j < 3; j++)
- dset1_data[i][j] = j + 1;
-
- /* Initialize the second dataset. */
- for (i = 0; i < 2; i++)
- for (j = 0; j < 10; j++)
- dset2_data[i][j] = j + 1;
-
- /* Open an existing file. */
- file_id = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
-
- /* Create the data space for the first dataset. */
- dims[0] = 3;
- dims[1] = 3;
- dataspace_id = H5Screate_simple(2, dims, NULL);
-
- /* Create a dataset in group "MyGroup". */
- dataset_id = H5Dcreate(file_id, "/MyGroup/dset1", H5T_STD_I32BE, dataspace_id,
- H5P_DEFAULT);
-
- /* Write the first dataset. */
- status = H5Dwrite(dataset_id, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT,
- dset1_data);
-
- /* Close the data space for the first dataset. */
- status = H5Sclose(dataspace_id);
-
- /* Close the first dataset. */
- status = H5Dclose(dataset_id);
-
- /* Open an existing group of the specified file. */
- group_id = H5Gopen(file_id, "/MyGroup/Group_A");
-
- /* Create the data space for the second dataset. */
- dims[0] = 2;
- dims[1] = 10;
- dataspace_id = H5Screate_simple(2, dims, NULL);
-
- /* Create the second dataset in group "Group_A". */
- dataset_id = H5Dcreate(group_id, "dset2", H5T_STD_I32BE, dataspace_id, H5P_DEFAULT);
-
- /* Write the second dataset. */
- status = H5Dwrite(dataset_id, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT,
- dset2_data);
-
- /* Close the data space for the second dataset. */
- status = H5Sclose(dataspace_id);
-
- /* Close the second dataset */
- status = H5Dclose(dataset_id);
-
- /* Close the group. */
- status = H5Gclose(group_id);
-
- /* Close the file. */
- status = H5Fclose(file_id);
-}
-
diff --git a/doc/html/Tutor/examples/h5_extend.c b/doc/html/Tutor/examples/h5_extend.c
deleted file mode 100644
index 1f81827..0000000
--- a/doc/html/Tutor/examples/h5_extend.c
+++ /dev/null
@@ -1,141 +0,0 @@
-/**************************************************************
- *
- * This example shows how to work with extendible datasets.
- * In the current version of the library a dataset MUST be
- * chunked in order to be extendible.
- *
- * This example is derived from the h5_extend_write.c and
- * h5_read_chunk.c examples that are in the "Introduction
- * to HDF5".
- *
- *************************************************************/
-
-#include "hdf5.h"
-
-#define FILE "ext.h5"
-#define DATASETNAME "ExtendibleArray"
-#define RANK 2
-
-int
-main (void)
-{
- hid_t file; /* handles */
- hid_t dataspace, dataset;
- hid_t filespace;
- hid_t cparms;
- hid_t memspace;
-
- hsize_t dims[2] = { 3, 3}; /* dataset dimensions
- at creation time */
- hsize_t dims1[2] = { 3, 3}; /* data1 dimensions */
- hsize_t dims2[2] = { 7, 1}; /* data2 dimensions */
-
- hsize_t maxdims[2] = {H5S_UNLIMITED, H5S_UNLIMITED};
- hsize_t size[2];
- hsize_t offset[2];
- hsize_t i,j;
- herr_t status, status_n;
- int data1[3][3] = { {1, 1, 1}, /* data to write */
- {1, 1, 1},
- {1, 1, 1} };
-
- int data2[7] = { 2, 2, 2, 2, 2, 2, 2};
-
- /* Variables used in reading data back */
- hsize_t chunk_dims[2] ={2, 5};
- hsize_t chunk_dimsr[2];
- hsize_t dimsr[2];
- int data_out[10][3];
- int rank, rank_chunk;
-
- /* Create the data space with unlimited dimensions. */
- dataspace = H5Screate_simple (RANK, dims, maxdims);
-
- /* Create a new file. If file exists its contents will be overwritten. */
- file = H5Fcreate (FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /* Modify dataset creation properties, i.e. enable chunking */
- cparms = H5Pcreate (H5P_DATASET_CREATE);
- status = H5Pset_chunk ( cparms, RANK, chunk_dims);
-
- /* Create a new dataset within the file using cparms
- creation properties. */
- dataset = H5Dcreate (file, DATASETNAME, H5T_NATIVE_INT, dataspace,
- cparms);
-
- /* Extend the dataset. This call assures that dataset is 3 x 3.*/
- size[0] = 3;
- size[1] = 3;
- status = H5Dextend (dataset, size);
-
- /* Select a hyperslab */
- filespace = H5Dget_space (dataset);
- offset[0] = 0;
- offset[1] = 0;
- status = H5Sselect_hyperslab (filespace, H5S_SELECT_SET, offset, NULL,
- dims1, NULL);
-
- /* Write the data to the hyperslab */
- status = H5Dwrite (dataset, H5T_NATIVE_INT, dataspace, filespace,
- H5P_DEFAULT, data1);
-
- /* Extend the dataset. Dataset becomes 10 x 3 */
- dims[0] = dims1[0] + dims2[0];
- size[0] = dims[0];
- size[1] = dims[1];
- status = H5Dextend (dataset, size);
-
- /* Select a hyperslab */
- filespace = H5Dget_space (dataset);
- offset[0] = 3;
- offset[1] = 0;
- status = H5Sselect_hyperslab (filespace, H5S_SELECT_SET, offset, NULL,
- dims2, NULL);
-
- /* Define memory space */
- dataspace = H5Screate_simple (RANK, dims2, NULL);
-
- /* Write the data to the hyperslab */
- status = H5Dwrite (dataset, H5T_NATIVE_INT, dataspace, filespace,
- H5P_DEFAULT, data2);
-
- /* Close resources */
- status = H5Dclose (dataset);
- status = H5Sclose (dataspace);
- status = H5Sclose (filespace);
- status = H5Fclose (file);
-
-/****************************************************************
- Read the data back
- ***************************************************************/
-
- file = H5Fopen (FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
- dataset = H5Dopen (file, DATASETNAME);
- filespace = H5Dget_space (dataset);
- rank = H5Sget_simple_extent_ndims (filespace);
- status_n = H5Sget_simple_extent_dims (filespace, dimsr, NULL);
-
- cparms = H5Dget_create_plist (dataset);
- if (H5D_CHUNKED == H5Pget_layout (cparms))
- {
- rank_chunk = H5Pget_chunk (cparms, 2, chunk_dimsr);
- }
-
- memspace = H5Screate_simple (rank,dimsr,NULL);
- status = H5Dread (dataset, H5T_NATIVE_INT, memspace, filespace,
- H5P_DEFAULT, data_out);
- printf("\n");
- printf("Dataset: \n");
- for (j = 0; j < dimsr[0]; j++)
- {
- for (i = 0; i < dimsr[1]; i++)
- printf("%d ", data_out[j][i]);
- printf("\n");
- }
-
- status = H5Pclose (cparms);
- status = H5Dclose (dataset);
- status = H5Sclose (filespace);
- status = H5Sclose (memspace);
- status = H5Fclose (file);
-}
diff --git a/doc/html/Tutor/examples/h5_hyperslab.c b/doc/html/Tutor/examples/h5_hyperslab.c
deleted file mode 100644
index 120e30d..0000000
--- a/doc/html/Tutor/examples/h5_hyperslab.c
+++ /dev/null
@@ -1,192 +0,0 @@
-/************************************************************
-
- This example shows how to write and read a hyperslab. It
- is derived from the h5_read.c and h5_write.c examples in
- the "Introduction to HDF5".
-
- ************************************************************/
-
-#include "hdf5.h"
-
-#define FILE "sds.h5"
-#define DATASETNAME "IntArray"
-#define NX_SUB 3 /* hyperslab dimensions */
-#define NY_SUB 4
-#define NX 7 /* output buffer dimensions */
-#define NY 7
-#define NZ 3
-#define RANK 2
-#define RANK_OUT 3
-
-#define X 5 /* dataset dimensions */
-#define Y 6
-
-int
-main (void)
-{
- hsize_t dimsf[2]; /* dataset dimensions */
- int data[X][Y]; /* data to write */
-
- /*
- * Data and output buffer initialization.
- */
- hid_t file, dataset; /* handles */
- hid_t dataspace;
- hid_t memspace;
- hsize_t dimsm[3]; /* memory space dimensions */
- hsize_t dims_out[2]; /* dataset dimensions */
- herr_t status;
-
- int data_out[NX][NY][NZ ]; /* output buffer */
-
- hsize_t count[2]; /* size of the hyperslab in the file */
- hsize_t offset[2]; /* hyperslab offset in the file */
- hsize_t count_out[3]; /* size of the hyperslab in memory */
- hsize_t offset_out[3]; /* hyperslab offset in memory */
- int i, j, k, status_n, rank;
-
-
-
-/*********************************************************
- This writes data to the HDF5 file.
- *********************************************************/
-
- /*
- * Data and output buffer initialization.
- */
- for (j = 0; j < X; j++) {
- for (i = 0; i < Y; i++)
- data[j][i] = i + j;
- }
- /*
- * 0 1 2 3 4 5
- * 1 2 3 4 5 6
- * 2 3 4 5 6 7
- * 3 4 5 6 7 8
- * 4 5 6 7 8 9
- */
-
- /*
- * Create a new file using H5F_ACC_TRUNC access,
- * the default file creation properties, and the default file
- * access properties.
- */
- file = H5Fcreate (FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /*
- * Describe the size of the array and create the data space for fixed
- * size dataset.
- */
- dimsf[0] = X;
- dimsf[1] = Y;
- dataspace = H5Screate_simple (RANK, dimsf, NULL);
-
- /*
- * Create a new dataset within the file using defined dataspace and
- * default dataset creation properties.
- */
- dataset = H5Dcreate (file, DATASETNAME, H5T_STD_I32BE, dataspace,
- H5P_DEFAULT);
-
- /*
- * Write the data to the dataset using default transfer properties.
- */
- status = H5Dwrite (dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL,
- H5P_DEFAULT, data);
-
- /*
- * Close/release resources.
- */
- H5Sclose (dataspace);
- H5Dclose (dataset);
- H5Fclose (file);
-
-
-/*************************************************************
-
- This reads the hyperslab from the sds.h5 file just
- created, into a 2-dimensional plane of the 3-dimensional
- array.
-
- ************************************************************/
-
- for (j = 0; j < NX; j++) {
- for (i = 0; i < NY; i++) {
- for (k = 0; k < NZ ; k++)
- data_out[j][i][k] = 0;
- }
- }
-
- /*
- * Open the file and the dataset.
- */
- file = H5Fopen (FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
- dataset = H5Dopen (file, DATASETNAME);
-
- dataspace = H5Dget_space (dataset); /* dataspace handle */
- rank = H5Sget_simple_extent_ndims (dataspace);
- status_n = H5Sget_simple_extent_dims (dataspace, dims_out, NULL);
- printf("\nRank: %d\nDimensions: %lu x %lu \n", rank,
- (unsigned long)(dims_out[0]), (unsigned long)(dims_out[1]));
-
- /*
- * Define hyperslab in the dataset.
- */
- offset[0] = 1;
- offset[1] = 2;
- count[0] = NX_SUB;
- count[1] = NY_SUB;
- status = H5Sselect_hyperslab (dataspace, H5S_SELECT_SET, offset, NULL,
- count, NULL);
-
- /*
- * Define the memory dataspace.
- */
- dimsm[0] = NX;
- dimsm[1] = NY;
- dimsm[2] = NZ;
- memspace = H5Screate_simple (RANK_OUT, dimsm, NULL);
-
- /*
- * Define memory hyperslab.
- */
- offset_out[0] = 3;
- offset_out[1] = 0;
- offset_out[2] = 0;
- count_out[0] = NX_SUB;
- count_out[1] = NY_SUB;
- count_out[2] = 1;
- status = H5Sselect_hyperslab (memspace, H5S_SELECT_SET, offset_out, NULL,
- count_out, NULL);
-
- /*
- * Read data from hyperslab in the file into the hyperslab in
- * memory and display.
- */
- status = H5Dread (dataset, H5T_NATIVE_INT, memspace, dataspace,
- H5P_DEFAULT, data_out);
- printf ("Data:\n ");
- for (j = 0; j < NX; j++) {
- for (i = 0; i < NY; i++) printf("%d ", data_out[j][i][0]);
- printf("\n ");
- }
- printf("\n");
- /*
- * 0 0 0 0 0 0 0
- * 0 0 0 0 0 0 0
- * 0 0 0 0 0 0 0
- * 3 4 5 6 0 0 0
- * 4 5 6 7 0 0 0
- * 5 6 7 8 0 0 0
- * 0 0 0 0 0 0 0
- */
-
- /*
- * Close and release resources.
- */
- H5Dclose (dataset);
- H5Sclose (dataspace);
- H5Sclose (memspace);
- H5Fclose (file);
-
-}
diff --git a/doc/html/Tutor/examples/h5_iterate.c b/doc/html/Tutor/examples/h5_iterate.c
deleted file mode 100644
index db58183..0000000
--- a/doc/html/Tutor/examples/h5_iterate.c
+++ /dev/null
@@ -1,111 +0,0 @@
-#include <hdf5.h>
-
-#define FILE "iterate.h5"
-#define FALSE 0
-
-/* 1-D dataset with fixed dimensions */
-#define SPACE1_NAME "Space1"
-#define SPACE1_RANK 1
-#define SPACE1_DIM1 4
-
-herr_t file_info(hid_t loc_id, const char *name, void *opdata);
- /* Operator function */
-int
-main(void) {
- hid_t file; /* HDF5 File IDs */
- hid_t dataset; /* Dataset ID */
- hid_t group; /* Group ID */
- hid_t sid; /* Dataspace ID */
- hid_t tid; /* Datatype ID */
- hsize_t dims[] = {SPACE1_DIM1};
- herr_t ret; /* Generic return value */
-
-/* Compound datatype */
-typedef struct s1_t {
- unsigned int a;
- unsigned int b;
- float c;
-} s1_t;
-
- /* Create file */
- file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /* Create dataspace for datasets */
- sid = H5Screate_simple(SPACE1_RANK, dims, NULL);
-
- /* Create a group */
- group=H5Gcreate(file,"Group1",-1);
-
- /* Close a group */
- ret = H5Gclose(group);
-
- /* Create a dataset */
- dataset=H5Dcreate(file,"Dataset1",H5T_STD_U32LE,sid,H5P_DEFAULT);
-
- /* Close Dataset */
- ret = H5Dclose(dataset);
-
- /* Create a datatype */
- tid = H5Tcreate (H5T_COMPOUND, sizeof(s1_t));
-
- /* Insert fields */
- ret=H5Tinsert (tid, "a", HOFFSET(s1_t,a), H5T_NATIVE_INT);
-
- ret=H5Tinsert (tid, "b", HOFFSET(s1_t,b), H5T_NATIVE_INT);
-
- ret=H5Tinsert (tid, "c", HOFFSET(s1_t,c), H5T_NATIVE_FLOAT);
-
- /* Save datatype for later */
- ret=H5Tcommit (file, "Datatype1", tid);
-
- /* Close datatype */
- ret = H5Tclose(tid);
-
- /* Iterate through the file to see members of the root group */
-
- printf(" Objects in the root group are:\n");
- printf("\n");
-
- H5Giterate(file, "/", NULL, file_info, NULL);
-
- /* Close file */
- ret = H5Fclose(file);
-
- return 0;
-}
-
-/*
- * Operator function.
- */
-herr_t file_info(hid_t loc_id, const char *name, void *opdata)
-{
- H5G_stat_t statbuf;
-
- /*
- * Get type of the object and display its name and type.
- * The name of the object is passed to this function by
- * the Library. Some magic :-)
- */
- H5Gget_objinfo(loc_id, name, FALSE, &statbuf);
- switch (statbuf.type) {
- case H5G_GROUP:
- printf(" Object with name %s is a group \n", name);
- break;
- case H5G_DATASET:
- printf(" Object with name %s is a dataset \n", name);
- break;
- case H5G_TYPE:
- printf(" Object with name %s is a named datatype \n", name);
- break;
- default:
- printf(" Unable to identify an object ");
- }
- return 0;
- }
-
-
-
-
-
-
-
diff --git a/doc/html/Tutor/examples/h5_mount.c b/doc/html/Tutor/examples/h5_mount.c
deleted file mode 100644
index 452ad6e..0000000
--- a/doc/html/Tutor/examples/h5_mount.c
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * This program shows the concept of "mounting files".
- * Program creates one file with group G in it, and another
- * file with dataset D. Then second file is mounted in the first one
- * under the "mounting point" G. Dataset D is accessed in the first file
- * under name /G/D and data is printed out.
- */
-
-#include<hdf5.h>
-
-#define FILE1 "mount1.h5"
-#define FILE2 "mount2.h5"
-
-#define RANK 2
-#define NX 4
-#define NY 5
-
-int main(void)
-{
-
- hid_t fid1, fid2, gid; /* Files and group identifiers */
- hid_t did, tid, sid; /* Dataset and datatype identifiers */
-
- herr_t status;
- hsize_t dims[] = {NX,NY}; /* Dataset dimensions */
-
- int i, j;
- int bm[NX][NY], bm_out[NX][NY]; /* Data buffers */
-
- /*
- * Initialization of buffer matrix "bm"
- */
- for(i =0; i<NX; i++) {
- for(j = 0; j<NY; j++)
- bm[i][j] = i + j;
- }
-
- /*
- * Create first file and a group in it.
- */
- fid1 = H5Fcreate(FILE1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
- gid = H5Gcreate(fid1, "/G", 0);
-
- /*
- * Close group and file
- */
- H5Gclose(gid);
- H5Fclose(fid1);
-
- /*
- * Create second file and dataset "D" in it.
- */
- fid2 = H5Fcreate(FILE2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
- dims[0] = NX;
- dims[1] = NY;
- sid = H5Screate_simple(RANK, dims, NULL);
- did = H5Dcreate(fid2, "D", H5T_NATIVE_INT, sid, H5P_DEFAULT);
-
- /*
- * Write data to the dataset.
- */
- status = H5Dwrite(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, bm);
-
- /*
- * Close all identifiers.
- */
- H5Sclose(sid);
- H5Dclose(did);
- H5Fclose(fid2);
-
- /*
- * Reopen both files
- */
- fid1 = H5Fopen(FILE1, H5F_ACC_RDONLY, H5P_DEFAULT);
- fid2 = H5Fopen(FILE2, H5F_ACC_RDONLY, H5P_DEFAULT);
-
- /*
- * Mount second file under G in the first file.
- */
- H5Fmount(fid1, "/G", fid2, H5P_DEFAULT);
-
- /*
- * Access dataset D in the first file under /G/D name.
- */
- did = H5Dopen(fid1,"/G/D");
- tid = H5Dget_type(did);
- status = H5Dread(did, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, bm_out);
-
- /*
- * Print out the data.
- */
- for(i=0; i<NX; i++){
- for(j=0; j<NY; j++)
- printf(" %d", bm_out[i][j]);
- printf("\n");
- }
-
- /*
- * Close all identifers
- */
- H5Tclose(tid);
- H5Dclose(did);
-
- /*
- * Unmounting second file
- */
- H5Funmount(fid1, "/G");
-
- /*
- * Close both files
- */
- H5Fclose(fid1);
- H5Fclose(fid2);
-
- return 0;
-}
-
-
-
diff --git a/doc/html/Tutor/examples/h5_rdwt.c b/doc/html/Tutor/examples/h5_rdwt.c
deleted file mode 100644
index e651a29..0000000
--- a/doc/html/Tutor/examples/h5_rdwt.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Writing and reading an existing dataset.
- */
-
-#include <hdf5.h>
-#define FILE "dset.h5"
-
-main() {
-
- hid_t file_id, dataset_id; /* identifiers */
- herr_t status;
- int i, j, dset_data[4][6];
-
- /* Initialize the dataset. */
- for (i = 0; i < 4; i++)
- for (j = 0; j < 6; j++)
- dset_data[i][j] = i * 6 + j + 1;
-
- /* Open an existing file. */
- file_id = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
-
- /* Open an existing dataset. */
- dataset_id = H5Dopen(file_id, "/dset");
-
- /* Write the dataset. */
- status = H5Dwrite(dataset_id, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT,
- dset_data);
-
- status = H5Dread(dataset_id, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT,
- dset_data);
-
- /* Close the dataset. */
- status = H5Dclose(dataset_id);
-
- /* Close the file. */
- status = H5Fclose(file_id);
-}
diff --git a/doc/html/Tutor/examples/h5_read.c b/doc/html/Tutor/examples/h5_read.c
deleted file mode 100644
index 8f2f179..0000000
--- a/doc/html/Tutor/examples/h5_read.c
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * This example reads hyperslab from the SDS.h5 file
- * created by h5_write.c program into two-dimensional
- * plane of the three-dimensional array.
- * Information about dataset in the SDS.h5 file is obtained.
- */
-
-#include "hdf5.h"
-
-#define FILE "SDS.h5"
-#define DATASETNAME "IntArray"
-#define NX_SUB 3 /* hyperslab dimensions */
-#define NY_SUB 4
-#define NX 7 /* output buffer dimensions */
-#define NY 7
-#define NZ 3
-#define RANK 2
-#define RANK_OUT 3
-
-int
-main (void)
-{
- hid_t file, dataset; /* handles */
- hid_t datatype, dataspace;
- hid_t memspace;
- H5T_class_t class; /* data type class */
- H5T_order_t order; /* data order */
- size_t size; /*
- * size of the data element
- * stored in file
- */
- hsize_t dimsm[3]; /* memory space dimensions */
- hsize_t dims_out[2]; /* dataset dimensions */
- herr_t status;
-
- int data_out[NX][NY][NZ ]; /* output buffer */
-
- hsize_t count[2]; /* size of the hyperslab in the file */
- hsize_t offset[2]; /* hyperslab offset in the file */
- hsize_t count_out[3]; /* size of the hyperslab in memory */
- hsize_t offset_out[3]; /* hyperslab offset in memory */
- int i, j, k, status_n, rank;
-
- for (j = 0; j < NX; j++) {
- for (i = 0; i < NY; i++) {
- for (k = 0; k < NZ ; k++)
- data_out[j][i][k] = 0;
- }
- }
-
- /*
- * Open the file and the dataset.
- */
- file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
- dataset = H5Dopen(file, DATASETNAME);
-
- /*
- * Get datatype and dataspace handles and then query
- * dataset class, order, size, rank and dimensions.
- */
- datatype = H5Dget_type(dataset); /* datatype handle */
- class = H5Tget_class(datatype);
- if (class == H5T_INTEGER) printf("Data set has INTEGER type \n");
- order = H5Tget_order(datatype);
- if (order == H5T_ORDER_LE) printf("Little endian order \n");
-
- size = H5Tget_size(datatype);
- printf(" Data size is %d \n", size);
-
- dataspace = H5Dget_space(dataset); /* dataspace handle */
- rank = H5Sget_simple_extent_ndims(dataspace);
- status_n = H5Sget_simple_extent_dims(dataspace, dims_out, NULL);
- printf("rank %d, dimensions %lu x %lu \n", rank,
- (unsigned long)(dims_out[0]), (unsigned long)(dims_out[1]));
-
- /*
- * Define hyperslab in the dataset.
- */
- offset[0] = 1;
- offset[1] = 2;
- count[0] = NX_SUB;
- count[1] = NY_SUB;
- status = H5Sselect_hyperslab(dataspace, H5S_SELECT_SET, offset, NULL,
- count, NULL);
-
- /*
- * Define the memory dataspace.
- */
- dimsm[0] = NX;
- dimsm[1] = NY;
- dimsm[2] = NZ ;
- memspace = H5Screate_simple(RANK_OUT,dimsm,NULL);
-
- /*
- * Define memory hyperslab.
- */
- offset_out[0] = 3;
- offset_out[1] = 0;
- offset_out[2] = 0;
- count_out[0] = NX_SUB;
- count_out[1] = NY_SUB;
- count_out[2] = 1;
- status = H5Sselect_hyperslab(memspace, H5S_SELECT_SET, offset_out, NULL,
- count_out, NULL);
-
- /*
- * Read data from hyperslab in the file into the hyperslab in
- * memory and display.
- */
- status = H5Dread(dataset, H5T_NATIVE_INT, memspace, dataspace,
- H5P_DEFAULT, data_out);
- for (j = 0; j < NX; j++) {
- for (i = 0; i < NY; i++) printf("%d ", data_out[j][i][0]);
- printf("\n");
- }
- /*
- * 0 0 0 0 0 0 0
- * 0 0 0 0 0 0 0
- * 0 0 0 0 0 0 0
- * 3 4 5 6 0 0 0
- * 4 5 6 7 0 0 0
- * 5 6 7 8 0 0 0
- * 0 0 0 0 0 0 0
- */
-
- /*
- * Close/release resources.
- */
- H5Tclose(datatype);
- H5Dclose(dataset);
- H5Sclose(dataspace);
- H5Sclose(memspace);
- H5Fclose(file);
-
- return 0;
-}
diff --git a/doc/html/Tutor/examples/h5_ref2objr.c b/doc/html/Tutor/examples/h5_ref2objr.c
deleted file mode 100644
index a226778..0000000
--- a/doc/html/Tutor/examples/h5_ref2objr.c
+++ /dev/null
@@ -1,93 +0,0 @@
-#include <stdlib.h>
-#include <hdf5.h>
-
-#define FILE1 "trefer1.h5"
-
-/* dataset with fixed dimensions */
-#define SPACE1_NAME "Space1"
-#define SPACE1_RANK 1
-#define SPACE1_DIM1 4
-
-int
-main(void)
-{
- hid_t fid1; /* HDF5 File IDs */
- hid_t dataset, /* Dataset ID */
- dset2; /* Dereferenced dataset ID */
- hid_t group; /* Group ID */
- hid_t sid1; /* Dataspace ID */
- hid_t tid1; /* Datatype ID */
- hobj_ref_t *rbuf; /* buffer to read from disk */
- int *tu32; /* temp. buffer read from disk */
- int i; /* counting variables */
- char read_comment[10];
- herr_t ret; /* Generic return value */
-
- /* Allocate read buffers */
- rbuf = malloc(sizeof(hobj_ref_t)*SPACE1_DIM1);
- tu32 = malloc(sizeof(int)*SPACE1_DIM1);
-
- /* Open the file */
- fid1 = H5Fopen(FILE1, H5F_ACC_RDWR, H5P_DEFAULT);
-
- /* Open the dataset */
- dataset=H5Dopen(fid1,"/Dataset3");
-
- /* Read selection from disk */
- ret=H5Dread(dataset,H5T_STD_REF_OBJ,H5S_ALL,H5S_ALL,H5P_DEFAULT,rbuf);
-
- /* Open dataset object */
- dset2 = H5Rdereference(dataset,H5R_OBJECT,&rbuf[0]);
-
- /* Check information in referenced dataset */
- sid1 = H5Dget_space(dset2);
-
- ret=H5Sget_simple_extent_npoints(sid1);
-
- /* Read from disk */
- ret=H5Dread(dset2,H5T_NATIVE_INT,H5S_ALL,H5S_ALL,H5P_DEFAULT,tu32);
- printf("Dataset data : \n");
- for (i=0; i < SPACE1_DIM1 ; i++) printf (" %d ", tu32[i]);
- printf("\n");
- printf("\n");
-
- /* Close dereferenced Dataset */
- ret = H5Dclose(dset2);
-
- /* Open group object */
- group = H5Rdereference(dataset,H5R_OBJECT,&rbuf[2]);
-
- /* Get group's comment */
- ret=H5Gget_comment(group,".",10,read_comment);
- printf("Group comment is %s \n", read_comment);
- printf(" \n");
- /* Close group */
- ret = H5Gclose(group);
-
- /* Open datatype object */
- tid1 = H5Rdereference(dataset,H5R_OBJECT,&rbuf[3]);
-
- /* Verify correct datatype */
- {
- H5T_class_t tclass;
-
- tclass= H5Tget_class(tid1);
- if ((tclass == H5T_COMPOUND))
- printf ("Number of compound datatype members is %d \n", H5Tget_nmembers(tid1));
- printf(" \n");
- }
-
- /* Close datatype */
- ret = H5Tclose(tid1);
-
- /* Close Dataset */
- ret = H5Dclose(dataset);
-
- /* Close file */
- ret = H5Fclose(fid1);
-
- /* Free memory buffers */
- free(rbuf);
- free(tu32);
- return 0;
-}
diff --git a/doc/html/Tutor/examples/h5_ref2objw.c b/doc/html/Tutor/examples/h5_ref2objw.c
deleted file mode 100644
index d499f8e..0000000
--- a/doc/html/Tutor/examples/h5_ref2objw.c
+++ /dev/null
@@ -1,120 +0,0 @@
-
-#include <hdf5.h>
-
-#define FILE1 "trefer1.h5"
-
-/* 1-D dataset with fixed dimensions */
-#define SPACE1_NAME "Space1"
-#define SPACE1_RANK 1
-#define SPACE1_DIM1 4
-
-/* 2-D dataset with fixed dimensions */
-#define SPACE2_NAME "Space2"
-#define SPACE2_RANK 2
-#define SPACE2_DIM1 10
-#define SPACE2_DIM2 10
-
-int
-main(void) {
- hid_t fid1; /* HDF5 File IDs */
- hid_t dataset; /* Dataset ID */
- hid_t group; /* Group ID */
- hid_t sid1; /* Dataspace ID */
- hid_t tid1; /* Datatype ID */
- hsize_t dims1[] = {SPACE1_DIM1};
- hobj_ref_t *wbuf; /* buffer to write to disk */
- int *tu32; /* Temporary pointer to int data */
- int i; /* counting variables */
- const char *write_comment="Foo!"; /* Comments for group */
- herr_t ret; /* Generic return value */
-
-/* Compound datatype */
-typedef struct s1_t {
- unsigned int a;
- unsigned int b;
- float c;
-} s1_t;
-
- /* Allocate write buffers */
- wbuf=(hobj_ref_t *)malloc(sizeof(hobj_ref_t)*SPACE1_DIM1);
- tu32=malloc(sizeof(int)*SPACE1_DIM1);
-
- /* Create file */
- fid1 = H5Fcreate(FILE1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /* Create dataspace for datasets */
- sid1 = H5Screate_simple(SPACE1_RANK, dims1, NULL);
-
- /* Create a group */
- group=H5Gcreate(fid1,"Group1",-1);
-
- /* Set group's comment */
- ret=H5Gset_comment(group,".",write_comment);
-
- /* Create a dataset (inside Group1) */
- dataset=H5Dcreate(group,"Dataset1",H5T_STD_U32LE,sid1,H5P_DEFAULT);
-
- for(i=0; i<SPACE1_DIM1; i++)
- tu32[i] = i*3;
-
- /* Write selection to disk */
- ret=H5Dwrite(dataset,H5T_NATIVE_INT,H5S_ALL,H5S_ALL,H5P_DEFAULT,tu32);
-
- /* Close Dataset */
- ret = H5Dclose(dataset);
-
- /* Create another dataset (inside Group1) */
- dataset=H5Dcreate(group,"Dataset2",H5T_NATIVE_UCHAR,sid1,H5P_DEFAULT);
-
- /* Close Dataset */
- ret = H5Dclose(dataset);
-
- /* Create a datatype to refer to */
- tid1 = H5Tcreate (H5T_COMPOUND, sizeof(s1_t));
-
- /* Insert fields */
- ret=H5Tinsert (tid1, "a", HOFFSET(s1_t,a), H5T_NATIVE_INT);
-
- ret=H5Tinsert (tid1, "b", HOFFSET(s1_t,b), H5T_NATIVE_INT);
-
- ret=H5Tinsert (tid1, "c", HOFFSET(s1_t,c), H5T_NATIVE_FLOAT);
-
- /* Save datatype for later */
- ret=H5Tcommit (group, "Datatype1", tid1);
-
- /* Close datatype */
- ret = H5Tclose(tid1);
-
- /* Close group */
- ret = H5Gclose(group);
-
- /* Create a dataset to store references */
- dataset=H5Dcreate(fid1,"Dataset3",H5T_STD_REF_OBJ,sid1,H5P_DEFAULT);
-
- /* Create reference to dataset */
- ret = H5Rcreate(&wbuf[0],fid1,"/Group1/Dataset1",H5R_OBJECT,-1);
-
- /* Create reference to dataset */
- ret = H5Rcreate(&wbuf[1],fid1,"/Group1/Dataset2",H5R_OBJECT,-1);
-
- /* Create reference to group */
- ret = H5Rcreate(&wbuf[2],fid1,"/Group1",H5R_OBJECT,-1);
-
- /* Create reference to named datatype */
- ret = H5Rcreate(&wbuf[3],fid1,"/Group1/Datatype1",H5R_OBJECT,-1);
-
- /* Write selection to disk */
- ret=H5Dwrite(dataset,H5T_STD_REF_OBJ,H5S_ALL,H5S_ALL,H5P_DEFAULT,wbuf);
-
- /* Close disk dataspace */
- ret = H5Sclose(sid1);
-
- /* Close Dataset */
- ret = H5Dclose(dataset);
-
- /* Close file */
- ret = H5Fclose(fid1);
- free(wbuf);
- free(tu32);
- return 0;
-}
diff --git a/doc/html/Tutor/examples/h5_ref2regr.c b/doc/html/Tutor/examples/h5_ref2regr.c
deleted file mode 100644
index 9f747ae..0000000
--- a/doc/html/Tutor/examples/h5_ref2regr.c
+++ /dev/null
@@ -1,119 +0,0 @@
-#include <stdlib.h>
-#include <hdf5.h>
-
-#define FILE2 "trefer2.h5"
-#define NPOINTS 10
-
-/* 1-D dataset with fixed dimensions */
-#define SPACE1_NAME "Space1"
-#define SPACE1_RANK 1
-#define SPACE1_DIM1 4
-
-/* 2-D dataset with fixed dimensions */
-#define SPACE2_NAME "Space2"
-#define SPACE2_RANK 2
-#define SPACE2_DIM1 10
-#define SPACE2_DIM2 10
-
-int
-main(void)
-{
- hid_t fid1; /* HDF5 File IDs */
- hid_t dset1, /* Dataset ID */
- dset2; /* Dereferenced dataset ID */
- hid_t sid1, /* Dataspace ID #1 */
- sid2; /* Dataspace ID #2 */
- hsize_t * coords; /* Coordinate buffer */
- hsize_t low[SPACE2_RANK]; /* Selection bounds */
- hsize_t high[SPACE2_RANK]; /* Selection bounds */
- hdset_reg_ref_t *rbuf; /* buffer to to read disk */
- int *drbuf; /* Buffer for reading numeric data from disk */
- int i, j; /* counting variables */
- herr_t ret; /* Generic return value */
-
- /* Output message about test being performed */
-
- /* Allocate write & read buffers */
- rbuf=malloc(sizeof(hdset_reg_ref_t)*SPACE1_DIM1);
- drbuf=calloc(sizeof(int),SPACE2_DIM1*SPACE2_DIM2);
-
- /* Open the file */
- fid1 = H5Fopen(FILE2, H5F_ACC_RDWR, H5P_DEFAULT);
-
- /* Open the dataset */
- dset1=H5Dopen(fid1,"/Dataset1");
-
- /* Read selection from disk */
- ret=H5Dread(dset1,H5T_STD_REF_DSETREG,H5S_ALL,H5S_ALL,H5P_DEFAULT,rbuf);
-
- /* Try to open objects */
- dset2 = H5Rdereference(dset1,H5R_DATASET_REGION,&rbuf[0]);
-
- /* Check information in referenced dataset */
- sid1 = H5Dget_space(dset2);
-
- ret=H5Sget_simple_extent_npoints(sid1);
- printf(" Number of elements in the dataset is : %d\n",ret);
-
- /* Read from disk */
- ret=H5Dread(dset2,H5T_NATIVE_INT,H5S_ALL,H5S_ALL,H5P_DEFAULT,drbuf);
-
- for(i=0; i<SPACE2_DIM1; i++) {
- for (j=0; j<SPACE2_DIM2; j++) printf (" %d ", drbuf[i*SPACE2_DIM2+j]);
- printf("\n"); }
-
- /* Get the hyperslab selection */
- sid2=H5Rget_region(dset1,H5R_DATASET_REGION,&rbuf[0]);
-
- /* Verify correct hyperslab selected */
- ret = H5Sget_select_npoints(sid2);
- printf(" Number of elements in the hyperslab is : %d \n", ret);
- ret = H5Sget_select_hyper_nblocks(sid2);
- coords=malloc(ret*SPACE2_RANK*sizeof(hsize_t)*2); /* allocate space for the hyperslab blocks */
- ret = H5Sget_select_hyper_blocklist(sid2,0,ret,coords);
- printf(" Hyperslab coordinates are : \n");
- printf (" ( %lu , %lu ) ( %lu , %lu ) \n", \
-(unsigned long)coords[0],(unsigned long)coords[1],(unsigned long)coords[2],(unsigned long)coords[3]);
- free(coords);
- ret = H5Sget_select_bounds(sid2,low,high);
-
- /* Close region space */
- ret = H5Sclose(sid2);
-
- /* Get the element selection */
- sid2=H5Rget_region(dset1,H5R_DATASET_REGION,&rbuf[1]);
-
- /* Verify correct elements selected */
- ret = H5Sget_select_elem_npoints(sid2);
- printf(" Number of selected elements is : %d\n", ret);
-
- /* Allocate space for the element points */
- coords= malloc(ret*SPACE2_RANK*sizeof(hsize_t));
- ret = H5Sget_select_elem_pointlist(sid2,0,ret,coords);
- printf(" Coordinates of selected elements are : \n");
- for (i=0; i<2*NPOINTS; i=i+2)
- printf(" ( %lu , %lu ) \n", (unsigned long)coords[i],(unsigned long)coords[i+1]);
-
- free(coords);
- ret = H5Sget_select_bounds(sid2,low,high);
-
- /* Close region space */
- ret = H5Sclose(sid2);
-
- /* Close first space */
- ret = H5Sclose(sid1);
-
- /* Close dereferenced Dataset */
- ret = H5Dclose(dset2);
-
- /* Close Dataset */
- ret = H5Dclose(dset1);
-
- /* Close file */
- ret = H5Fclose(fid1);
-
- /* Free memory buffers */
- free(rbuf);
- free(drbuf);
- return 0;
-}
diff --git a/doc/html/Tutor/examples/h5_ref2regw.c b/doc/html/Tutor/examples/h5_ref2regw.c
deleted file mode 100644
index 35352f8..0000000
--- a/doc/html/Tutor/examples/h5_ref2regw.c
+++ /dev/null
@@ -1,112 +0,0 @@
-#include <stdlib.h>
-#include <hdf5.h>
-
-#define FILE2 "trefer2.h5"
-#define SPACE1_NAME "Space1"
-#define SPACE1_RANK 1
-#define SPACE1_DIM1 4
-
-/* Dataset with fixed dimensions */
-#define SPACE2_NAME "Space2"
-#define SPACE2_RANK 2
-#define SPACE2_DIM1 10
-#define SPACE2_DIM2 10
-
-/* Element selection information */
-#define POINT1_NPOINTS 10
-
-int
-main(void)
-{
- hid_t fid1; /* HDF5 File IDs */
- hid_t dset1, /* Dataset ID */
- dset2; /* Dereferenced dataset ID */
- hid_t sid1, /* Dataspace ID #1 */
- sid2; /* Dataspace ID #2 */
- hsize_t dims1[] = {SPACE1_DIM1},
- dims2[] = {SPACE2_DIM1, SPACE2_DIM2};
- hsize_t start[SPACE2_RANK]; /* Starting location of hyperslab */
- hsize_t stride[SPACE2_RANK]; /* Stride of hyperslab */
- hsize_t count[SPACE2_RANK]; /* Element count of hyperslab */
- hsize_t block[SPACE2_RANK]; /* Block size of hyperslab */
- hsize_t coord1[POINT1_NPOINTS][SPACE2_RANK];
- /* Coordinates for point selection */
- hdset_reg_ref_t *wbuf; /* buffer to write to disk */
- int *dwbuf; /* Buffer for writing numeric data to disk */
- int i; /* counting variables */
- herr_t ret; /* Generic return value */
-
-
- /* Allocate write & read buffers */
- wbuf=calloc(sizeof(hdset_reg_ref_t), SPACE1_DIM1);
- dwbuf=malloc(sizeof(int)*SPACE2_DIM1*SPACE2_DIM2);
-
- /* Create file */
- fid1 = H5Fcreate(FILE2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /* Create dataspace for datasets */
- sid2 = H5Screate_simple(SPACE2_RANK, dims2, NULL);
-
- /* Create a dataset */
- dset2=H5Dcreate(fid1,"Dataset2",H5T_STD_U8LE,sid2,H5P_DEFAULT);
-
- for(i=0; i<SPACE2_DIM1*SPACE2_DIM2; i++)
- dwbuf[i]=i*3;
-
- /* Write selection to disk */
- ret=H5Dwrite(dset2,H5T_NATIVE_INT,H5S_ALL,H5S_ALL,H5P_DEFAULT,dwbuf);
-
- /* Close Dataset */
- ret = H5Dclose(dset2);
-
- /* Create dataspace for the reference dataset */
- sid1 = H5Screate_simple(SPACE1_RANK, dims1, NULL);
-
- /* Create a dataset */
- dset1=H5Dcreate(fid1,"Dataset1",H5T_STD_REF_DSETREG,sid1,H5P_DEFAULT);
-
- /* Create references */
-
- /* Select 6x6 hyperslab for first reference */
- start[0]=2; start[1]=2;
- stride[0]=1; stride[1]=1;
- count[0]=6; count[1]=6;
- block[0]=1; block[1]=1;
- ret = H5Sselect_hyperslab(sid2,H5S_SELECT_SET,start,stride,count,block);
-
- /* Store first dataset region */
- ret = H5Rcreate(&wbuf[0],fid1,"/Dataset2",H5R_DATASET_REGION,sid2);
-
- /* Select sequence of ten points for second reference */
- coord1[0][0]=6; coord1[0][1]=9;
- coord1[1][0]=2; coord1[1][1]=2;
- coord1[2][0]=8; coord1[2][1]=4;
- coord1[3][0]=1; coord1[3][1]=6;
- coord1[4][0]=2; coord1[4][1]=8;
- coord1[5][0]=3; coord1[5][1]=2;
- coord1[6][0]=0; coord1[6][1]=4;
- coord1[7][0]=9; coord1[7][1]=0;
- coord1[8][0]=7; coord1[8][1]=1;
- coord1[9][0]=3; coord1[9][1]=3;
- ret = H5Sselect_elements(sid2,H5S_SELECT_SET,POINT1_NPOINTS,(const hsize_t **)coord1);
-
- /* Store second dataset region */
- ret = H5Rcreate(&wbuf[1],fid1,"/Dataset2",H5R_DATASET_REGION,sid2);
-
- /* Write selection to disk */
- ret=H5Dwrite(dset1,H5T_STD_REF_DSETREG,H5S_ALL,H5S_ALL,H5P_DEFAULT,wbuf);
-
- /* Close all objects */
- ret = H5Sclose(sid1);
- ret = H5Dclose(dset1);
- ret = H5Sclose(sid2);
-
- /* Close file */
- ret = H5Fclose(fid1);
-
- free(wbuf);
- free(dwbuf);
- return 0;
-}
-
-
diff --git a/doc/html/Tutor/examples/h5_reference.c b/doc/html/Tutor/examples/h5_reference.c
deleted file mode 100644
index a69afe2..0000000
--- a/doc/html/Tutor/examples/h5_reference.c
+++ /dev/null
@@ -1,146 +0,0 @@
- /*
- * This program illustrates how references to the objects can be used.
- * Program creates two datasets in the file. It also creates the third
- * dataset, and references to the first two datasets are stored in it.
- * Program reopens the file and reads dataset with the references.
- * References are used to open first two datasets and read datatspace
- * and datatype information about them.
- *
- */
-
-#include<hdf5.h>
-
-#define FILE "refere.h5"
-
-int
-main(void) {
- hid_t fid; /* File, datasets, datatypes and */
- hid_t did_a, sid_a; /* dataspaces identifiers for three */
- hid_t did_b, tid_b, sid_b; /* datasets. */
- hid_t did_r, tid_r, sid_r;
- herr_t status;
-
- hobj_ref_t *wbuf; /* buffer to write to disk */
- hobj_ref_t *rbuf; /* buffer to read from disk */
-
-
- hsize_t dim_r[1];
- hsize_t dim_a[1];
- hsize_t dim_b[2];
-
- herr_t ret; /* return values */
-
- /*
- * Create a file using default properties.
- */
- fid = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-
- /*
- * Create dataset "A" in the file.
- */
- dim_a[0] = 5;
- sid_a = H5Screate_simple(1, dim_a, NULL);
- did_a = H5Dcreate(fid, "A", H5T_NATIVE_INT, sid_a, H5P_DEFAULT);
-
- /*
- * Create dataset "B" in the file.
- */
- dim_b[0] = 2;
- dim_b[1] = 6;
- sid_b = H5Screate_simple(2, dim_b, NULL);
- did_b = H5Dcreate(fid, "B", H5T_NATIVE_FLOAT, sid_b, H5P_DEFAULT);
-
- /*
- * Create dataset "R" to store references to the datasets "A" and "B".
- */
- dim_r[0] = 2;
- sid_r = H5Screate_simple(1, dim_r, NULL);
- tid_r = H5Tcopy(H5T_STD_REF_OBJ);
- did_r = H5Dcreate(fid, "R", tid_r, sid_r, H5P_DEFAULT );
-
- /*
- * Allocate write and read buffers.
- */
- wbuf = malloc(sizeof(hobj_ref_t)*2);
- rbuf = malloc(sizeof(hobj_ref_t)*2);
-
- /*
- * Create references to the datasets "A" and "B"
- * and store them in the wbuf.
- */
- H5Rcreate(&wbuf[0], fid, "A", H5R_OBJECT, -1);
- H5Rcreate(&wbuf[1], fid, "B", H5R_OBJECT, -1);
-
- /*
- * Write dataset R using default transfer properties.
- */
- status = H5Dwrite(did_r, H5T_STD_REF_OBJ, H5S_ALL, H5S_ALL,
- H5P_DEFAULT, wbuf);
-
- /*
- * Close all objects.
- */
- H5Sclose(sid_a);
- H5Dclose(did_a);
-
- H5Sclose(sid_b);
- H5Dclose(did_b);
-
- H5Tclose(tid_r);
- H5Sclose(sid_r);
- H5Dclose(did_r);
-
- H5Fclose(fid);
-
- /*
- * Reopen the file.
- */
- fid = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
-
- /*
- * Open and read dataset "R".
- */
- did_r = H5Dopen(fid, "R");
- status = H5Dread(did_r, H5T_STD_REF_OBJ, H5S_ALL, H5S_ALL,
- H5P_DEFAULT, rbuf);
-
- /*
- * Open dataset A using reference to it.
- */
- did_a = H5Rdereference(did_r, H5R_OBJECT, &rbuf[0]);
-
- /*
- * Get rank of the dataset "A"
- */
-
- printf("\n");
- sid_a = H5Dget_space(did_a);
- ret = H5Sget_simple_extent_ndims(sid_a);
-
- if(ret == 1) printf("Rank of A is %d.\n", ret);
- printf("\n");
-
- /*
- * Get datatype of the dataset "B"
- */
- did_b = H5Rdereference(did_r, H5R_OBJECT, &rbuf[1]);
- tid_b = H5Dget_type(did_b);
- if(H5Tequal(tid_b, H5T_NATIVE_FLOAT))
- printf("Datatype of B is H5T_NATIVE_FLOAT.\n");
- printf("\n");
-
- /*
- * Close all objects.
- */
- H5Dclose(did_a);
- H5Sclose(sid_a);
- H5Dclose(did_b);
- H5Tclose(tid_b);
- H5Fclose(fid);
-
- return 0;
-
- }
-
-
-
diff --git a/doc/html/Tutor/examples/hyperslab.f90 b/doc/html/Tutor/examples/hyperslab.f90
deleted file mode 100644
index e49f18b..0000000
--- a/doc/html/Tutor/examples/hyperslab.f90
+++ /dev/null
@@ -1,199 +0,0 @@
-!
-! This example shows how to write and read a hyperslab.
-!
-
- PROGRAM SELECTEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=7), PARAMETER :: filename = "sdsf.h5" ! File name
- CHARACTER(LEN=8), PARAMETER :: dsetname = "IntArray" ! Dataset name
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: dset_id ! Dataset identifier
- INTEGER(HID_T) :: dataspace ! Dataspace identifier
- INTEGER(HID_T) :: memspace ! memspace identifier
-
- INTEGER(HSIZE_T), DIMENSION(3) :: dimsm = (/7,7,3/) ! Dataset dimensions
- ! in memory
- INTEGER(HSIZE_T), DIMENSION(2) :: dims_out ! Buffer to read in dataset
- ! dimesions
- INTEGER(HSIZE_T), DIMENSION(2) :: dimsf = (/5,6/) ! Dataset dimensions.
-
- INTEGER(HSIZE_T), DIMENSION(2) :: count = (/3,4/)
- ! Size of the hyperslab in the file
- INTEGER(HSIZE_T), DIMENSION(2) :: offset = (/1,2/)
- !hyperslab offset in the file
- INTEGER(HSIZE_T), DIMENSION(3) :: count_out = (/3,4,1/)
- !Size of the hyperslab in memory
- INTEGER(HSIZE_T), DIMENSION(3) :: offset_out = (/3,0,0/)
- !hyperslab offset in memory
- INTEGER, DIMENSION(5,6) :: data ! Data to write
- INTEGER, DIMENSION(7,7,3) :: data_out ! Output buffer
- INTEGER :: dsetrank = 2 ! Dataset rank ( in file )
- INTEGER :: memrank = 3 ! Dataset rank ( in memory )
- INTEGER :: rank
- INTEGER :: i, j, k
-
- INTEGER :: error, error_n ! Error flags
-
-
- !
- ! Write data to the HDF5 file.
- !
-
- !
- ! Data initialization.
- !
- do i = 1, 5
- do j = 1, 6
- data(i,j) = (i-1) + (j-1);
- end do
- end do
- !
- ! 0, 1, 2, 3, 4, 5
- ! 1, 2, 3, 4, 5, 6
- ! 2, 3, 4, 5, 6, 7
- ! 3, 4, 5, 6, 7, 8
- ! 4, 5, 6, 7, 8, 9
- !
-
- !
- ! Initialize FORTRAN predefined datatypes
- !
- CALL h5open_f(error)
-
- !
- ! Create a new file using default properties.
- !
- CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
-
- !
- ! Create the data space for the dataset.
- !
- CALL h5screate_simple_f(dsetrank, dimsf, dataspace, error)
-
- !
- ! Create the dataset with default properties.
- !
- CALL h5dcreate_f(file_id, dsetname, H5T_NATIVE_INTEGER, dataspace, &
- dset_id, error)
-
- !
- ! Write the dataset.
- !
- CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, data, error)
-
- !
- ! Close the dataspace for the dataset.
- !
- CALL h5sclose_f(dataspace, error)
-
- !
- ! Close the dataset.
- !
- CALL h5dclose_f(dset_id, error)
-
- !
- ! Close the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- ! This part of the code reads the hyperslab from the sds.h5 file just
- ! created, into a 2-dimensional plane of the 3-dimensional dataset.
- !
-
- !
- ! Initialize data_out array.
- !
- do i = 1, 7
- do j = 1, 7
- do k = 1,3
- data_out(i,j,k) = 0;
- end do
- end do
- end do
-
- !
- ! Open the file.
- !
- CALL h5fopen_f (filename, H5F_ACC_RDONLY_F, file_id, error)
-
- !
- ! Open the dataset.
- !
- CALL h5dopen_f(file_id, dsetname, dset_id, error)
-
- !
- ! Get dataset's dataspace identifier.
- !
- CALL h5dget_space_f(dset_id, dataspace, error)
-
- !
- ! Select hyperslab in the dataset.
- !
- CALL h5sselect_hyperslab_f(dataspace, H5S_SELECT_SET_F, &
- offset, count, error)
- !
- ! Create memory dataspace.
- !
- CALL h5screate_simple_f(memrank, dimsm, memspace, error)
-
- !
- ! Select hyperslab in memory.
- !
- CALL h5sselect_hyperslab_f(memspace, H5S_SELECT_SET_F, &
- offset_out, count_out, error)
-
- !
- ! Read data from hyperslab in the file into the hyperslab in
- ! memory and display.
- !
- CALL H5Dread_f(dset_id, H5T_NATIVE_INTEGER, data_out, error, &
- memspace, dataspace)
-
- !
- ! Display data_out array
- !
- do i = 1, 7
- print *, (data_out(i,j,1), j = 1,7)
- end do
-
- ! 0 0 0 0 0 0 0
- ! 0 0 0 0 0 0 0
- ! 0 0 0 0 0 0 0
- ! 3 4 5 6 0 0 0
- ! 4 5 6 7 0 0 0
- ! 5 6 7 8 0 0 0
- ! 0 0 0 0 0 0 0
- !
-
- !
- ! Close the dataspace for the dataset.
- !
- CALL h5sclose_f(dataspace, error)
-
- !
- ! Close the memoryspace.
- !
- CALL h5sclose_f(memspace, error)
-
- !
- ! Close the dataset.
- !
- CALL h5dclose_f(dset_id, error)
-
- !
- ! Close the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- ! Close FORTRAN predefined datatypes.
- !
- CALL h5close_f(error)
-
- END PROGRAM SELECTEXAMPLE
diff --git a/doc/html/Tutor/examples/java/Compound.java b/doc/html/Tutor/examples/java/Compound.java
deleted file mode 100644
index 219e1c1..0000000
--- a/doc/html/Tutor/examples/java/Compound.java
+++ /dev/null
@@ -1,540 +0,0 @@
-/******************************************************************
- * Compound.java (for HDF5 tutorial lesson 11)
- *
- * -- Creating a compound data type
- * (a java conversion from compound.c)
- *
- ******************************************************************/
-
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class Compound
-{
- public static void main (String []argv)
- {
- final String FILE = "SDScompound.h5";
- final String DATASETNAME = "ArrayOfStructures";
- final int LENGTH = 10;
- final int RANK = 1;
-
- /* First structure and dataset */
- /* an array of LENGTH 'complex' numbers */
- byte[] data1 = new byte[LENGTH * 16];
-
- int[] AR = new int[1];
- float[] BR = new float[1];
- double[] CR = new double[1];
-
- byte [] ARec = new byte[4];
- byte [] BRec = new byte[4];
- byte [] CRec = new byte[8];
-
- int s1_tid; /* File datatype identifier */
-
- /* Second structure (subset of s1_t) and dataset*/
- byte[] data2 = new byte[LENGTH * 12];
- int s2_tid; /* Memory datatype handle */
-
- /* Third "structure" ( will be used to read float field of s1) */
- int s3_tid; /* Memory datatype handle */
- float[] s3 = new float[LENGTH];
-
- int i;
- int file, dataset, space; /* Handles */
- int status;
- long[] dim = new long[1]; /* Dataspace dimensions */
- dim[0] = LENGTH;
-
- /*
- * Initialize the data
- */
- for (i = 0; i < LENGTH; i++)
- {
- AR[0] = (int) i;
- BR[0] = (float) i * i;
- CR[0] = (double) 1. / (i + 1);
-
- ARec = HDFNativeData.intToByte (0, 1, AR);
- BRec = HDFNativeData.floatToByte (0, 1, BR);
- CRec = HDFNativeData.doubleToByte (0, 1, CR);
-
- System.arraycopy (ARec, 0, data1, (i * 16), 4);
- System.arraycopy (BRec, 0, data1, (i * 16) + 4, 4);
- System.arraycopy (CRec, 0, data1, (i * 16) + 8, 8);
- }
-
- /*
- * Create the data space.
- */
- space = H5Screate_simple_wrap (RANK, dim, null);
-
- /*
- * Create the file.
- */
- file = H5Fcreate_wrap (FILE, HDF5Constants.H5F_ACC_TRUNC,
- HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
-
- /*
- * Create the memory data type.
- */
- s1_tid = H5Tcreate_wrap (HDF5Constants.H5T_COMPOUND, 16);
- H5Tinsert_wrap (s1_tid, "a_name", 0,
- H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT));
- H5Tinsert_wrap (s1_tid, "b_name", 4,
- H5.J2C (HDF5CDataTypes.JH5T_NATIVE_FLOAT));
- H5Tinsert_wrap (s1_tid, "c_name", 8,
- H5.J2C (HDF5CDataTypes.JH5T_NATIVE_DOUBLE));
-
- /*
- * Create the dataset.
- */
- dataset = H5Dcreate_wrap (file, DATASETNAME, s1_tid,
- space, HDF5Constants.H5P_DEFAULT);
-
- /*
- * Wtite data to the dataset;
- */
- status = H5Dwrite_wrap (dataset, s1_tid,
- HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, data1);
-
- /*
- * Release resources
- */
- H5Tclose_wrap (s1_tid);
- H5Sclose_wrap (space);
- H5Dclose_wrap (dataset);
- H5Fclose_wrap (file);
-
- /*
- * Open the file and the dataset.
- */
- file = H5Fopen_wrap (FILE, HDF5Constants.H5F_ACC_RDONLY,
- HDF5Constants.H5P_DEFAULT);
-
- dataset = H5Dopen_wrap (file, DATASETNAME);
-
- /*
- * Create a data type for s2
- */
- s2_tid = H5Tcreate_wrap (HDF5Constants.H5T_COMPOUND, 12);
- H5Tinsert_wrap (s2_tid, "c_name", 0,
- H5.J2C (HDF5CDataTypes.JH5T_NATIVE_DOUBLE));
- H5Tinsert_wrap (s2_tid, "a_name", 8,
- H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT));
-
- /*
- * Read two fields c and a from s1 dataset. Fields in the file
- * are found by their names "c_name" and "a_name".
- */
- status = H5Dread_wrap (dataset, s2_tid, HDF5Constants.H5S_ALL,
- HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, data2);
-
- /*
- * Display the fields. Convert from bytes into numbers.
- */
- System.out.println ("\nField c : ");
- for( i = 0; i < LENGTH; i++) {
- System.arraycopy (data2, (i*12), CRec, 0, 8);
- CR = HDFNativeData.byteToDouble(0, 1, CRec);
- System.out.print (CR[0]+" ");
- }
- System.out.println ();
-
- System.out.println("\nField a :");
- for( i = 0; i < LENGTH; i++) {
- System.arraycopy (data2, (i*12)+8, ARec, 0, 4);
- AR = HDFNativeData.byteToInt(0, 1, ARec);
- System.out.print (AR[0]+" ");
- }
- System.out.println ();
-
- /*
- * Create a data type for s3.
- */
- s3_tid = H5Tcreate_wrap (HDF5Constants.H5T_COMPOUND, 4);
-
- status =
- H5Tinsert_wrap (s3_tid, "b_name", 0,
- H5.J2C (HDF5CDataTypes.JH5T_NATIVE_FLOAT));
-
- /*
- * Read field b from s1 dataset. Field in the file is found by its name.
- */
- status = H5Dread_wrap (dataset, s3_tid, HDF5Constants.H5S_ALL,
- HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, s3);
-
- /*
- * Display the field. Data is read directly into array of 'float'.
- */
- System.out.println ();
- System.out.println ("Field b :");
- for( i = 0; i < LENGTH; i++) {
- System.out.print (s3[i]+" ");
- }
- System.out.println ();
-
- /*
- * Release resources
- */
- H5Tclose_wrap (s2_tid);
- H5Tclose_wrap (s3_tid);
- H5Dclose_wrap (dataset);
- H5Fclose_wrap (file);
- }
-
-
- // Help function for creating a new file
- public static int H5Fcreate_wrap (String name, int flags,
- int create_id, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fcreate (name, flags, create_id, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Fcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Fcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for adding another member to the compound
- // datatype datatype_id.
- public static int H5Tinsert_wrap (int type_id, String name,
- long offset, int field_id)
- {
- int status = -1;
- try
- {
- // Adding another member to the compound datatype datatype_id.
- status = H5.H5Tinsert (type_id, name, offset, field_id);
-
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Tinsert_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Tinsert_wrap() with HDF5Exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for creating the memory data type.
- public static int H5Tcreate_wrap (int dclass, int size)
- {
- int datatype_id = -1; // memory data type identifier
- try
- {
- // Create the memory data type.
- datatype_id = H5.H5Tcreate (dclass, size);
-
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Tcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Tcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return datatype_id;
- }
-
-
- // Help function for opening an existing file
- public static int H5Fopen_wrap (String name, int flags, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fopen (name, flags, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Fopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Fopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for opening an existing dataset
- public static int H5Dopen_wrap (int loc_id, String name)
- {
- int dataset_id = -1; // dataset identifier
-
- try
- {
- // Opening an existing dataset
- dataset_id = H5.H5Dopen (loc_id, name);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Dopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Dopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataset_id;
- }
-
-
- // Help function for creating a new simple dataspace and opening it
- // for access
- public static int H5Screate_simple_wrap (int rank, long dims[],
- long maxdims[])
- {
- int dataspace_id = -1; // dataspace identifier
-
- try
- {
- // Create the data space for the dataset.
- dataspace_id = H5.H5Screate_simple (rank, dims, maxdims);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Screate_simple_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Screate_simple_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataspace_id;
- }
-
-
- // Help function for creating a dataset
- public static int H5Dcreate_wrap (int loc_id, String name, int type_id,
- int space_id, int create_plist_id)
- {
- int dataset_id = -1; // dataset identifier
-
- try
- {
- // Create the dataset
- dataset_id = H5.H5Dcreate (loc_id, name, type_id, space_id,
- create_plist_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Dcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Dcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataset_id;
- }
-
-
- // Help function for writing the dataset
- public static int H5Dwrite_wrap (int dataset_id, int mem_type_id,
- int mem_space_id, int file_space_id,
- int xfer_plist_id, Object buf)
- {
- int status = -1;
-
- try
- {
- // Write the dataset.
- status = H5.H5Dwrite (dataset_id, mem_type_id, mem_space_id,
- file_space_id, xfer_plist_id, buf);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Dwrite_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Dwrite_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for reading the dataset
- public static int H5Dread_wrap (int dataset_id, int mem_type_id,
- int mem_space_id, int file_space_id,
- int xfer_plist_id, Object obj)
- {
- int status = -1;
-
- try
- {
- // Read the dataset.
- status = H5.H5Dread (dataset_id, mem_type_id, mem_space_id,
- file_space_id, xfer_plist_id, obj);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Dread_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Dread_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
-
- // Help function for terminating access to the data space.
- public static int H5Sclose_wrap (int dataspace_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the data space.
- status = H5.H5Sclose (dataspace_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Sclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Sclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for releasing a datatype.
- public static int H5Tclose_wrap (int type_id)
- {
- int status = -1;
-
- try
- {
- // Releasing a datatype.
- status = H5.H5Tclose (type_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Tclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Tclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for ending access to the dataset and releasing
- // resources used by it.
- public static int H5Dclose_wrap (int dataset_id)
- {
- int status = -1;
-
- try
- {
- // End access to the dataset and release resources used by it.
- status = H5.H5Dclose (dataset_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Dclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Dclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Compound.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Compound.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-}
diff --git a/doc/html/Tutor/examples/java/Copy.java b/doc/html/Tutor/examples/java/Copy.java
deleted file mode 100644
index f174210..0000000
--- a/doc/html/Tutor/examples/java/Copy.java
+++ /dev/null
@@ -1,541 +0,0 @@
-/******************************************************************
- * Copy.java (for HDF5 tutorial lesson 13)
- *
- * -- Showing how to use the H5SCOPY function.
- * (a java conversion from h5_copy.c)
- *
- ******************************************************************/
-
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class Copy
-{
- public static void main (String []argv)
- {
- final String FILE1 = "copy1.h5";
- final String FILE2 = "copy2.h5";
-
- final int RANK = 2;
- final int DIM1 = 3;
- final int DIM2 = 4;
- final int NUMP = 2;
-
- int file1, file2, dataset1, dataset2;
- int mid1, mid2, fid1, fid2;
- long[] fdim = new long[2];
- fdim[0] = DIM1;
- fdim[1] = DIM2;
- long[] mdim = new long[2];
- fdim[0] = DIM1;
- fdim[1] = DIM2;
-
- long[] start = new long[2];
- long[] stride = new long[2];
- long[] count = new long[2];
- long[] block = new long[2];
-
- int[][] buf1 = new int[DIM1][DIM2];
- int[][] buf2 = new int[DIM1][DIM2];
- int[][] bufnew = new int[DIM1][DIM2];
-
- int[] val = new int[2];
- val[0] = 53;
- val[1] = 59;
-
- long[] marray = {2};
- long[][] coord = new long[NUMP][RANK];
- int ret;
- int i, j;
-
-
-/***********************************************************************/
-/* */
-/* Create two files containing identical datasets. Write 0's to one */
-/* and 1's to the other. */
-/* */
-/***********************************************************************/
-
- for ( i = 0; i < DIM1; i++ )
- for ( j = 0; j < DIM2; j++ )
- buf1[i][j] = 0;
-
- for ( i = 0; i < DIM1; i++ )
- for ( j = 0; j < DIM2; j++ )
- buf2[i][j] = 1;
-
- file1 = H5Fcreate_wrap (FILE1, HDF5Constants.H5F_ACC_TRUNC,
- HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
- file2 = H5Fcreate_wrap (FILE2, HDF5Constants.H5F_ACC_TRUNC,
- HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
-
- fid1 = H5Screate_simple_wrap (RANK, fdim, null);
- fid2 = H5Screate_simple_wrap (RANK, fdim, null);
-
- dataset1 = H5Dcreate_wrap
- (file1, "Copy1", H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT), fid1,
- HDF5Constants.H5P_DEFAULT);
-
- dataset2 = H5Dcreate_wrap
- (file2, "Copy2", H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT), fid2,
- HDF5Constants.H5P_DEFAULT);
-
-
- ret = H5Dwrite_wrap (dataset1, H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, buf1);
-
- ret = H5Dwrite_wrap (dataset2, H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, buf2);
-
- ret = H5Dclose_wrap (dataset1);
- ret = H5Dclose_wrap (dataset2);
-
- ret = H5Sclose_wrap (fid1);
- ret = H5Sclose_wrap (fid2);
-
- ret = H5Fclose_wrap (file1);
- ret = H5Fclose_wrap (file2);
-
-
-/***********************************************************************/
-/* */
-/* Open the two files. Select two points in one file, write values to */
-/* those point locations, then do H5Scopy and write the values to the */
-/* other file. Close files. */
-/* */
-/***********************************************************************/
-
- file1 = H5Fopen_wrap (FILE1, HDF5Constants.H5F_ACC_RDWR,
- HDF5Constants.H5P_DEFAULT);
-
- file2 = H5Fopen_wrap (FILE2, HDF5Constants.H5F_ACC_RDWR,
- HDF5Constants.H5P_DEFAULT);
-
- dataset1 = H5Dopen_wrap (file1, "Copy1");
- dataset2 = H5Dopen_wrap (file2, "Copy2");
-
- fid1 = H5Dget_space_wrap (dataset1);
- mid1 = H5Screate_simple_wrap (1, marray, null);
-
- coord[0][0] = 0; coord[0][1] = 3;
- coord[1][0] = 0; coord[1][1] = 1;
-
- ret = H5Sselect_elements_wrap (fid1, HDF5Constants.H5S_SELECT_SET,
- NUMP, coord);
-
- ret = H5Dwrite_wrap (dataset1, H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- mid1, fid1, HDF5Constants.H5P_DEFAULT, val);
-
- fid2 = H5Scopy_wrap (fid1);
-
- ret = H5Dwrite_wrap (dataset2, H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- mid1, fid2, HDF5Constants.H5P_DEFAULT, val);
-
- ret = H5Dclose_wrap (dataset1);
- ret = H5Dclose_wrap (dataset2);
- ret = H5Sclose_wrap (fid1);
- ret = H5Sclose_wrap (fid2);
- ret = H5Fclose_wrap (file1);
- ret = H5Fclose_wrap (file2);
- ret = H5Sclose_wrap (mid1);
-
-
-/***********************************************************************/
-/* */
-/* Open both files and print the contents of the datasets. */
-/* */
-/***********************************************************************/
-
- file1 = H5Fopen_wrap (FILE1, HDF5Constants.H5F_ACC_RDWR,
- HDF5Constants.H5P_DEFAULT);
- file2 = H5Fopen_wrap (FILE2, HDF5Constants.H5F_ACC_RDWR,
- HDF5Constants.H5P_DEFAULT);
- dataset1 = H5Dopen_wrap (file1, "Copy1");
- dataset2 = H5Dopen_wrap (file2, "Copy2");
-
- ret = H5Dread_wrap (dataset1, H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, bufnew);
-
- System.out.println ("\nDataset 'Copy1' in file 'copy1.h5' contains: ");
-
- for (i = 0;i < DIM1; i++)
- {
- for (j = 0;j < DIM2; j++)
- System.out.print (bufnew[i][j]);
- System.out.println ();
- }
-
- System.out.println ("\nDataset 'Copy2' in file 'copy2.h5' contains: ");
-
- ret = H5Dread_wrap (dataset2, H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, bufnew);
-
- for (i = 0;i < DIM1; i++)
- {
- for (j = 0;j < DIM2; j++)
- System.out.print (bufnew[i][j]);
- System.out.println ();
- }
-
- ret = H5Dclose_wrap (dataset1);
- ret = H5Dclose_wrap (dataset2);
- ret = H5Fclose_wrap (file1);
- ret = H5Fclose_wrap (file2);
- }
-
-
- // Help function for creating a new file
- public static int H5Fcreate_wrap (String name, int flags,
- int create_id, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fcreate (name, flags, create_id, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Fcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Fcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for opening an existing file
- public static int H5Fopen_wrap (String name, int flags, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fopen (name, flags, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Fopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Fopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for opening an existing dataset
- public static int H5Dopen_wrap (int loc_id, String name)
- {
- int dataset_id = -1; // dataset identifier
-
- try
- {
- // Opening an existing dataset
- dataset_id = H5.H5Dopen (loc_id, name);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Dopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Dopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataset_id;
- }
-
-
- // Help function for creating a new simple dataspace and opening it
- // for access
- public static int H5Screate_simple_wrap (int rank, long dims[],
- long maxdims[])
- {
- int dataspace_id = -1; // dataspace identifier
-
- try
- {
- // Create the data space for the dataset.
- dataspace_id = H5.H5Screate_simple (rank, dims, maxdims);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Screate_simple_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Screate_simple_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataspace_id;
- }
-
-
- // Help function for getting an identifier for a copy of
- // the dataspace for a dataset
- public static int H5Dget_space_wrap (int dataset_id)
- {
- int dataspace_id = -1;
-
- try
- {
- // Returning an identifier for a copy of the dataspace for a dataset
- dataspace_id = H5.H5Dget_space (dataset_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Dget_space_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Dget_space_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataspace_id;
- }
-
-
- // Help function for selecting array elements to be included in
- // the selection for the space_id dataspace.
- public static int H5Sselect_elements_wrap (int space_id, int op,
- int num_elements,
- long coord2D[][])
- {
- int status = -1;
-
- try
- {
- status = H5.H5Sselect_elements (space_id, op, num_elements,
- coord2D);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Sselect_elements_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Sselect_elements_wrap() with other Exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for creating a new dataspace which is an exact
- // copy of the dataspace identified by space_id.
- public static int H5Scopy_wrap (int space_id)
- {
- int dataspace_id = -1;
-
- try
- {
- dataspace_id = H5.H5Scopy(space_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println ("Copy.H5Scopy_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println ("Copy.H5Scopy_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataspace_id;
- }
-
-
- // Help function for creating a dataset
- public static int H5Dcreate_wrap (int loc_id, String name, int type_id,
- int space_id, int create_plist_id)
- {
- int dataset_id = -1; // dataset identifier
-
- try
- {
- // Create the dataset
- dataset_id = H5.H5Dcreate (loc_id, name, type_id, space_id,
- create_plist_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Dcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Dcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataset_id;
- }
-
-
- // Help function for writing the dataset
- public static int H5Dwrite_wrap (int dataset_id, int mem_type_id,
- int mem_space_id, int file_space_id,
- int xfer_plist_id, Object buf)
- {
- int status = -1;
-
- try
- {
- // Write the dataset.
- status = H5.H5Dwrite (dataset_id, mem_type_id, mem_space_id,
- file_space_id, xfer_plist_id, buf);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Dwrite_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Dwrite_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for reading the dataset
- public static int H5Dread_wrap (int dataset_id, int mem_type_id,
- int mem_space_id, int file_space_id,
- int xfer_plist_id, Object obj)
- {
- int status = -1;
-
- try
- {
- // Read the dataset.
- status = H5.H5Dread (dataset_id, mem_type_id, mem_space_id,
- file_space_id, xfer_plist_id, obj);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Dread_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Dread_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the data space.
- public static int H5Sclose_wrap (int dataspace_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the data space.
- status = H5.H5Sclose (dataspace_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Sclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Sclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for ending access to the dataset and releasing
- // resources used by it.
- public static int H5Dclose_wrap (int dataset_id)
- {
- int status = -1;
-
- try
- {
- // End access to the dataset and release resources used by it.
- status = H5.H5Dclose (dataset_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Dclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Dclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("Copy.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("Copy.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-}
diff --git a/doc/html/Tutor/examples/java/CreateAttribute.java b/doc/html/Tutor/examples/java/CreateAttribute.java
deleted file mode 100644
index c926422..0000000
--- a/doc/html/Tutor/examples/java/CreateAttribute.java
+++ /dev/null
@@ -1,302 +0,0 @@
-/******************************************************************
- * CreateAttribute.java (for HDF5 tutorial lesson 7)
- *
- * -- Creating and Writing a dataset attribute
- * (a java conversion from h5_crtatt.c)
- *
- ******************************************************************/
-
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class CreateAttribute
-{
- public static void main(String []argv)
- {
- final String FILE = "dset.h5";
- int file_id = -1; // file identifier
- int dataset_id = -1; // dataset identifier
- int attribute_id = -1;
- int dataspace_id = -1; // dataspace identifier
- long[] dims = new long[1];
- int[] attr_data = new int[2];
- int status = -1;
-
- // Initialize the attribute data.
- attr_data[0] = 100;
- attr_data[1] = 200;
-
- // Open an existing file.
- file_id = H5Fopen_wrap (FILE, HDF5Constants.H5F_ACC_RDWR,
- HDF5Constants.H5P_DEFAULT);
-
- // Open an existing dataset.
- dataset_id = H5Dopen_wrap (file_id, "/dset");
-
- // Create the data space for the attribute.
- dims[0] = 2;
- dataspace_id = H5Screate_simple_wrap (1, dims, null);
-
- // Create a dataset attribute.
- attribute_id = H5Acreate_wrap
- (dataset_id, "attr",
- H5.J2C (HDF5CDataTypes.JH5T_STD_I32BE),
- dataspace_id, HDF5Constants.H5P_DEFAULT);
-
- // Write the attribute data.
- status = H5Awrite_wrap
- (attribute_id,
- H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- attr_data);
-
- // Close the attribute.
- status = H5Aclose_wrap (attribute_id);
-
- // Close the dataspace.
- status = H5Sclose_wrap (dataspace_id);
-
- // Close to the dataset.
- status = H5Dclose_wrap (dataset_id);
-
- // Close the file.
- status = H5Fclose_wrap (file_id);
- }
-
-
- // Help function for opening an existing file
- public static int H5Fopen_wrap (String name, int flags, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fopen (name, flags, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateAttribute.H5Fopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateAttribute.H5Fopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for opening an existing dataset
- public static int H5Dopen_wrap (int loc_id, String name)
- {
- int dataset_id = -1; // dataset identifier
-
- try
- {
- // Opening an existing dataset
- dataset_id = H5.H5Dopen (loc_id, name);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateAttribute.H5Dopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateAttribute.H5Dopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataset_id;
- }
-
-
- // Create the data space for the attribute.
- public static int H5Screate_simple_wrap (int rank, long dims[],
- long maxdims[])
- {
- int dataspace_id = -1; // dataspace identifier
-
- try
- {
- // Create the data space for the dataset.
- dataspace_id = H5.H5Screate_simple (rank, dims, maxdims);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateAttribute.H5Screate_simple_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
-
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateAttribute.H5Screate_simple_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataspace_id;
- }
-
-
- // Help function for creating a dataset attribute.
- public static int H5Acreate_wrap (int loc_id, String name, int type_id,
- int space_id, int create_plist)
- {
- int attribute_id = -1; // attribute identifier
-
- try
- {
- // Create the dataset
- attribute_id = H5.H5Acreate (loc_id, name, type_id, space_id,
- create_plist);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateAttribute.H5Acreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateAttribute.H5Acreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return attribute_id;
- }
-
-
- // Help function for writing the attribute data.
- public static int H5Awrite_wrap (int attr_id, int mem_type_id,
- Object buf)
- {
- int status = -1;
-
- try
- {
- // Write the attribute data.
- status = H5.H5Awrite (attr_id, mem_type_id, buf);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateAttribute.H5Awrite_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateAttribute.H5Awrite_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for closing the attribute
- public static int H5Aclose_wrap (int attribute_id)
- {
- int status = -1;
-
- try
- {
- // Close the dataset
- status = H5.H5Aclose (attribute_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateAttribute.H5Aclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateAttribute.H5Aclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for closing the dataset
- public static int H5Dclose_wrap (int dataset_id)
- {
- int status = -1;
-
- try
- {
- // Close the dataset
- status = H5.H5Dclose (dataset_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateAttribute.H5Dclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateAttribute.H5Dclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for closing the dataspace
- public static int H5Sclose_wrap (int dataspace_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the data space.
- status = H5.H5Sclose (dataspace_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateAttribute.H5Sclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateAttribute.H5Sclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateAttribute.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateAttribute.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-}
diff --git a/doc/html/Tutor/examples/java/CreateDataset.java b/doc/html/Tutor/examples/java/CreateDataset.java
deleted file mode 100644
index 05f3f6b..0000000
--- a/doc/html/Tutor/examples/java/CreateDataset.java
+++ /dev/null
@@ -1,210 +0,0 @@
-/******************************************************************
- * CreateDataset.java (for HDF5 tutorial lesson 5)
- *
- * -- Creating a HDF5 Dataset
- * (a java conversion from h5_crtdat.c)
- *
- ******************************************************************/
-
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class CreateDataset
-{
- public static void main(String []argv)
- {
- final String FILE = "dset.h5";
- int file_id = -1; // file identifier
- int dataset_id = -1; // dataset identifier
- int dataspace_id = -1; // dataspace identifier
- long[] dims = new long[2];
- int status = -1;
-
- // Create a new file using default properties.
- file_id = H5Fcreate_wrap (FILE, HDF5Constants.H5F_ACC_TRUNC,
- HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
-
- // Create the data space for the dataset.
- dims[0] = 4;
- dims[1] = 6;
- dataspace_id = H5Screate_simple_wrap (2, dims, null);
-
- // Create the dataset.
- dataset_id =
- H5Dcreate_wrap (file_id, "/dset",
- H5.J2C (HDF5CDataTypes.JH5T_STD_I32BE),
- dataspace_id, HDF5Constants.H5P_DEFAULT);
-
- // End access to the dataset and release resources used by it.
- status = H5Dclose_wrap (dataset_id);
-
- // Terminate access to the data space.
- status = H5Sclose_wrap (dataspace_id);
-
- // Close the file.
- status = H5Fclose_wrap (file_id);
- }
-
-
- // Help function for creating a new file
- public static int H5Fcreate_wrap (String name, int flags,
- int create_id, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fcreate (name, flags, create_id, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateDataset.H5Fcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateDataset.H5Fcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for creating a new simple dataspace and opening it
- // for access
- public static int H5Screate_simple_wrap (int rank, long dims[],
- long maxdims[])
- {
- int dataspace_id = -1; // dataspace identifier
-
- try
- {
- // Create the data space for the dataset.
- dataspace_id = H5.H5Screate_simple (rank, dims, maxdims);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateDataset.H5Screate_simple_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateDataset.H5Screate_simple_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataspace_id;
- }
-
-
- // Help function for creating a dataset
- public static int H5Dcreate_wrap (int loc_id, String name, int type_id,
- int space_id, int create_plist_id)
- {
- int dataset_id = -1; // dataset identifier
-
- try
- {
- // Create the dataset
- dataset_id = H5.H5Dcreate (loc_id, name, type_id, space_id,
- create_plist_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateDataset.H5Dcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateDataset.H5Dcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataset_id;
- }
-
-
- // Help function for ending access to the dataset and releasing
- // resources used by it.
- public static int H5Dclose_wrap (int dataset_id)
- {
- int status = -1;
-
- try
- {
- // End access to the dataset and release resources used by it.
- status = H5.H5Dclose (dataset_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateDataset.H5Dclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateDataset.H5Dclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the data space.
- public static int H5Sclose_wrap (int dataspace_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the data space.
- status = H5.H5Sclose (dataspace_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateDataset.H5Sclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateDataset.H5Sclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateDataset.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateDataset.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-}
-
diff --git a/doc/html/Tutor/examples/java/CreateFile.java b/doc/html/Tutor/examples/java/CreateFile.java
deleted file mode 100644
index 550b263..0000000
--- a/doc/html/Tutor/examples/java/CreateFile.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/******************************************************************
- * CreateFile.java (for HDF5 tutorial lesson 4)
- *
- * -- Creating a HDF5 file
- * (a java conversion from h5_crtfile.c)
- *
- ******************************************************************/
-
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class CreateFile
-{
- public static void main(String []argv)
- {
- final String FILE = "file.h5";
- int file_id = -1; // file identifier
- int status = -1;
-
- file_id = H5Fcreate_wrap (FILE, HDF5Constants.H5F_ACC_TRUNC,
- HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
- status = H5Fclose_wrap (file_id);
- }
-
-
- // Help function for creating a new file
- public static int H5Fcreate_wrap (String name, int flags,
- int create_id, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fcreate (name, flags, create_id, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateFile.H5Fcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateFile.H5Fcreate_wrap() with other Exception: "
- + e.getMessage());
- }
-
- System.out.println ("\nThe file name is: " + name);
- System.out.println ("The file ID is: " + file_id);
-
- return file_id;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateFile.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateFile.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-}
-
-
diff --git a/doc/html/Tutor/examples/java/CreateFileInput.java b/doc/html/Tutor/examples/java/CreateFileInput.java
deleted file mode 100644
index 0e7fd4d..0000000
--- a/doc/html/Tutor/examples/java/CreateFileInput.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/******************************************************************
- * CreateFileInput.java (for HDF5 tutorial Lesson 4)
- *
- * -- Creating a HDF5 file
- * (another java conversion from h5_crtfile.c, give user two options:
- * one for library path and one for file name, if user chooses
- * nothing, then the default file name is used.)
- *
- ******************************************************************/
-
-import java.lang.System;
-import java.util.*;
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class CreateFileInput
-{
- // The run command should be like:
- // "./runCreateFileInput -l /usr/lib/hdf5.dll -f ./open.h5"
- public static void main(String []argv)
- {
- int file_id = -1; // file identifier
- int status = -1;
- String libpath = null;
- String filename = null;
-
- for (int i = 0; i < argv.length; i++)
- {
- if ("-l".equalsIgnoreCase (argv[i]))
- libpath = argv[++i];
-
- if ("-f".equalsIgnoreCase (argv[i]))
- filename = argv[++i];
- }
-
- if (libpath != null)
- {
- Properties pros = System.getProperties ();
- pros.put (H5.H5PATH_PROPERTY_KEY, libpath);
-
- /*
- this function call could be used in Java 1.2
- System.setProperty (H5.H5PATH_PROPERTY_KEY, libpath);
- */
- }
-
- if (filename == null)
- {
- filename = "file.h5"; // if no input file name, use the default name
- }
-
- file_id = H5Fcreate_wrap (filename,
- HDF5Constants.H5F_ACC_TRUNC,
- HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
- status = H5Fclose_wrap (filename, file_id);
- }
-
-
- // Help function for creating a new file
- public static int H5Fcreate_wrap (String name, int flags,
- int create_id, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fcreate (name, flags, create_id, access_id);
-
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateFileInput.H5Fcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateFileInput.H5Fcreate_wrap() with other Exception: "
- + e.getMessage());
- }
-
- System.out.println ("\nThe file name is: " + name);
- System.out.println ("The file ID is: " + file_id);
-
- return file_id;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (String name, int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateFileInput.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateFileInput.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
-
- return status;
- }
-}
-
-
diff --git a/doc/html/Tutor/examples/java/CreateGroup.java b/doc/html/Tutor/examples/java/CreateGroup.java
deleted file mode 100644
index 48ef4af..0000000
--- a/doc/html/Tutor/examples/java/CreateGroup.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/******************************************************************
- * CreateGroup.java (for HDF5 tutorial lesson 8)
- *
- * -- Creating and closing a group
- * (a java conversion from h5_crtgrp.c)
- *
- ******************************************************************/
-
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class CreateGroup
-{
- public static void main(String []argv)
- {
- final String FILE = "group.h5";
- int file_id = -1; // file identifier
- int group_id = -1; // group identifier
- int status = -1;
-
- // Create a new file using default properties.
- file_id = H5Fcreate_wrap (FILE, HDF5Constants.H5F_ACC_TRUNC,
- HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
-
- // Create a group named "/MyGroup" in the file.
- group_id = H5Gcreate_wrap (file_id, "/MyGroup", 0);
-
- // Close the group.
- status = H5Gclose_wrap (group_id);
-
- // Close the file.
- status = H5Fclose_wrap (file_id);
- }
-
-
- // Help function for creating a new file
- public static int H5Fcreate_wrap (String name, int flags,
- int create_id, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fcreate (name, flags, create_id, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroup.H5Fcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroup.H5Fcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for creating a group named "/MyGroup" in the file.
- public static int H5Gcreate_wrap (int loc_id, String name, int size_hint)
- {
- int group_id = -1; // group identifier
- try
- {
- // Create a group
- group_id = H5.H5Gcreate (loc_id, name, size_hint);
-
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroup.H5Gcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroup.H5Gcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return group_id;
- }
-
-
- // Help function for closing the group
- public static int H5Gclose_wrap (int group_id)
- {
- int status = -1;
-
- try
- {
- // Close the group
- status = H5.H5Gclose (group_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroup.H5Gclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroup.H5Gclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroup.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroup.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-}
diff --git a/doc/html/Tutor/examples/java/CreateGroupAR.java b/doc/html/Tutor/examples/java/CreateGroupAR.java
deleted file mode 100644
index 672f1d1..0000000
--- a/doc/html/Tutor/examples/java/CreateGroupAR.java
+++ /dev/null
@@ -1,152 +0,0 @@
-/******************************************************************
- * CreateGroupAR.java (for HDF5 tutorial lesson 9)
- *
- * -- Creating groups using absolute and relative names.
- * (a java conversion from h5_crtgrpar.c)
- *
- ******************************************************************/
-
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class CreateGroupAR
-{
- public static void main(String []argv)
- {
- final String FILE = "groups.h5";
- int file_id = -1; // file identifier
- int group1_id = -1; // group identifier
- int group2_id = -1;
- int group3_id = -1;
-
- int status = -1;
-
- // Create a new file using default properties.
- file_id = H5Fcreate_wrap (FILE, HDF5Constants.H5F_ACC_TRUNC,
- HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
-
- // Create group "MyGroup" in the root group using absolute name.
- group1_id = H5Gcreate_wrap (file_id, "/MyGroup", 0);
-
-
- // Create group "Group_A" in group "MyGroup" using absolute name.
- group2_id = H5Gcreate_wrap (file_id, "/MyGroup/Group_A", 0);
-
- // Create group "Group_B" in group "MyGroup" using relative name.
- group3_id = H5Gcreate_wrap (group1_id, "Group_B", 0);
-
- // Close groups.
- status = H5Gclose_wrap (group1_id);
- status = H5Gclose_wrap (group2_id);
- status = H5Gclose_wrap (group3_id);
-
- // Close the file.
- status = H5Fclose_wrap (file_id);
- }
-
-
- // Help function for creating a new file
- public static int H5Fcreate_wrap (String name, int flags,
- int create_id, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fcreate (name, flags, create_id, access_id);
-
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupAR.H5Fcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupAR.H5Fcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for creating a group named "/MyGroup" in the file.
- public static int H5Gcreate_wrap (int loc_id, String name, int size_hint)
- {
- int group_id = -1; // group identifier
- try
- {
- // Create a group
- group_id = H5.H5Gcreate (loc_id, name, size_hint);
-
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupAR.H5Gcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupAR.H5Gcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return group_id;
- }
-
-
- // Help function for closing the group
- public static int H5Gclose_wrap (int group_id)
- {
- int status = -1;
-
- try
- {
- // Close the group
- status = H5.H5Gclose (group_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupAR.H5Gclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupAR.H5Gclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupAR.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupAR.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-}
diff --git a/doc/html/Tutor/examples/java/CreateGroupDataset.java b/doc/html/Tutor/examples/java/CreateGroupDataset.java
deleted file mode 100644
index f0fbeaa..0000000
--- a/doc/html/Tutor/examples/java/CreateGroupDataset.java
+++ /dev/null
@@ -1,340 +0,0 @@
-/******************************************************************
- * CreateGroupDataset.java (for HDF5 tutorial lesson 10)
- *
- * -- Creating a dataset in a particular group
- * (a java conversion from h5_crtgrpd.c)
- *
- ******************************************************************/
-
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class CreateGroupDataset
-{
- public static void main(String []argv)
- {
- final String FILE = "groups.h5";
- int file_id = -1; // file identifier
- int group_id = -1; // group identifier
- int dataset_id;
- int dataspace_id;
- int status = -1;
-
- long[] dims = new long[2];
- int[][] dset1_data = new int[3][3];
- int[][] dset2_data = new int[2][10];
- int i = -1, j = -1;
-
- // Initialize the first dataset.
- for (i = 0; i < 3; i++)
- for (j = 0; j < 3; j++)
- dset1_data[i][j] = j + 1;
-
- // Initialize the second dataset.
- for (i = 0; i < 2; i++)
- for (j = 0; j < 10; j++)
- dset2_data[i][j] = j + 1;
-
- // Open an existing file.
- file_id = H5Fopen_wrap (FILE, HDF5Constants.H5F_ACC_RDWR,
- HDF5Constants.H5P_DEFAULT);
-
- // Create the data space for the first dataset.
- dims[0] = 3;
- dims[1] = 3;
- dataspace_id = H5Screate_simple_wrap (2, dims, null);
-
- // Create a dataset in group "MyGroup".
- dataset_id =
- H5Dcreate_wrap (file_id, "/MyGroup/dset1",
- H5.J2C (HDF5CDataTypes.JH5T_STD_I32BE),
- dataspace_id, HDF5Constants.H5P_DEFAULT);
-
- // Write the first dataset.
- status = H5Dwrite_wrap
- (dataset_id,
- H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, dset1_data);
-
- // Close the data space for the first dataset.
- status = H5Sclose_wrap (dataspace_id);
-
- // Close the first dataset.
- status = H5Dclose_wrap (dataset_id);
-
- // Open an existing group of the specified file.
- group_id = H5Gopen_wrap (file_id, "/MyGroup/Group_A");
-
- // Create the data space for the second dataset.
- dims[0] = 2;
- dims[1] = 10;
- dataspace_id = H5Screate_simple_wrap (2, dims, null);
-
- // Create the second dataset in group "Group_A".
- dataset_id =
- H5Dcreate_wrap (group_id, "dset2",
- H5.J2C (HDF5CDataTypes.JH5T_STD_I32BE),
- dataspace_id, HDF5Constants.H5P_DEFAULT);
-
- // Write the second dataset.
- status = H5Dwrite_wrap
- (dataset_id,
- H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, dset2_data);
-
- // Close the data space for the second dataset.
- status = H5Sclose_wrap (dataspace_id);
-
- // Close the second dataset
- status = H5Dclose_wrap (dataset_id);
-
- // Close the group.
- status = H5Gclose_wrap (group_id);
-
- // Close the file.
- status = H5Fclose_wrap (file_id);
- }
-
-
- // Help function for opening an existing file
- public static int H5Fopen_wrap (String name, int flags, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fopen (name, flags, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupDataset.H5Fopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupDataset.H5Fopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for creating a new simple dataspace and opening it
- // for access
- public static int H5Screate_simple_wrap (int rank, long dims[],
- long maxdims[])
- {
- int dataspace_id = -1; // dataspace identifier
-
- try
- {
- // Create the data space for the dataset.
- dataspace_id = H5.H5Screate_simple (rank, dims, maxdims);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupDataset.H5Screate_simple_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupDataset.H5Screate_simple_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataspace_id;
- }
-
-
- // Help function for creating a dataset
- public static int H5Dcreate_wrap (int loc_id, String name, int type_id,
- int space_id, int create_plist_id)
- {
- int dataset_id = -1; // dataset identifier
-
- try
- {
- // Create the dataset
- dataset_id = H5.H5Dcreate (loc_id, name, type_id, space_id,
- create_plist_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupDataset.H5Dcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupDataset.H5Dcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataset_id;
- }
-
-
- // Help function for writing the dataset
- public static int H5Dwrite_wrap (int dataset_id, int mem_type_id,
- int mem_space_id, int file_space_id,
- int xfer_plist_id, Object buf)
- {
- int status = -1;
-
- try
- {
- // Write the dataset.
- status = H5.H5Dwrite (dataset_id, mem_type_id, mem_space_id,
- file_space_id, xfer_plist_id, buf);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupDataset.H5Dwrite_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupDataset.H5Dwrite_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the data space.
- public static int H5Sclose_wrap (int dataspace_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the data space.
- status = H5.H5Sclose (dataspace_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupDataset.H5Sclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupDataset.H5Sclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for ending access to the dataset and releasing
- // resources used by it.
- public static int H5Dclose_wrap (int dataset_id)
- {
- int status = -1;
-
- try
- {
- // End access to the dataset and release resources used by it.
- status = H5.H5Dclose (dataset_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupDataset.H5Dclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupDataset.H5Dclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for opening a group
- public static int H5Gopen_wrap (int loc_id, String name)
- {
- int group_id = -1; // group identifier
- try
- {
- // Create a group
- group_id = H5.H5Gopen (loc_id, name);
-
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupDataset.H5Gopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupDataset.H5Gopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return group_id;
- }
-
-
- // Help function for closing the group
- public static int H5Gclose_wrap (int group_id)
- {
- int status = -1;
-
- try
- {
- // Close the group
- status = H5.H5Gclose (group_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupDataset.H5Gclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupDataset.H5Gclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("CreateGroupDataset.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("CreateGroupDataset.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-}
diff --git a/doc/html/Tutor/examples/java/DatasetRdWt.java b/doc/html/Tutor/examples/java/DatasetRdWt.java
deleted file mode 100644
index 4c26d0f..0000000
--- a/doc/html/Tutor/examples/java/DatasetRdWt.java
+++ /dev/null
@@ -1,213 +0,0 @@
-/******************************************************************
- * DatasetRdWt.java (for HDF5 tutorial lesson 6)
- *
- * -- Reading and Writing an existing Dataset
- * (a java conversion from h5_rdwt.c)
- *
- ******************************************************************/
-
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class DatasetRdWt
-{
- public static void main(String []argv)
- {
- final String FILE = "dset.h5";
- int file_id = -1; // file identifier
- int dataset_id = -1; // dataset identifier
- int status = -1;
- int[][] dset_data = new int[4][6];
-
- // Initialize the dataset.
- for (int i = 0; i < 4; i++)
- for (int j = 0; j < 6; j++)
- dset_data[i][j] = i * 6 + j + 1;
-
- // Open an existing file
- file_id = H5Fopen_wrap (FILE, HDF5Constants.H5F_ACC_RDWR,
- HDF5Constants.H5P_DEFAULT);
-
- // Open an existing dataset.
- dataset_id = H5Dopen_wrap (file_id, "/dset");
-
- // Write the dataset.
- status = H5Dwrite_wrap
- (dataset_id, H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, dset_data);
-
- status = H5Dread_wrap
- (dataset_id, H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, dset_data);
-
- // Close the dataset.
- status = H5Dclose_wrap (dataset_id);
-
- // Close the file.
- status = H5Fclose_wrap (file_id);
- }
-
-
- // Help function for opening an existing file
- public static int H5Fopen_wrap (String name, int flags, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fopen (name, flags, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("DatasetRdWt.H5Fopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("DatasetRdWt.H5Fopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for opening an existing dataset
- public static int H5Dopen_wrap (int loc_id, String name)
- {
- int dataset_id = -1; // dataset identifier
-
- try
- {
- // Opening an existing dataset
- dataset_id = H5.H5Dopen (loc_id, name);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("DatasetRdWt.H5Dopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("DatasetRdWt.H5Dopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataset_id;
- }
-
-
- // Help function for writing the dataset
- public static int H5Dwrite_wrap (int dataset_id, int mem_type_id,
- int mem_space_id, int file_space_id,
- int xfer_plist_id, Object buf)
- {
- int status = -1;
-
- try
- {
- // Write the dataset.
- status = H5.H5Dwrite (dataset_id, mem_type_id, mem_space_id,
- file_space_id, xfer_plist_id, buf);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("DatasetRdWt.H5Dwrite_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("DatasetRdWt.H5Dwrite_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for reading the dataset
- public static int H5Dread_wrap (int dataset_id, int mem_type_id,
- int mem_space_id, int file_space_id,
- int xfer_plist_id, Object obj)
- {
- int status = -1;
-
- try
- {
- // Read the dataset.
- status = H5.H5Dread (dataset_id, mem_type_id, mem_space_id,
- file_space_id, xfer_plist_id, obj);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("DatasetRdWt.H5Dread_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("DatasetRdWt.H5Dread_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for ending access to the dataset and releasing
- // resources used by it.
- public static int H5Dclose_wrap (int dataset_id)
- {
- int status = -1;
-
- try
- {
- // End access to the dataset and release resources used by it.
- status = H5.H5Dclose (dataset_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("DatasetRdWt.H5Dclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("DatasetRdWt.H5Dclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("DatasetRdWt.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("DatasetRdWt.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-}
diff --git a/doc/html/Tutor/examples/java/Dependencies b/doc/html/Tutor/examples/java/Dependencies
deleted file mode 100644
index e69de29..0000000
--- a/doc/html/Tutor/examples/java/Dependencies
+++ /dev/null
diff --git a/doc/html/Tutor/examples/java/HyperSlab.java b/doc/html/Tutor/examples/java/HyperSlab.java
deleted file mode 100644
index 5f8818d..0000000
--- a/doc/html/Tutor/examples/java/HyperSlab.java
+++ /dev/null
@@ -1,590 +0,0 @@
-/******************************************************************
- * HyperSlab.java (for HDF5 tutorial lesson 12)
- *
- * -- Writing and reading a hyperslab
- * (a java conversion from h5_hyperslab.c)
- *
- ******************************************************************/
-
-import ncsa.hdf.hdf5lib.*;
-import ncsa.hdf.hdf5lib.exceptions.*;
-
-public class HyperSlab
-{
- public static void main (String []argv)
- {
- final String FILE = "sds.h5";
- final String DATASETNAME = "IntArray";
- final int NX_SUB = 3; /* hyperslab dimensions */
- final int NY_SUB = 4;
- final int NX = 7; /* output buffer dimensions */
- final int NY = 7;
- final int NZ = 3;
- final int RANK = 2;
- final int RANK_OUT = 3;
- final int X = 5; /* dataset dimensions */
- final int Y = 6;
-
- long[] dimsf = new long[2]; /* dataset dimensions */
- int[][] data = new int[X][Y]; /* data to write */
-
- /*
- * Data and output buffer initialization.
- */
- int file, dataset; /* handles */
- int dataspace;
- int memspace;
- long[] dimsm = new long[3]; /* memory space dimensions */
- long[] dims_out = new long[2]; /* dataset dimensions */
- int status;
-
- int[][][] data_out = new int[NX][NY][NZ]; /* output buffer */
-
- long[] count = new long[2]; /* size of the hyperslab in the file */
- long[] offset = new long[2]; /* hyperslab offset in the file */
- long[] count_out = new long[3]; /* size of the hyperslab in memory */
- long[] offset_out = new long[3]; /* hyperslab offset in memory */
- int i, j, k, status_n, rank;
-
- /*********************************************************
- This writes data to the HDF5 file.
- *********************************************************/
-
- /*
- * Data and output buffer initialization.
- */
- for (j = 0; j < X; j++)
- {
- for (i = 0; i < Y; i++)
- data[j][i] = i + j;
- }
- /*
- * 0 1 2 3 4 5
- * 1 2 3 4 5 6
- * 2 3 4 5 6 7
- * 3 4 5 6 7 8
- * 4 5 6 7 8 9
- */
-
- /*
- * Create a new file using H5F_ACC_TRUNC access,
- * the default file creation properties, and the default file
- * access properties.
- */
- file = H5Fcreate_wrap (FILE, HDF5Constants.H5F_ACC_TRUNC,
- HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
-
- /*
- * Describe the size of the array and create the data space for fixed
- * size dataset.
- */
- dimsf[0] = X;
- dimsf[1] = Y;
- dataspace = H5Screate_simple_wrap (RANK, dimsf, null);
-
- /*
- * Create a new dataset within the file using defined dataspace and
- * default dataset creation properties.
- */
- dataset = H5Dcreate_wrap
- (file, DATASETNAME, H5.J2C (HDF5CDataTypes.JH5T_STD_I32BE),
- dataspace, HDF5Constants.H5P_DEFAULT);
-
- /*
- * Write the data to the dataset using default transfer properties.
- */
- status = H5Dwrite_wrap
- (dataset, H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
- HDF5Constants.H5P_DEFAULT, data);
-
- /*
- * Close/release resources.
- */
- H5Sclose_wrap (dataspace);
- H5Dclose_wrap (dataset);
- H5Fclose_wrap (file);
-
- /*************************************************************
-
- This reads the hyperslab from the sds.h5 file just
- created, into a 2-dimensional plane of the 3-dimensional
- array.
-
- ************************************************************/
-
- for (j = 0; j < NX; j++)
- {
- for (i = 0; i < NY; i++)
- {
- for (k = 0; k < NZ ; k++)
- data_out[j][i][k] = 0;
- }
- }
-
- /*
- * Open the file and the dataset.
- */
- file = H5Fopen_wrap (FILE, HDF5Constants.H5F_ACC_RDONLY,
- HDF5Constants.H5P_DEFAULT);
- dataset = H5Dopen_wrap (file, DATASETNAME);
-
- dataspace = H5Dget_space_wrap (dataset); /* dataspace handle */
- rank = H5Sget_simple_extent_ndims_wrap (dataspace);
- status_n = H5Sget_simple_extent_dims_wrap (dataspace, dims_out, null);
-
- System.out.println ("Rank: " + rank);
- System.out.println ("Dimensions: "+ dims_out[0] + " x " + dims_out[1]);
-
- /*
- * Define hyperslab in the dataset.
- */
- offset[0] = 1;
- offset[1] = 2;
- count[0] = NX_SUB;
- count[1] = NY_SUB;
- status = H5Sselect_hyperslab_wrap (dataspace,
- HDF5Constants.H5S_SELECT_SET,
- offset, null, count, null);
-
- /*
- * Define the memory dataspace.
- */
- dimsm[0] = NX;
- dimsm[1] = NY;
- dimsm[2] = NZ;
- memspace = H5Screate_simple_wrap (RANK_OUT, dimsm, null);
-
- /*
- * Define memory hyperslab.
- */
- offset_out[0] = 3;
- offset_out[1] = 0;
- offset_out[2] = 0;
- count_out[0] = NX_SUB;
- count_out[1] = NY_SUB;
- count_out[2] = 1;
- status = H5Sselect_hyperslab_wrap (memspace,
- HDF5Constants.H5S_SELECT_SET,
- offset_out, null, count_out, null);
-
- /*
- * Read data from hyperslab in the file into the hyperslab in
- * memory and display.
- */
- status =
- H5Dread_wrap (dataset, H5.J2C (HDF5CDataTypes.JH5T_NATIVE_INT),
- memspace, dataspace, HDF5Constants.H5P_DEFAULT,
- data_out);
-
- System.out.println ("Data:");
- for (j = 0; j < NX; j++)
- {
- for (i = 0; i < NY; i++)
- System.out.print (data_out[j][i][0]);
- System.out.println ();
- }
- System.out.println ();
-
- /*
- * 0 0 0 0 0 0 0
- * 0 0 0 0 0 0 0
- * 0 0 0 0 0 0 0
- * 3 4 5 6 0 0 0
- * 4 5 6 7 0 0 0
- * 5 6 7 8 0 0 0
- * 0 0 0 0 0 0 0
- */
-
- /*
- * Close and release resources.
- */
- H5Dclose_wrap (dataset);
- H5Sclose_wrap (dataspace);
- H5Sclose_wrap (memspace);
- H5Fclose_wrap (file);
- }
-
-
- // Help function for creating a new file
- public static int H5Fcreate_wrap (String name, int flags,
- int create_id, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fcreate (name, flags, create_id, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Fcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Fcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for opening an existing file
- public static int H5Fopen_wrap (String name, int flags, int access_id)
- {
- int file_id = -1; // file identifier
- try
- {
- // Create a new file using default file properties.
- file_id = H5.H5Fopen (name, flags, access_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Fopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Fopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return file_id;
- }
-
-
- // Help function for opening an existing dataset
- public static int H5Dopen_wrap (int loc_id, String name)
- {
- int dataset_id = -1; // dataset identifier
-
- try
- {
- // Opening an existing dataset
- dataset_id = H5.H5Dopen (loc_id, name);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Dopen_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Dopen_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataset_id;
- }
-
-
- // Help function for creating a new simple dataspace and opening it
- // for access
- public static int H5Screate_simple_wrap (int rank, long dims[],
- long maxdims[])
- {
- int dataspace_id = -1; // dataspace identifier
-
- try
- {
- // Create the data space for the dataset.
- dataspace_id = H5.H5Screate_simple (rank, dims, maxdims);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Screate_simple_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Screate_simple_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataspace_id;
- }
-
-
- // Help function for getting an identifier for a copy of
- // the dataspace for a dataset
- public static int H5Dget_space_wrap (int dataset_id)
- {
- int dataspace_id = -1;
-
- try
- {
- // Returning an identifier for a copy of the dataspace for a dataset
- dataspace_id = H5.H5Dget_space (dataset_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Dget_space_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Dget_space_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataspace_id;
- }
-
-
- // Help function for determining the dimensionality (or rank) of
- // a dataspace
- public static int H5Sget_simple_extent_ndims_wrap (int space_id)
- {
- int rank = -1;
-
- try
- {
- // Determine the dimensionality (or rank) of a dataspace.
- rank = H5.H5Sget_simple_extent_ndims (space_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Sget_simple_extent_ndims_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Sget_simple_extent_ndims_wrap() with other Exception: "
- + e.getMessage());
- }
- return rank;
- }
-
-
- // Help function for returning the size and maximum sizes of each
- // dimension of a dataspace through the dims and maxdims parameters.
- public static int H5Sget_simple_extent_dims_wrap (int space_id,
- long dims[],
- long maxdims[])
- {
- int dimension_number = -1;
-
- try
- {
- dimension_number = H5.H5Sget_simple_extent_dims (space_id, dims,
- maxdims);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Sget_simple_extent_dims_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Sget_simple_extent_dims_wrap() with other Exception: "
- + e.getMessage());
- }
- return dimension_number;
- }
-
-
- // Help function for selecting a hyperslab region to add to the
- // current selected region for the dataspace specified by space_id.
- public static int H5Sselect_hyperslab_wrap (int space_id, int op,
- long start[], long stride[],
- long count[], long block[])
- {
- int status = -1;
-
- try
- {
- status = H5.H5Sselect_hyperslab (space_id, op, start, stride,
- count, block);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Sselect_hyperslab_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Sselect_hyperslab_wrap() with other Exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for creating a dataset
- public static int H5Dcreate_wrap (int loc_id, String name, int type_id,
- int space_id, int create_plist_id)
- {
- int dataset_id = -1; // dataset identifier
-
- try
- {
- // Create the dataset
- dataset_id = H5.H5Dcreate (loc_id, name, type_id, space_id,
- create_plist_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Dcreate_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Dcreate_wrap() with other Exception: "
- + e.getMessage());
- }
- return dataset_id;
- }
-
-
- // Help function for writing the dataset
- public static int H5Dwrite_wrap (int dataset_id, int mem_type_id,
- int mem_space_id, int file_space_id,
- int xfer_plist_id, Object buf)
- {
- int status = -1;
-
- try
- {
- // Write the dataset.
- status = H5.H5Dwrite (dataset_id, mem_type_id, mem_space_id,
- file_space_id, xfer_plist_id, buf);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Dwrite_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Dwrite_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for reading the dataset
- public static int H5Dread_wrap (int dataset_id, int mem_type_id,
- int mem_space_id, int file_space_id,
- int xfer_plist_id, Object obj)
- {
- int status = -1;
-
- try
- {
- // Read the dataset.
- status = H5.H5Dread (dataset_id, mem_type_id, mem_space_id,
- file_space_id, xfer_plist_id, obj);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Dread_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Dread_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the data space.
- public static int H5Sclose_wrap (int dataspace_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the data space.
- status = H5.H5Sclose (dataspace_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Sclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Sclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for ending access to the dataset and releasing
- // resources used by it.
- public static int H5Dclose_wrap (int dataset_id)
- {
- int status = -1;
-
- try
- {
- // End access to the dataset and release resources used by it.
- status = H5.H5Dclose (dataset_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Dclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Dclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-
-
- // Help function for terminating access to the file.
- public static int H5Fclose_wrap (int file_id)
- {
- int status = -1;
-
- try
- {
- // Terminate access to the file.
- status = H5.H5Fclose (file_id);
- }
- catch (HDF5Exception hdf5e)
- {
- System.out.println
- ("HyperSlab.H5Fclose_wrap() with HDF5Exception: "
- + hdf5e.getMessage());
- }
- catch (Exception e)
- {
- System.out.println
- ("HyperSlab.H5Fclose_wrap() with other exception: "
- + e.getMessage());
- }
- return status;
- }
-}
diff --git a/doc/html/Tutor/examples/java/Makefile b/doc/html/Tutor/examples/java/Makefile
deleted file mode 100644
index a70ab0b..0000000
--- a/doc/html/Tutor/examples/java/Makefile
+++ /dev/null
@@ -1,92 +0,0 @@
-# Generated automatically from Makefile.in by configure.
-# /*=======================================================================
-# UNIVERSITY OF ILLINOIS (UI), NATIONAL CENTER FOR SUPERCOMPUTING
-# APPLICATIONS (NCSA), Software Distribution Policy for Public Domain
-# Software
-#
-# NCSA HDF Version 5 source code and documentation are in the public
-# domain, available without fee for education, research, non-commercial and
-# commercial purposes. Users may distribute the binary or source code to
-# third parties provided that this statement appears on all copies and that
-# no charge is made for such copies.
-#
-# UI MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE SOFTWARE FOR ANY
-# PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. THE
-# UI SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY THE USER OF THIS
-# SOFTWARE. The software may have been developed under agreements between
-# the UI and the Federal Government which entitle the Government to certain
-# rights.
-#
-# We ask, but do not require that the following message be include in all
-# derived works:
-#
-# Portions developed at the National Center for Supercomputing Applications
-# at the University of Illinois at Urbana-Champaign.
-#
-# By copying this program, you, the user, agree to abide by the conditions
-# and understandings with respect to any software which is marked with a
-# public domain notice.
-#
-# =======================================================================*/
-#
-
-
-JAVAC = /usr/java1.2/bin/javac
-FIND = /bin/find
-
-CLASSPATH=/usr/java1.2/jre/lib/rt.jar:/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-
-
-.SUFFIXES: .java .class
-
-.java.class:
- $(JAVAC) -classpath $(CLASSPATH) $<
-
-tutorial: ./Compound.class \
- ./Copy.class \
- ./CreateAttribute.class \
- ./CreateDataset.class \
- ./CreateFile.class \
- ./CreateFileInput.class \
- ./CreateGroup.class \
- ./CreateGroupAR.class \
- ./CreateGroupDataset.class \
- ./DatasetRdWt.class \
- ./HyperSlab.class
- chmod u+x *.sh
-
-clean: clean-classes
-
-distclean: clean-classes clean-data
- rm config.cache config.status config.log
- rm -rf ./Makefile
-
-clean-classes:
- $(FIND) . \( -name '#*' -o -name '*~' -o -name '*.class' \) -exec rm -f {} \; ;\
-
-clean-data:
- rm -rf *.h5
-
-Compound: ./Compound.class
-Copy: ./Copy.class
-CreateAttribute: ./CreateAttribute.class
-CreateDataset: ./CreateDataset.class
-CreateFile: ./CreateFile.class
-CreateFileInput: ./CreateFileInput.class
-CreateGroup: ./CreateGroup.class
-CreateGroupAR: ./CreateGroupAR.class
-CreateGroupDataset: ./CreateGroupDataset.class
-DatasetRdWt: ./DatasetRdWt.class
-HyperSlab: ./HyperSlab.class
-
-CLASSES= ./Compound.class \
- ./Copy.class \
- ./CreateAttribute.class \
- ./CreateDataset.class \
- ./CreateFileInput.class \
- ./CreateFile.class \
- ./CreateGroup.class \
- ./CreateGroupAR.class \
- ./CreateGroupDataset.class \
- ./DatasetRdWt.class \
- ./HyperSlab.class
diff --git a/doc/html/Tutor/examples/java/Makefile.in b/doc/html/Tutor/examples/java/Makefile.in
deleted file mode 100644
index e6bd408..0000000
--- a/doc/html/Tutor/examples/java/Makefile.in
+++ /dev/null
@@ -1,91 +0,0 @@
-# /*=======================================================================
-# UNIVERSITY OF ILLINOIS (UI), NATIONAL CENTER FOR SUPERCOMPUTING
-# APPLICATIONS (NCSA), Software Distribution Policy for Public Domain
-# Software
-#
-# NCSA HDF Version 5 source code and documentation are in the public
-# domain, available without fee for education, research, non-commercial and
-# commercial purposes. Users may distribute the binary or source code to
-# third parties provided that this statement appears on all copies and that
-# no charge is made for such copies.
-#
-# UI MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE SOFTWARE FOR ANY
-# PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. THE
-# UI SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY THE USER OF THIS
-# SOFTWARE. The software may have been developed under agreements between
-# the UI and the Federal Government which entitle the Government to certain
-# rights.
-#
-# We ask, but do not require that the following message be include in all
-# derived works:
-#
-# Portions developed at the National Center for Supercomputing Applications
-# at the University of Illinois at Urbana-Champaign.
-#
-# By copying this program, you, the user, agree to abide by the conditions
-# and understandings with respect to any software which is marked with a
-# public domain notice.
-#
-# =======================================================================*/
-#
-
-
-JAVAC = @JAVAC@
-FIND = @FIND@
-
-CLASSPATH=@CLASSPATH@
-
-
-.SUFFIXES: .java .class
-
-.java.class:
- $(JAVAC) -classpath $(CLASSPATH) $<
-
-tutorial: ./Compound.class \
- ./Copy.class \
- ./CreateAttribute.class \
- ./CreateDataset.class \
- ./CreateFile.class \
- ./CreateFileInput.class \
- ./CreateGroup.class \
- ./CreateGroupAR.class \
- ./CreateGroupDataset.class \
- ./DatasetRdWt.class \
- ./HyperSlab.class
- chmod u+x *.sh
-
-clean: clean-classes
-
-distclean: clean-classes clean-data
- rm config.cache config.status config.log
- rm -rf ./Makefile
-
-clean-classes:
- $(FIND) . \( -name '#*' -o -name '*~' -o -name '*.class' \) -exec rm -f {} \; ;\
-
-clean-data:
- rm -rf *.h5
-
-Compound: ./Compound.class
-Copy: ./Copy.class
-CreateAttribute: ./CreateAttribute.class
-CreateDataset: ./CreateDataset.class
-CreateFile: ./CreateFile.class
-CreateFileInput: ./CreateFileInput.class
-CreateGroup: ./CreateGroup.class
-CreateGroupAR: ./CreateGroupAR.class
-CreateGroupDataset: ./CreateGroupDataset.class
-DatasetRdWt: ./DatasetRdWt.class
-HyperSlab: ./HyperSlab.class
-
-CLASSES= ./Compound.class \
- ./Copy.class \
- ./CreateAttribute.class \
- ./CreateDataset.class \
- ./CreateFileInput.class \
- ./CreateFile.class \
- ./CreateGroup.class \
- ./CreateGroupAR.class \
- ./CreateGroupDataset.class \
- ./DatasetRdWt.class \
- ./HyperSlab.class
diff --git a/doc/html/Tutor/examples/java/README b/doc/html/Tutor/examples/java/README
deleted file mode 100644
index 95c9360..0000000
--- a/doc/html/Tutor/examples/java/README
+++ /dev/null
@@ -1,21 +0,0 @@
-These files are Java versions of the example programs used in
-the HDF-5 tutoral:
- http://hdf.ncsa.uiuc.edu/training/hdf5/
-
-The examples here correspond to the examples explained in the first 13
-sections of the tutorial.
-
-Lesson C program Java program Topic
-
-4 h5_crtfile.c CreateFile.java Create an HDF-5 file.
-5 h5_crtdat.c CreateDataset.java Create a dataset.
-6 h5_rdwt.c DatasetRdWt.java Write/Read a dataset.
-7 h5_crtatt.c CreateAttribute.java Create an attribute.
-8 h5_crtgrp.c CreateGroup.java Create a group.
-9 h5_crtgrpar.c CreateGroupAR.java Abs. and Rel. paths.
-10 h5_crtgrpd.c CreateGroupDataset.java Create dataset in grp.
-
-11 h5_compound.c Compound.java Compound datatype
-12 h5_hyperslab.c Hyperslab.java Selection of hyperslab
-13 h5_copy.c Copy.java Selection of elements
-
diff --git a/doc/html/Tutor/examples/java/readme.html b/doc/html/Tutor/examples/java/readme.html
deleted file mode 100644
index ac96004..0000000
--- a/doc/html/Tutor/examples/java/readme.html
+++ /dev/null
@@ -1,192 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta name="GENERATOR" content="Mozilla/4.61 [en] (WinNT; I) [Netscape]">
- <title>readme</title>
-</head>
-<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000">
-
-<h3>
-<b>HDF 5 Tutorial Examples in Java</b></h3>
-
-<p><br>These files are Java versions of the example programs used in the
-HDF-5 tutoral:
-<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://hdf.ncsa.uiuc.edu/training/hdf5/">http://hdf.ncsa.uiuc.edu/training/hdf5/</a>
-<p>The examples here correspond to the examples explained in the first
-13 sections of the tutorial.
-<br>&nbsp;
-<br>&nbsp;
-<table BORDER CELLPADDING=2 WIDTH="100%" >
-<tr>
-<td>
-<center><b>Lesson</b></center>
-</td>
-
-<td>
-<center><b>Topic</b></center>
-</td>
-
-<td>
-<center><b>C file</b></center>
-</td>
-
-<td>
-<center><b>Java file</b></center>
-</td>
-</tr>
-
-<tr>
-<td><a href="http://hdf.ncsa.uiuc.edu/training/hdf5/crtfile.html">Lesson
-4</a></td>
-
-<td>Create an HDF-5 file.</td>
-
-<td>h5_crtfile.c</td>
-
-<td>CreateFile.java</td>
-</tr>
-
-<tr>
-<td><a href="http://hdf.ncsa.uiuc.edu/training/hdf5/crtdat.html">Lesson
-5</a></td>
-
-<td>Create a Dataset in an HDF-5 file</td>
-
-<td>h5_crtdat.c</td>
-
-<td>CreateDataset.java</td>
-</tr>
-
-<tr>
-<td><a href="http://hdf.ncsa.uiuc.edu/training/hdf5/rdwt.html">Lesson 6</a></td>
-
-<td>Write and Read data in a dataset</td>
-
-<td>h5_rdwt.c</td>
-
-<td>DatasetRdWt.java</td>
-</tr>
-
-<tr>
-<td><a href="http://hdf.ncsa.uiuc.edu/training/hdf5/crtatt.html">Lesson
-7</a></td>
-
-<td>Create an attribute.</td>
-
-<td>h5_crtatt.c</td>
-
-<td>CreateAttribute.java</td>
-</tr>
-
-<tr>
-<td><a href="http://hdf.ncsa.uiuc.edu/training/hdf5/crtgrp.html">Lesson
-8</a></td>
-
-<td>Create a group.</td>
-
-<td>h5_crtgrp.c</td>
-
-<td>CreateGroup.java</td>
-</tr>
-
-<tr>
-<td><a href="http://hdf.ncsa.uiuc.edu/training/hdf5/crtgrpar.html">Lesson
-9</a></td>
-
-<td>Using Absolute and relative paths</td>
-
-<td>h5_crtgrpar.c</td>
-
-<td>CreateGroupAR.java</td>
-</tr>
-
-<tr>
-<td><a href="http://hdf.ncsa.uiuc.edu/training/hdf5/crtgrpd.html">Lesson
-10</a></td>
-
-<td>Create a dataset in a group.</td>
-
-<td>h5_crtgrpd.c</td>
-
-<td>CreateGroupDataset.java</td>
-</tr>
-
-<tr>
-<td><a href="http://hdf.ncsa.uiuc.edu/training/hdf5/compound.html">Lesson
-11</a></td>
-
-<td>Using Compound Datatypes</td>
-
-<td>h5_compound.c</td>
-
-<td>Compound.java</td>
-</tr>
-
-<tr>
-<td><a href="http://hdf.ncsa.uiuc.edu/training/hdf5/select.html">Lesson
-12</a></td>
-
-<td>Selection of a hyperslab.</td>
-
-<td>h5_hyperslab.c</td>
-
-<td>Hyperslab.java</td>
-</tr>
-
-<tr>
-<td><a href="http://hdf.ncsa.uiuc.edu/training/hdf5/selectc.html">Lesson
-13</a></td>
-
-<td>Selection of elements.</td>
-
-<td>h5_copy.c</td>
-
-<td>Copy.java</td>
-</tr>
-</table>
-
-<p>
-<hr><b>Some Explanation About Tutorial Examples</b>
-<p>The Java tutorial programs try to stay close to the corresponding C
-program. The main function's structure almost same as C program, with one
-call for each HDF5 library function. For example, where the C program has
-a call to <b>H5Fopen()</b>, the Java program has a call to <b>H5Fopen_wrap()</b>.
-<p>The wrapper functions call the HDF-5 library using the Java HDF-5 Interface
-(JHI5). The HDF-5 C interface returns error codes; these are represented
-by Java Exceptions in the JHI5. The wrapper function catches the exception
-and prints a message.
-<p>For example, the <b>H5Fopen_wrap() </b>method calls the JHI5, and catches
-any exceptions which may occur:
-<pre>&nbsp;&nbsp; <b>public static int H5Fopen_wrap (String name, int flags, int access_id)
-&nbsp;&nbsp; {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int file_id = -1;&nbsp;&nbsp;&nbsp; // file identifier&nbsp;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try&nbsp;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Create a new file using default file properties.
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file_id = H5.H5Fopen (name, flags, access_id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch (HDF5Exception hdf5e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println&nbsp;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ("DatasetRdWt.H5Fopen_wrap() with HDF5Exception: "
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + hdf5e.getMessage());
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch (Exception e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println&nbsp;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ("DatasetRdWt.H5Fopen_wrap() with other Exception: "&nbsp;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + e.getMessage());
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return file_id;
-&nbsp;&nbsp; }</b></pre>
-
-<p><br>
-<hr noshade size=1><a href="http://www.ncsa.uiuc.edu/"><img SRC="http://www.ncsa.uiuc.edu/Images/NCSAhome/footerlogo.gif" ALT="NCSA" BORDER=0 ></a>
-<br><font face="arial,helvetica"><font size=-1><a href="http://www.ncsa.uiuc.edu/">The
-National Center for Supercomputing Applications</a></font></font>
-<br><font face="arial,helvetica"><font size=-1><a href="http://www.uiuc.edu/">University
-of Illinois at Urbana-Champaign</a></font></font>
-<p><font face="arial,helvetica"><font size=-1><a href="mailto:hdfhelp@ncsa.uiuc.edu">hdfhelp@ncsa.uiuc.edu</a></font></font>
-</body>
-</html>
diff --git a/doc/html/Tutor/examples/java/runCompound.sh b/doc/html/Tutor/examples/java/runCompound.sh
deleted file mode 100644
index ef2be38..0000000
--- a/doc/html/Tutor/examples/java/runCompound.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java Compound $*
diff --git a/doc/html/Tutor/examples/java/runCompound.sh.in b/doc/html/Tutor/examples/java/runCompound.sh.in
deleted file mode 100644
index bc58088..0000000
--- a/doc/html/Tutor/examples/java/runCompound.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ Compound $*
diff --git a/doc/html/Tutor/examples/java/runCopy.sh b/doc/html/Tutor/examples/java/runCopy.sh
deleted file mode 100644
index de71783..0000000
--- a/doc/html/Tutor/examples/java/runCopy.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java Copy $*
diff --git a/doc/html/Tutor/examples/java/runCopy.sh.in b/doc/html/Tutor/examples/java/runCopy.sh.in
deleted file mode 100644
index 2fd8a46..0000000
--- a/doc/html/Tutor/examples/java/runCopy.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ Copy $*
diff --git a/doc/html/Tutor/examples/java/runCreateAttribute.sh b/doc/html/Tutor/examples/java/runCreateAttribute.sh
deleted file mode 100644
index 419abce..0000000
--- a/doc/html/Tutor/examples/java/runCreateAttribute.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java CreateAttribute $*
diff --git a/doc/html/Tutor/examples/java/runCreateAttribute.sh.in b/doc/html/Tutor/examples/java/runCreateAttribute.sh.in
deleted file mode 100644
index 83bcdc7..0000000
--- a/doc/html/Tutor/examples/java/runCreateAttribute.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ CreateAttribute $*
diff --git a/doc/html/Tutor/examples/java/runCreateDataset.sh b/doc/html/Tutor/examples/java/runCreateDataset.sh
deleted file mode 100644
index 371e811..0000000
--- a/doc/html/Tutor/examples/java/runCreateDataset.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java CreateDataset $*
diff --git a/doc/html/Tutor/examples/java/runCreateDataset.sh.in b/doc/html/Tutor/examples/java/runCreateDataset.sh.in
deleted file mode 100644
index 606e153..0000000
--- a/doc/html/Tutor/examples/java/runCreateDataset.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ CreateDataset $*
diff --git a/doc/html/Tutor/examples/java/runCreateFile.sh b/doc/html/Tutor/examples/java/runCreateFile.sh
deleted file mode 100644
index e32c0ab..0000000
--- a/doc/html/Tutor/examples/java/runCreateFile.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java CreateFile $*
diff --git a/doc/html/Tutor/examples/java/runCreateFile.sh.in b/doc/html/Tutor/examples/java/runCreateFile.sh.in
deleted file mode 100644
index bf48b9c..0000000
--- a/doc/html/Tutor/examples/java/runCreateFile.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ CreateFile $*
diff --git a/doc/html/Tutor/examples/java/runCreateFileInput.sh b/doc/html/Tutor/examples/java/runCreateFileInput.sh
deleted file mode 100644
index fa12f06..0000000
--- a/doc/html/Tutor/examples/java/runCreateFileInput.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java CreateFileInput $*
diff --git a/doc/html/Tutor/examples/java/runCreateFileInput.sh.in b/doc/html/Tutor/examples/java/runCreateFileInput.sh.in
deleted file mode 100644
index 776eac5..0000000
--- a/doc/html/Tutor/examples/java/runCreateFileInput.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ CreateFileInput $*
diff --git a/doc/html/Tutor/examples/java/runCreateGroup.sh b/doc/html/Tutor/examples/java/runCreateGroup.sh
deleted file mode 100644
index ee9deee..0000000
--- a/doc/html/Tutor/examples/java/runCreateGroup.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java CreateGroup $*
diff --git a/doc/html/Tutor/examples/java/runCreateGroup.sh.in b/doc/html/Tutor/examples/java/runCreateGroup.sh.in
deleted file mode 100644
index e2eadb5..0000000
--- a/doc/html/Tutor/examples/java/runCreateGroup.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ CreateGroup $*
diff --git a/doc/html/Tutor/examples/java/runCreateGroupAR.sh b/doc/html/Tutor/examples/java/runCreateGroupAR.sh
deleted file mode 100644
index 2619a11..0000000
--- a/doc/html/Tutor/examples/java/runCreateGroupAR.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java CreateGroupAR $*
diff --git a/doc/html/Tutor/examples/java/runCreateGroupAR.sh.in b/doc/html/Tutor/examples/java/runCreateGroupAR.sh.in
deleted file mode 100644
index d61d852..0000000
--- a/doc/html/Tutor/examples/java/runCreateGroupAR.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ CreateGroupAR $*
diff --git a/doc/html/Tutor/examples/java/runCreateGroupDataset.sh b/doc/html/Tutor/examples/java/runCreateGroupDataset.sh
deleted file mode 100644
index 15b7bfa..0000000
--- a/doc/html/Tutor/examples/java/runCreateGroupDataset.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java CreateGroupDataset $*
diff --git a/doc/html/Tutor/examples/java/runCreateGroupDataset.sh.in b/doc/html/Tutor/examples/java/runCreateGroupDataset.sh.in
deleted file mode 100644
index af2b4b5..0000000
--- a/doc/html/Tutor/examples/java/runCreateGroupDataset.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ CreateGroupDataset $*
diff --git a/doc/html/Tutor/examples/java/runDatasetRdWt.sh b/doc/html/Tutor/examples/java/runDatasetRdWt.sh
deleted file mode 100644
index a049ea8..0000000
--- a/doc/html/Tutor/examples/java/runDatasetRdWt.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java DatasetRdWt $*
diff --git a/doc/html/Tutor/examples/java/runDatasetRdWt.sh.in b/doc/html/Tutor/examples/java/runDatasetRdWt.sh.in
deleted file mode 100644
index ad3a049..0000000
--- a/doc/html/Tutor/examples/java/runDatasetRdWt.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ DatasetRdWt $*
diff --git a/doc/html/Tutor/examples/java/runHyperSlab.sh b/doc/html/Tutor/examples/java/runHyperSlab.sh
deleted file mode 100644
index 549f807..0000000
--- a/doc/html/Tutor/examples/java/runHyperSlab.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=/afs/ncsa/projects/hdf/java/java2/mcgrath/arabica/New5
-HDF5LIB=/afs/ncsa/projects/hdf/release/prehdf5-1.2.1/SunOS_5.7/lib
-
-#make this relative to the source root...
-PWD=/afs/ncsa.uiuc.edu/projects/hdf/java/java2/mcgrath/arabica/java-hdf5
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/solaris"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-/usr/java1.2/bin/java HyperSlab $*
diff --git a/doc/html/Tutor/examples/java/runHyperSlab.sh.in b/doc/html/Tutor/examples/java/runHyperSlab.sh.in
deleted file mode 100644
index f515fc9..0000000
--- a/doc/html/Tutor/examples/java/runHyperSlab.sh.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-JH5INSTALLDIR=@JH5INST@
-HDF5LIB=@HDF5LIB@
-
-#make this relative to the source root...
-PWD=@PWD@
-LIBDIR=$JH5INSTALLDIR"/lib"
-
-CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
-
-LD_LIBRARY_PATH=$HDF5LIB":"$LIBDIR"/@JAVATARG@"
-
-export CLASSPATH
-export LD_LIBRARY_PATH
-
-@JAVA@ HyperSlab $*
diff --git a/doc/html/Tutor/examples/mountexample.f90 b/doc/html/Tutor/examples/mountexample.f90
deleted file mode 100644
index f4341b2..0000000
--- a/doc/html/Tutor/examples/mountexample.f90
+++ /dev/null
@@ -1,187 +0,0 @@
-!
-!In the following example we create one file with a group in it,
-!and another file with a dataset. Mounting is used to
-!access the dataset from the second file as a member of a group
-!in the first file.
-!
-
- PROGRAM MOUNTEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- !
- ! Filenames are "mount1.h5" and "mount2.h5"
- !
- CHARACTER(LEN=9), PARAMETER :: filename1 = "mount1.h5"
- CHARACTER(LEN=9), PARAMETER :: filename2 = "mount2.h5"
-
- !
- !data space rank and dimensions
- !
- INTEGER, PARAMETER :: RANK = 2
- INTEGER, PARAMETER :: NX = 4
- INTEGER, PARAMETER :: NY = 5
-
- !
- ! File identifiers
- !
- INTEGER(HID_T) :: file1_id, file2_id
-
- !
- ! Group identifier
- !
- INTEGER(HID_T) :: gid
-
- !
- ! Dataset identifier
- !
- INTEGER(HID_T) :: dset_id
-
- !
- ! Data space identifier
- !
- INTEGER(HID_T) :: dataspace
-
- !
- ! Data type identifier
- !
- INTEGER(HID_T) :: dtype_id
-
- !
- ! The dimensions for the dataset.
- !
- INTEGER(HSIZE_T), DIMENSION(2) :: dims = (/NX,NY/)
-
- !
- ! Flag to check operation success
- !
- INTEGER :: error
-
- !
- ! General purpose integer
- !
- INTEGER :: i, j
-
- !
- ! Data buffers
- !
- INTEGER, DIMENSION(NX,NY) :: data_in, data_out
-
- !
- ! Initialize FORTRAN interface.
- !
- CALL h5open_f(error)
-
- !
- ! Initialize data_in buffer
- !
- do i = 1, NX
- do j = 1, NY
- data_in(i,j) = (i-1) + (j-1)
- end do
- end do
-
- !
- ! Create first file "mount1.h5" using default properties.
- !
- CALL h5fcreate_f(filename1, H5F_ACC_TRUNC_F, file1_id, error)
-
- !
- ! Create group "/G" inside file "mount1.h5".
- !
- CALL h5gcreate_f(file1_id, "/G", gid, error)
-
- !
- ! Close file and group identifiers.
- !
- CALL h5gclose_f(gid, error)
- CALL h5fclose_f(file1_id, error)
-
- !
- ! Create second file "mount2.h5" using default properties.
- !
- CALL h5fcreate_f(filename2, H5F_ACC_TRUNC_F, file2_id, error)
-
- !
- ! Create data space for the dataset.
- !
- CALL h5screate_simple_f(RANK, dims, dataspace, error)
-
- !
- ! Create dataset "/D" inside file "mount2.h5".
- !
- CALL h5dcreate_f(file2_id, "/D", H5T_NATIVE_INTEGER, dataspace, &
- dset_id, error)
-
- !
- ! Write data_in to the dataset
- !
- CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, data_in, error)
-
- !
- ! Close file, dataset and dataspace identifiers.
- !
- CALL h5sclose_f(dataspace, error)
- CALL h5dclose_f(dset_id, error)
- CALL h5fclose_f(file2_id, error)
-
- !
- ! Reopen both files.
- !
- CALL h5fopen_f (filename1, H5F_ACC_RDWR_F, file1_id, error)
- CALL h5fopen_f (filename2, H5F_ACC_RDWR_F, file2_id, error)
-
- !
- ! Mount the second file under the first file's "/G" group.
- !
- CALL h5fmount_f (file1_id, "/G", file2_id, error)
-
-
- !
- ! Access dataset D in the first file under /G/D name.
- !
- CALL h5dopen_f(file1_id, "/G/D", dset_id, error)
-
- !
- ! Get dataset's data type.
- !
- CALL h5dget_type_f(dset_id, dtype_id, error)
-
- !
- ! Read the dataset.
- !
- CALL h5dread_f(dset_id, dtype_id, data_out, error)
-
- !
- ! Print out the data.
- !
- do i = 1, NX
- print *, (data_out(i,j), j = 1, NY)
- end do
-
-
- !
- !Close dset_id and dtype_id.
- !
- CALL h5dclose_f(dset_id, error)
- CALL h5tclose_f(dtype_id, error)
-
- !
- ! Unmount the second file.
- !
- CALL h5funmount_f(file1_id, "/G", error);
-
- !
- ! Close both files.
- !
- CALL h5fclose_f(file1_id, error)
- CALL h5fclose_f(file2_id, error)
- !
- ! Close FORTRAN interface.
- !
- CALL h5close_f(error)
-
- END PROGRAM MOUNTEXAMPLE
-
diff --git a/doc/html/Tutor/examples/refobjexample.f90 b/doc/html/Tutor/examples/refobjexample.f90
deleted file mode 100644
index fdbb26d..0000000
--- a/doc/html/Tutor/examples/refobjexample.f90
+++ /dev/null
@@ -1,142 +0,0 @@
-!
-! This program shows how to create and store references to the objects.
-! Program creates a file, two groups, a dataset to store integer data and
-! a dataset to store references to the objects.
-! Stored references are used to open the objects they are point to.
-! Data is written to the dereferenced dataset, and class type is displayed for
-! the shared datatype.
-!
- PROGRAM OBJ_REFERENCES
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
- CHARACTER(LEN=10), PARAMETER :: filename = "FORTRAN.h5" ! File
- CHARACTER(LEN=8), PARAMETER :: dsetnamei = "INTEGERS" ! Dataset with the integer data
- CHARACTER(LEN=17), PARAMETER :: dsetnamer = "OBJECT_REFERENCES" ! Dataset wtih object
- ! references
- CHARACTER(LEN=6), PARAMETER :: groupname1 = "GROUP1" ! Groups in the file
- CHARACTER(LEN=6), PARAMETER :: groupname2 = "GROUP2" !
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: grp1_id ! Group identifiers
- INTEGER(HID_T) :: grp2_id !
- INTEGER(HID_T) :: dset_id ! Dataset identifiers
- INTEGER(HID_T) :: dsetr_id !
- INTEGER(HID_T) :: type_id ! Type identifier
- INTEGER(HID_T) :: space_id ! Dataspace identifiers
- INTEGER(HID_T) :: spacer_id !
- INTEGER :: error
- INTEGER(HSIZE_T), DIMENSION(1) :: dims = (/5/)
- INTEGER(HSIZE_T), DIMENSION(1) :: dimsr= (/4/)
- INTEGER(HSIZE_T), DIMENSION(1) :: my_maxdims = (/5/)
- INTEGER :: rank = 1
- INTEGER :: rankr = 1
- TYPE(hobj_ref_t_f), DIMENSION(4) :: ref
- TYPE(hobj_ref_t_f), DIMENSION(4) :: ref_out
- INTEGER, DIMENSION(5) :: data = (/1, 2, 3, 4, 5/)
- INTEGER :: class, ref_size
- !
- ! Initialize FORTRAN interface.
- !
- CALL h5open_f(error)
- !
- ! Create a file
- !
- CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
- ! Default file access and file creation
- ! properties are used.
- !
- ! Create a group in the file
- !
- CALL h5gcreate_f(file_id, groupname1, grp1_id, error)
- !
- ! Create a group inside the created gorup
- !
- CALL h5gcreate_f(grp1_id, groupname2, grp2_id, error)
- !
- ! Create dataspaces for datasets
- !
- CALL h5screate_simple_f(rank, dims, space_id, error, maxdims=my_maxdims)
- CALL h5screate_simple_f(rankr, dimsr, spacer_id, error)
- !
- ! Create integer dataset
- !
- CALL h5dcreate_f(file_id, dsetnamei, H5T_NATIVE_INTEGER, space_id, &
- dset_id, error)
- !
- ! Create dataset to store references to the objects
- !
- CALL h5dcreate_f(file_id, dsetnamer, H5T_STD_REF_OBJ, spacer_id, &
- dsetr_id, error)
- !
- ! Create a datatype and store in the file
- !
- CALL h5tcopy_f(H5T_NATIVE_REAL, type_id, error)
- CALL h5tcommit_f(file_id, "MyType", type_id, error)
- !
- ! Close dataspaces, groups and integer dataset
- !
- CALL h5sclose_f(space_id, error)
- CALL h5sclose_f(spacer_id, error)
- CALL h5tclose_f(type_id, error)
- CALL h5dclose_f(dset_id, error)
- CALL h5gclose_f(grp1_id, error)
- CALL h5gclose_f(grp2_id, error)
- !
- ! Create references to two groups, integer dataset and shared datatype
- ! and write it to the dataset in the file
- !
- CALL h5rcreate_f(file_id, groupname1, ref(1), error)
- CALL h5rcreate_f(file_id, "/GROUP1/GROUP2", ref(2), error)
- CALL h5rcreate_f(file_id, dsetnamei, ref(3), error)
- CALL h5rcreate_f(file_id, "MyType", ref(4), error)
- ref_size = size(ref)
- CALL h5dwrite_f(dsetr_id, H5T_STD_REF_OBJ, ref, ref_size, error)
- !
- ! Close the dataset
- !
- CALL h5dclose_f(dsetr_id, error)
- !
- ! Reopen the dataset with object references and read references to the buffer
- !
- CALL h5dopen_f(file_id, dsetnamer,dsetr_id,error)
- ref_size = size(ref_out)
- CALL h5dread_f(dsetr_id, H5T_STD_REF_OBJ, ref_out, ref_size, error)
- !
- ! Dereference the third reference. We know that it is a dataset. On practice
- ! one should use h5rget_object_type_f function to find out
- ! the type of an object the reference points to.
- !
- CALL h5rdereference_f(dsetr_id, ref(3), dset_id, error)
- !
- ! Write data to the dataset.
- !
- CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, data, error)
- if (error .eq. 0) write(*,*) "Data has been successfully written to the dataset "
- !
- ! Dereference the fourth reference. We know that it is a datatype. On practice
- ! one should use h5rget_object_type_f function to find out
- ! the type of an object the reference points to.
- !
- CALL h5rdereference_f(dsetr_id, ref(4), type_id, error)
- !
- ! Get datatype class and display it if it is of a FLOAT class.
- !
- CALL h5tget_class_f(type_id, class, error)
- if(class .eq. H5T_FLOAT_F) write(*,*) "Stored datatype is of a FLOAT class"
- !
- ! Close all objects.
- !
- CALL h5dclose_f(dset_id, error)
- CALL h5tclose_f(type_id, error)
- CALL h5dclose_f(dsetr_id, error)
- CALL h5fclose_f(file_id, error)
- !
- ! Close FORTRAN interface.
- !
- CALL h5close_f(error)
-
- END PROGRAM OBJ_REFERENCES
-
-
diff --git a/doc/html/Tutor/examples/refregexample.f90 b/doc/html/Tutor/examples/refregexample.f90
deleted file mode 100644
index 5d72f1e..0000000
--- a/doc/html/Tutor/examples/refregexample.f90
+++ /dev/null
@@ -1,162 +0,0 @@
-!
-! This program shows how to create, store and dereference references
-! to the dataset regions.
-! Program creates a file and writes two dimensional integer dataset
-! to it. Then program creates and stores references to the hyperslab
-! and 3 points selected in the integer dataset, in the second dataset.
-! Program reopens the second dataset, reads and dereferences region
-! references, and then reads and displays selected data from the
-! integer dataset.
-!
- PROGRAM REG_REFERENCE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
- CHARACTER(LEN=10), PARAMETER :: filename = "FORTRAN.h5"
- CHARACTER(LEN=6), PARAMETER :: dsetnamev = "MATRIX"
- CHARACTER(LEN=17), PARAMETER :: dsetnamer = "REGION_REFERENCES"
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: space_id ! Dataspace identifier
- INTEGER(HID_T) :: spacer_id ! Dataspace identifier
- INTEGER(HID_T) :: dsetv_id ! Dataset identifier
- INTEGER(HID_T) :: dsetr_id ! Dataset identifier
- INTEGER :: error
- TYPE(hdset_reg_ref_t_f) , DIMENSION(2) :: ref ! Buffers to store references
- TYPE(hdset_reg_ref_t_f) , DIMENSION(2) :: ref_out !
- INTEGER(HSIZE_T), DIMENSION(2) :: dims = (/2,9/) ! Datasets dimensions
- INTEGER(HSIZE_T), DIMENSION(1) :: dimsr = (/2/) !
- INTEGER(HSIZE_T), DIMENSION(2) :: start
- INTEGER(HSIZE_T), DIMENSION(2) :: count
- INTEGER :: rankr = 1
- INTEGER :: rank = 2
- INTEGER , DIMENSION(2,9) :: data
- INTEGER , DIMENSION(2,9) :: data_out = 0
- INTEGER(HSIZE_T) , DIMENSION(2,3) :: coord
- INTEGER(SIZE_T) ::num_points = 3 ! Number of selected points
- INTEGER :: i, j
- INTEGER :: ref_size
- coord = reshape((/1,1,2,7,1,9/), (/2,3/)) ! Coordinates of selected points
- data = reshape ((/1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6/), (/2,9/))
- !
- ! Initialize FORTRAN interface.
- !
- CALL h5open_f(error)
- !
- ! Create a new file.
- !
- CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
- ! Default file access and file creation
- ! properties are used.
- !
- ! Create dataspaces:
- !
- ! for dataset with references to dataset regions
- !
- CALL h5screate_simple_f(rankr, dimsr, spacer_id, error)
- !
- ! for integer dataset
- !
- CALL h5screate_simple_f(rank, dims, space_id, error)
- !
- ! Create and write datasets:
- !
- ! Integer dataset
- !
- CALL h5dcreate_f(file_id, dsetnamev, H5T_NATIVE_INTEGER, space_id, &
- dsetv_id, error)
- CALL h5dwrite_f(dsetv_id, H5T_NATIVE_INTEGER, data, error)
- CALL h5dclose_f(dsetv_id, error)
- !
- ! Dataset with references
- !
- CALL h5dcreate_f(file_id, dsetnamer, H5T_STD_REF_DSETREG, spacer_id, &
- dsetr_id, error)
- !
- ! Create a reference to the hyperslab selection.
- !
- start(1) = 0
- start(2) = 3
- count(1) = 2
- count(2) = 3
- CALL h5sselect_hyperslab_f(space_id, H5S_SELECT_SET_F, &
- start, count, error)
- CALL h5rcreate_f(file_id, dsetnamev, space_id, ref(1), error)
- !
- ! Create a reference to elements selection.
- !
- CALL h5sselect_none_f(space_id, error)
- CALL h5sselect_elements_f(space_id, H5S_SELECT_SET_F, rank, num_points,&
- coord, error)
- CALL h5rcreate_f(file_id, dsetnamev, space_id, ref(2), error)
- !
- ! Write dataset with the references.
- !
- ref_size = size(ref)
- CALL h5dwrite_f(dsetr_id, H5T_STD_REF_DSETREG, ref, ref_size, error)
- !
- ! Close all objects.
- !
- CALL h5sclose_f(space_id, error)
- CALL h5sclose_f(spacer_id, error)
- CALL h5dclose_f(dsetr_id, error)
- CALL h5fclose_f(file_id, error)
- !
- ! Reopen the file to test selections.
- !
- CALL h5fopen_f (filename, H5F_ACC_RDWR_F, file_id, error)
- CALL h5dopen_f(file_id, dsetnamer, dsetr_id, error)
- !
- ! Read references to the dataset regions.
- !
- ref_size = size(ref_out)
- CALL h5dread_f(dsetr_id, H5T_STD_REF_DSETREG, ref_out, ref_size, error)
- !
- ! Dereference the first reference.
- !
- CALL H5rdereference_f(dsetr_id, ref_out(1), dsetv_id, error)
- CALL H5rget_region_f(dsetr_id, ref_out(1), space_id, error)
- !
- ! Read selected data from the dataset.
- !
- CALL h5dread_f(dsetv_id, H5T_NATIVE_INTEGER, data_out, error, &
- mem_space_id = space_id, file_space_id = space_id)
- write(*,*) "Hypeslab selection"
- write(*,*)
- do i = 1,2
- write(*,*) (data_out (i,j), j = 1,9)
- enddo
- write(*,*)
- CALL h5sclose_f(space_id, error)
- CALL h5dclose_f(dsetv_id, error)
- data_out = 0
- !
- ! Dereference the second reference.
- !
- CALL H5rdereference_f(dsetr_id, ref_out(2), dsetv_id, error)
- CALL H5rget_region_f(dsetr_id, ref_out(2), space_id, error)
- !
- ! Read selected data from the dataset.
- !
- CALL h5dread_f(dsetv_id, H5T_NATIVE_INTEGER, data_out, error, &
- mem_space_id = space_id, file_space_id = space_id)
- write(*,*) "Point selection"
- write(*,*)
- do i = 1,2
- write(*,*) (data_out (i,j), j = 1,9)
- enddo
- !
- ! Close all objects
- !
- CALL h5sclose_f(space_id, error)
- CALL h5dclose_f(dsetv_id, error)
- CALL h5dclose_f(dsetr_id, error)
- !
- ! Close FORTRAN interface.
- !
- CALL h5close_f(error)
-
- END PROGRAM REG_REFERENCE
-
-
diff --git a/doc/html/Tutor/examples/rwdsetexample.f90 b/doc/html/Tutor/examples/rwdsetexample.f90
deleted file mode 100644
index 729e84d..0000000
--- a/doc/html/Tutor/examples/rwdsetexample.f90
+++ /dev/null
@@ -1,78 +0,0 @@
-!
-! The following example shows how to write and read to/from an existing dataset.
-! It opens the file created in the previous example, obtains the dataset
-! identifier, writes the data to the dataset in the file,
-! then reads the dataset to memory.
-!
-
-
- PROGRAM RWDSETEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=8), PARAMETER :: filename = "dsetf.h5" ! File name
- CHARACTER(LEN=4), PARAMETER :: dsetname = "dset" ! Dataset name
-
- INTEGER(HID_T) :: file_id ! File identifier
- INTEGER(HID_T) :: dset_id ! Dataset identifier
-
- INTEGER :: error ! Error flag
- INTEGER :: i, j
-
- INTEGER, DIMENSION(4,6) :: dset_data, data_out ! Data buffers
-
- !
- ! Initialize the dset_data array.
- !
- do i = 1, 4
- do j = 1, 6
- dset_data(i,j) = (i-1)*6 + j;
- end do
- end do
-
- !
- ! Initialize FORTRAN predefined datatypes
- !
- CALL h5open_f(error)
-
- !
- ! Open an existing file.
- !
- CALL h5fopen_f (filename, H5F_ACC_RDWR_F, file_id, error)
-
- !
- ! Open an existing dataset.
- !
- CALL h5dopen_f(file_id, dsetname, dset_id, error)
-
- !
- ! Write the dataset.
- !
- CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, dset_data, error)
-
- !
- ! Read the dataset.
- !
- CALL h5dread_f(dset_id, H5T_NATIVE_INTEGER, data_out, error)
-
- !
- ! Close the dataset.
- !
- CALL h5dclose_f(dset_id, error)
-
- !
- ! Close the file.
- !
- CALL h5fclose_f(file_id, error)
-
- !
- ! Close FORTRAN predefined datatypes.
- !
- CALL h5close_f(error)
-
- END PROGRAM RWDSETEXAMPLE
-
-
-
diff --git a/doc/html/Tutor/examples/selectele.f90 b/doc/html/Tutor/examples/selectele.f90
deleted file mode 100644
index 8727bd9..0000000
--- a/doc/html/Tutor/examples/selectele.f90
+++ /dev/null
@@ -1,282 +0,0 @@
-!
-! This program creates two files, copy1.h5, and copy2.h5.
-! In copy1.h5, it creates a 3x4 dataset called 'Copy1',
-! and write 0's to this dataset.
-! In copy2.h5, it create a 3x4 dataset called 'Copy2',
-! and write 1's to this dataset.
-! It closes both files, reopens both files, selects two
-! points in copy1.h5 and writes values to them. Then it
-! uses an H5Scopy to write the same selection to copy2.h5.
-! Program reopens the files, and reads and prints the contents of
-! the two datasets.
-!
-
- PROGRAM SELECTEXAMPLE
-
- USE HDF5 ! This module contains all necessary modules
-
- IMPLICIT NONE
-
- CHARACTER(LEN=8), PARAMETER :: filename1 = "copy1.h5" ! File name
- CHARACTER(LEN=8), PARAMETER :: filename2 = "copy2.h5" !
- CHARACTER(LEN=5), PARAMETER :: dsetname1 = "Copy1" ! Dataset name
- CHARACTER(LEN=5), PARAMETER :: dsetname2 = "Copy2" !
-
- INTEGER, PARAMETER :: RANK = 2 ! Dataset rank
-
- INTEGER(SIZE_T), PARAMETER :: NUMP = 2 ! Number of points selected
-
- INTEGER(HID_T) :: file1_id ! File1 identifier
- INTEGER(HID_T) :: file2_id ! File2 identifier
- INTEGER(HID_T) :: dset1_id ! Dataset1 identifier
- INTEGER(HID_T) :: dset2_id ! Dataset2 identifier
- INTEGER(HID_T) :: dataspace1 ! Dataspace identifier
- INTEGER(HID_T) :: dataspace2 ! Dataspace identifier
- INTEGER(HID_T) :: memspace ! memspace identifier
-
- INTEGER(HSIZE_T), DIMENSION(1) :: dimsm = (/2/)
- ! Memory dataspace dimensions
- INTEGER(HSIZE_T), DIMENSION(2) :: dimsf = (/3,4/)
- ! File dataspace dimensions
- INTEGER(HSIZE_T), DIMENSION(RANK,NUMP) :: coord ! Elements coordinates
- ! in the file
-
- INTEGER, DIMENSION(3,4) :: buf1, buf2, bufnew ! Data buffers
- INTEGER, DIMENSION(2) :: val = (/53, 59/) ! Values to write
-
- INTEGER :: memrank = 1 ! Rank of the dataset in memory
-
- INTEGER :: i, j
-
- INTEGER :: error ! Error flag
- LOGICAL :: status
-
-
- !
- ! Create two files containing identical datasets. Write 0's to one
- ! and 1's to the other.
- !
-
- !
- ! Data initialization.
- !
- do i = 1, 3
- do j = 1, 4
- buf1(i,j) = 0;
- end do
- end do
-
- do i = 1, 3
- do j = 1, 4
- buf2(i,j) = 1;
- end do
- end do
-
- !
- ! Initialize FORTRAN predefined datatypes
- !
- CALL h5open_f(error)
-
- !
- ! Create file1, file2 using default properties.
- !
- CALL h5fcreate_f(filename1, H5F_ACC_TRUNC_F, file1_id, error)
-
- CALL h5fcreate_f(filename2, H5F_ACC_TRUNC_F, file2_id, error)
-
- !
- ! Create the data space for the datasets.
- !
- CALL h5screate_simple_f(RANK, dimsf, dataspace1, error)
-
- CALL h5screate_simple_f(RANK, dimsf, dataspace2, error)
-
- !
- ! Create the datasets with default properties.
- !
- CALL h5dcreate_f(file1_id, dsetname1, H5T_NATIVE_INTEGER, dataspace1, &
- dset1_id, error)
-
- CALL h5dcreate_f(file2_id, dsetname2, H5T_NATIVE_INTEGER, dataspace2, &
- dset2_id, error)
-
- !
- ! Write the datasets.
- !
- CALL h5dwrite_f(dset1_id, H5T_NATIVE_INTEGER, buf1, error)
-
- CALL h5dwrite_f(dset2_id, H5T_NATIVE_INTEGER, buf2, error)
-
- !
- ! Close the dataspace for the datasets.
- !
- CALL h5sclose_f(dataspace1, error)
-
- CALL h5sclose_f(dataspace2, error)
-
- !
- ! Close the datasets.
- !
- CALL h5dclose_f(dset1_id, error)
-
- CALL h5dclose_f(dset2_id, error)
-
- !
- ! Close the files.
- !
- CALL h5fclose_f(file1_id, error)
-
- CALL h5fclose_f(file2_id, error)
-
- !
- ! Open the two files. Select two points in one file, write values to
- ! those point locations, then do H5Scopy and write the values to the
- ! other file. Close files.
- !
-
- !
- ! Open the files.
- !
- CALL h5fopen_f (filename1, H5F_ACC_RDWR_F, file1_id, error)
-
- CALL h5fopen_f (filename2, H5F_ACC_RDWR_F, file2_id, error)
-
- !
- ! Open the datasets.
- !
- CALL h5dopen_f(file1_id, dsetname1, dset1_id, error)
-
- CALL h5dopen_f(file2_id, dsetname2, dset2_id, error)
-
- !
- ! Get dataset1's dataspace identifier.
- !
- CALL h5dget_space_f(dset1_id, dataspace1, error)
-
- !
- ! Create memory dataspace.
- !
- CALL h5screate_simple_f(memrank, dimsm, memspace, error)
-
- !
- ! Set the selected point positions. Because Fortran array index starts
- ! from 1, so add one to the actual select points in C.
- !
- coord(1,1) = 1
- coord(2,1) = 2
- coord(1,2) = 1
- coord(2,2) = 4
-
- !
- ! Select the elements in file space.
- !
- CALL h5sselect_elements_f(dataspace1, H5S_SELECT_SET_F, RANK, NUMP,&
- coord, error)
-
- !
- ! Write value into the selected points in dataset1.
- !
- CALL H5dwrite_f(dset1_id, H5T_NATIVE_INTEGER, val, error, &
- mem_space_id=memspace, file_space_id=dataspace1)
-
- !
- ! Copy the daspace1 into dataspace2.
- !
- CALL h5scopy_f(dataspace1, dataspace2, error)
-
- !
- ! Write value into the selected points in dataset2.
- !
- CALL H5dwrite_f(dset2_id, H5T_NATIVE_INTEGER, val, error, &
- mem_space_id=memspace, file_space_id=dataspace2)
-
- !
- ! Close the dataspace for the datasets.
- !
- CALL h5sclose_f(dataspace1, error)
-
- CALL h5sclose_f(dataspace2, error)
-
- !
- ! Close the memoryspace.
- !
- CALL h5sclose_f(memspace, error)
-
- !
- ! Close the datasets.
- !
- CALL h5dclose_f(dset1_id, error)
-
- CALL h5dclose_f(dset2_id, error)
-
- !
- ! Close the files.
- !
- CALL h5fclose_f(file1_id, error)
-
- CALL h5fclose_f(file2_id, error)
-
- !
- ! Open both files and print the contents of the datasets.
- !
-
- !
- ! Open the files.
- !
- CALL h5fopen_f (filename1, H5F_ACC_RDWR_F, file1_id, error)
-
- CALL h5fopen_f (filename2, H5F_ACC_RDWR_F, file2_id, error)
-
- !
- ! Open the datasets.
- !
- CALL h5dopen_f(file1_id, dsetname1, dset1_id, error)
-
- CALL h5dopen_f(file2_id, dsetname2, dset2_id, error)
-
- !
- ! Read dataset from the first file.
- !
- CALL h5dread_f(dset1_id, H5T_NATIVE_INTEGER, bufnew, error)
-
- !
- ! Display the data read from dataset "Copy1"
- !
- write(*,*) "The data in dataset Copy1 is: "
- do i = 1, 3
- print *, (bufnew(i,j), j = 1,4)
- end do
-
- !
- ! Read dataset from the second file.
- !
- CALL h5dread_f(dset2_id, H5T_NATIVE_INTEGER, bufnew, error)
-
- !
- ! Display the data read from dataset "Copy2"
- !
- write(*,*) "The data in dataset Copy2 is: "
- do i = 1, 3
- print *, (bufnew(i,j), j = 1,4)
- end do
-
- !
- ! Close datasets.
- !
- CALL h5dclose_f(dset1_id, error)
-
- CALL h5dclose_f(dset2_id, error)
-
- !
- ! Close files.
- !
- CALL h5fclose_f(file1_id, error)
-
- CALL h5fclose_f(file2_id, error)
-
- !
- ! Close FORTRAN predefined datatypes.
- !
- CALL h5close_f(error)
-
- END PROGRAM SELECTEXAMPLE